Ignore:
Timestamp:
Mar 11, 2024, 1:00:41 PM (3 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
6c8b76b
Parents:
9398177
Message:

Moved the DeclarationNode? enums over to TypeData? where they are actually used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.h

    r9398177 re048ece  
    2222
    2323struct DeclarationNode final : public ParseList<DeclarationNode> {
    24         // These enumerations must harmonize with their names in DeclarationNode.cc.
    25         enum BasicType {
    26                 Void, Bool, Char, Int, Int128,
    27                 Float, Double, LongDouble, uuFloat80, uuFloat128,
    28                 uFloat16, uFloat32, uFloat32x, uFloat64, uFloat64x, uFloat128, uFloat128x,
    29                 NoBasicType
    30         };
    31         static const char * basicTypeNames[];
    32         enum ComplexType { Complex, NoComplexType, Imaginary };
    33         // Imaginary unsupported => parse, but make invisible and print error message
    34         static const char * complexTypeNames[];
    35         enum Signedness { Signed, Unsigned, NoSignedness };
    36         static const char * signednessNames[];
    37         enum Length { Short, Long, LongLong, NoLength };
    38         static const char * lengthNames[];
    39         enum BuiltinType { Valist, AutoType, Zero, One, NoBuiltinType };
    40         static const char * builtinTypeNames[];
    41 
    4224        static DeclarationNode * newFromTypeData( TypeData * );
    4325        static DeclarationNode * newStorageClass( ast::Storage::Classes );
Note: See TracChangeset for help on using the changeset viewer.