Changeset 525f7ad for src/AST/Expr.cpp


Ignore:
Timestamp:
Jun 19, 2024, 3:20:39 PM (2 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
57e43cd
Parents:
1725989
Message:
  1. Add count_e( enum_name ), a pseudo function that return the number of element in an enum; 2. Implementation of enum range loop.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Expr.cpp

    r1725989 r525f7ad  
    282282: Expr( loc, new BasicType{ BasicKind::LongUnsignedInt } ), expr( nullptr ), type( t ) {}
    283283
     284// --- CountExpr
     285
     286CountExpr::CountExpr( const CodeLocation & loc, const Type * t )
     287: Expr( loc, new BasicType( BasicKind::LongUnsignedInt) ), type( t ) {}
     288
    284289// --- AlignofExpr
    285290
Note: See TracChangeset for help on using the changeset viewer.