Changeset c1e66d9 for src/AST


Ignore:
Timestamp:
Sep 21, 2023, 10:15:37 PM (2 years ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
deda7e6
Parents:
01510fe
Message:

Fix designator value in enumerated array and implemented enumerated array with inlined enume declaration

Location:
src/AST
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.impl.hpp

    r01510fe rc1e66d9  
    18601860                maybe_accept( node, &ArrayType::dimension );
    18611861                maybe_accept( node, &ArrayType::base );
     1862                maybe_accept( node, &ArrayType::declaredType );
    18621863        }
    18631864
  • src/AST/Type.hpp

    r01510fe rc1e66d9  
    216216        DimensionFlag isStatic;
    217217
     218        ptr<Decl> declaredType;
     219
    218220        ArrayType( const Type * b, const Expr * d, LengthFlag vl, DimensionFlag s,
    219221                CV::Qualifiers q = {} ) : Type(q), base(b), dimension(d), isVarLen(vl), isStatic(s) {}
Note: See TracChangeset for help on using the changeset viewer.