Changeset 332e93a for src/Validate
- Timestamp:
- Feb 4, 2025, 9:18:54 PM (11 months ago)
- Branches:
- master
- Children:
- 090b076
- Parents:
- 985ff5f (diff), 1ee74df (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/Validate/ImplementEnumFunc.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/ImplementEnumFunc.cpp
r985ff5f r332e93a 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.