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