Ignore:
Timestamp:
Mar 21, 2022, 3:51:57 PM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
7a486f4a
Parents:
4390fb6
Message:

Fix the missing pieces in codeGen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/Declaration.h

    r4390fb6 r32fc0d6  
    119119  public:
    120120        Type * type;
    121         Initializer * init; // For Enum, the init is a pointer that contain the enum value; see Parser::TypeData::buildEnum
     121        Initializer * init;
    122122        Expression * bitfieldWidth;
    123123
     
    144144        virtual void print( std::ostream & os, Indenter indent = {} ) const override;
    145145        virtual void printShort( std::ostream & os, Indenter indent = {} ) const override;
     146
     147        // TODO: Move to the right place
     148        void checkAssignedValue() const;
    146149};
    147150
Note: See TracChangeset for help on using the changeset viewer.