Changeset 77de429 for src/AST


Ignore:
Timestamp:
Oct 19, 2022, 1:42:29 PM (20 months ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, ast-experimental, master
Children:
72b5805e, e874605
Parents:
9511841
Message:

Fix overriding enum value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.hpp

    r9511841 r77de429  
    105105        ptr<Init> init;
    106106        ptr<Expr> bitfieldWidth;
    107         bool enumInLine = false; // A flag vairable to tell the compile:
    108         // this is not a real object declaration. It is a place holder for
    109         // a set of enum value (ObjectDecl).
     107        bool enumInLine = false; // enum inline is not a real object declaration.
     108        // It is a place holder for a set of enum value (ObjectDecl)
     109        bool importValue = false; // if the value copied from somewhere else
    110110
    111111        ObjectDecl( const CodeLocation & loc, const std::string & name, const Type * type,
Note: See TracChangeset for help on using the changeset viewer.