Changeset 830edc6
- Timestamp:
- Aug 5, 2024, 4:42:46 PM (4 months ago)
- Branches:
- master
- Children:
- 0e6cf54c
- Parents:
- 7f18438
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypeData.cpp
r7f18438 r830edc6 1454 1454 assert( td->kind == TypeData::Aggregate ); 1455 1455 assert( td->aggregate.kind == ast::AggregateDecl::Enum ); 1456 ast::Type * baseType = td->base ? typebuild(td->base) : nullptr; 1456 ast::ptr<ast::Type> baseType = td->base ? typebuild(td->base) : nullptr; 1457 if ( baseType ) { 1458 ast::add_qualifiers( baseType, ast::CV::Qualifiers( ast::CV::Const )); 1459 } 1460 1457 1461 ast::EnumDecl * ret = new ast::EnumDecl( 1458 1462 td->location, -
src/Validate/ImplementEnumFunc.cpp
r7f18438 r830edc6 148 148 } else { 149 149 auto untypedThisInit = new ast::UntypedExpr( 150 getLocation(), new ast::NameExpr(getLocation(), "?++"), 151 {prevInitExpr}); 150 getLocation(), new ast::NameExpr(getLocation(), "?+?"), 151 { prevInitExpr, 152 new ast::ConstantExpr( getLocation(), new ast::OneType, "1", 1) }); 152 153 return new ast::SingleInit(getLocation(), untypedThisInit); 153 154 }
Note: See TracChangeset
for help on using the changeset viewer.