Changes in src/Parser/ParseNode.h [5f2f2d7:68cd1ce]
- File:
-
- 1 edited
-
src/Parser/ParseNode.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/ParseNode.h
r5f2f2d7 r68cd1ce 10 10 // Created On : Sat May 16 13:28:16 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S un Jun 7 22:02:00201513 // Update Count : 6512 // Last Modified On : Sat Jun 13 07:24:22 2015 13 // Update Count : 79 14 14 // 15 15 … … 22 22 23 23 #include "utility.h" 24 #include "Parser/LinkageSpec.h" 24 25 #include "SynTree/Type.h" 25 #include "SynTree/Declaration.h"26 //#include "SynTree/Declaration.h" 26 27 #include "UniqueName.h" 27 28 … … 265 266 public: 266 267 enum Qualifier { Const, Restrict, Volatile, Lvalue, Atomic, Attribute }; 267 enum StorageClass { Extern, Static, Auto, Register, Inline, Fortran };268 enum StorageClass { Extern, Static, Auto, Register, Inline, Fortran, Noreturn, Threadlocal, NoStorageClass, }; 268 269 enum BasicType { Char, Int, Float, Double, Void, Bool, Complex, Imaginary }; 269 enum Modifier { Signed, Unsigned, Short, Long };270 enum TyCon{ Struct, Union, Context };270 enum Modifier { Signed, Unsigned, Short, Long }; 271 enum Aggregate { Struct, Union, Context }; 271 272 enum TypeClass { Type, Dtype, Ftype }; 272 273 274 static const char *storageName[]; 273 275 static const char *qualifierName[]; 274 276 static const char *basicTypeName[]; 275 277 static const char *modifierName[]; 276 static const char * tyConName[];278 static const char *aggregateName[]; 277 279 static const char *typeClassName[]; 278 280 … … 285 287 static DeclarationNode *newForall( DeclarationNode *); 286 288 static DeclarationNode *newFromTypedef( std::string *); 287 static DeclarationNode *newAggregate( TyConkind, std::string *name, DeclarationNode *formals, ExpressionNode *actuals, DeclarationNode *fields );289 static DeclarationNode *newAggregate( Aggregate kind, std::string *name, DeclarationNode *formals, ExpressionNode *actuals, DeclarationNode *fields ); 288 290 static DeclarationNode *newEnum( std::string *name, DeclarationNode *constants ); 289 291 static DeclarationNode *newEnumConstant( std::string *name, ExpressionNode *constant ); … … 344 346 ~DeclarationNode(); 345 347 private: 346 Declaration::StorageClass buildStorageClass() const;348 StorageClass buildStorageClass() const; 347 349 bool buildInline() const; 348 350
Note:
See TracChangeset
for help on using the changeset viewer.