Changeset 1e30df7 for src/AST


Ignore:
Timestamp:
Oct 18, 2022, 5:48:13 PM (3 years ago)
Author:
JiadaL <j82liang@…>
Branches:
ADT, ast-experimental, master
Children:
5408b59
Parents:
a55472cc
Message:

Supports inline enums

Location:
src/AST
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/AST/Convert.cpp

    ra55472cc r1e30df7  
    16151615                        { old->get_funcSpec().val }
    16161616                );
     1617                decl->enumInLine = old->enumInLine;
    16171618                cache.emplace(old, decl);
    16181619                assert(cache.find( old ) != cache.end());
  • TabularUnified src/AST/Decl.hpp

    ra55472cc r1e30df7  
    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).
    107110
    108111        ObjectDecl( const CodeLocation & loc, const std::string & name, const Type * type,
Note: See TracChangeset for help on using the changeset viewer.