Changeset 12bc63a for src/Parser/ParseNode.h
- Timestamp:
- Sep 15, 2016, 3:49:22 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 3c13c03
- Parents:
- 4ab9536 (diff), fc4a0fa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r4ab9536 r12bc63a 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Sep 10 17:14:37201613 // Update Count : 58912 // Last Modified On : Mon Sep 12 08:00:05 2016 13 // Update Count : 603 14 14 // 15 15 … … 196 196 class DeclarationNode : public ParseNode { 197 197 public: 198 enum Qualifier { Const, Restrict, Volatile, Lvalue, Atomic, NoOfQualifier };198 // These must remain in the same order as the corresponding DeclarationNode names. 199 199 enum StorageClass { Extern, Static, Auto, Register, Inline, Fortran, Noreturn, Threadlocal, NoStorageClass, }; 200 enum BasicType { Char, Int, Float, Double, Void, Bool, Complex, Imaginary }; 201 enum Modifier { Signed, Unsigned, Short, Long }; 200 enum Qualifier { Const, Restrict, Volatile, Lvalue, Atomic, NoQualifier }; 201 enum BasicType { Void, Bool, Char, Int, Float, Double, LongDouble, NoBasicType }; 202 enum ComplexType { Complex, Imaginary, NoComplexType }; 203 enum Signedness { Signed, Unsigned, NoSignedness }; 204 enum Length { Short, Long, LongLong, NoLength }; 202 205 enum Aggregate { Struct, Union, Trait }; 203 enum TypeClass { Type, Dtype, Ftype };206 enum TypeClass { Otype, Dtype, Ftype }; 204 207 enum BuiltinType { Valist }; 205 208 209 static const char * storageName[]; 206 210 static const char * qualifierName[]; 207 static const char * storageName[];208 211 static const char * basicTypeName[]; 209 static const char * modifierName[]; 212 static const char * complexTypeName[]; 213 static const char * signednessName[]; 214 static const char * lengthName[]; 210 215 static const char * aggregateName[]; 211 216 static const char * typeClassName[]; … … 217 222 static DeclarationNode * newStorageClass( StorageClass ); 218 223 static DeclarationNode * newBasicType( BasicType ); 219 static DeclarationNode * newModifier( Modifier ); 224 static DeclarationNode * newComplexType( ComplexType ); 225 static DeclarationNode * newSignedNess( Signedness sn ); 226 static DeclarationNode * newLength( Length lnth ); 220 227 static DeclarationNode * newBuiltinType( BuiltinType ); 221 228 static DeclarationNode * newFromTypedef( std::string *); … … 309 316 TypeData * type; 310 317 std::string name; 311 // std::list< StorageClass > storageClasses;312 318 StorageClass storageClass; 313 319 bool isInline, isNoreturn;
Note: See TracChangeset
for help on using the changeset viewer.