Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/ParseNode.h

    r5b639ee rb6424d9  
    1010// Created On       : Sat May 16 13:28:16 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Sep 12 08:00:05 2016
    13 // Update Count     : 603
     12// Last Modified On : Sat Sep 10 17:14:37 2016
     13// Update Count     : 589
    1414//
    1515
     
    196196class DeclarationNode : public ParseNode {
    197197  public:
    198         // These must remain in the same order as the corresponding DeclarationNode names.
     198        enum Qualifier { Const, Restrict, Volatile, Lvalue, Atomic, NoOfQualifier };
    199199        enum StorageClass { Extern, Static, Auto, Register, Inline, Fortran, Noreturn, Threadlocal, NoStorageClass, };
    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 };
     200        enum BasicType { Char, Int, Float, Double, Void, Bool, Complex, Imaginary };
     201        enum Modifier  { Signed, Unsigned, Short, Long };
    205202        enum Aggregate { Struct, Union, Trait };
    206         enum TypeClass { Otype, Dtype, Ftype };
     203        enum TypeClass { Type, Dtype, Ftype };
    207204        enum BuiltinType { Valist };
    208205
     206        static const char * qualifierName[];
    209207        static const char * storageName[];
    210         static const char * qualifierName[];
    211208        static const char * basicTypeName[];
    212         static const char * complexTypeName[];
    213         static const char * signednessName[];
    214         static const char * lengthName[];
     209        static const char * modifierName[];
    215210        static const char * aggregateName[];
    216211        static const char * typeClassName[];
     
    222217        static DeclarationNode * newStorageClass( StorageClass );
    223218        static DeclarationNode * newBasicType( BasicType );
    224         static DeclarationNode * newComplexType( ComplexType );
    225         static DeclarationNode * newSignedNess( Signedness sn );
    226         static DeclarationNode * newLength( Length lnth );
     219        static DeclarationNode * newModifier( Modifier );
    227220        static DeclarationNode * newBuiltinType( BuiltinType );
    228221        static DeclarationNode * newFromTypedef( std::string *);
     
    316309        TypeData * type;
    317310        std::string name;
     311        // std::list< StorageClass > storageClasses;
    318312        StorageClass storageClass;
    319313        bool isInline, isNoreturn;
Note: See TracChangeset for help on using the changeset viewer.