Changeset 90e683b for src/Validate
- Timestamp:
- Feb 3, 2025, 11:46:55 AM (8 months ago)
- Branches:
- master
- Children:
- 54f70c6
- Parents:
- bbbff10
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/ImplementEnumFunc.cpp
rbbbff10 r90e683b 61 61 ast::FunctionDecl* genLabelProto() const; 62 62 ast::FunctionDecl* genValueProto() const; 63 ast::FunctionDecl* genQuasiValueProto() const;64 63 ast::FunctionDecl* genTypeNameProto() const; 65 64 … … 206 205 207 206 ast::FunctionDecl* EnumAttrFuncGenerator::genValueProto() const { 208 assert (decl->isTyped());207 assert( decl->is_typed_enum() ); 209 208 return genProto( 210 209 "value", … … 414 413 void EnumAttrFuncGenerator::genTypedEnumFunction(const ast::EnumAttribute attr) { 415 414 if (attr == ast::EnumAttribute::Value) { 416 if ( !decl->is Typed() ) return;415 if ( !decl->is_typed_enum() ) return; 417 416 std::vector<ast::ptr<ast::Init>> inits = genValueInit(); 418 417 ast::ObjectDecl* arrayProto = … … 483 482 484 483 void ImplementEnumFunc::previsit(const ast::EnumDecl* enumDecl) { 485 if ( !enumDecl->body || !enumDecl->isCfa) return;484 if ( !enumDecl->body || enumDecl->is_c_enum() ) return; 486 485 ast::EnumInstType enumInst(enumDecl->name); 487 486 enumInst.base = enumDecl;
Note:
See TracChangeset
for help on using the changeset viewer.