- File:
-
- 1 edited
-
src/Validate/ImplementEnumFunc.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/ImplementEnumFunc.cpp
r90e683b r35cc6d4 61 61 ast::FunctionDecl* genLabelProto() const; 62 62 ast::FunctionDecl* genValueProto() const; 63 ast::FunctionDecl* genQuasiValueProto() const; 63 64 ast::FunctionDecl* genTypeNameProto() const; 64 65 … … 205 206 206 207 ast::FunctionDecl* EnumAttrFuncGenerator::genValueProto() const { 207 assert ( decl->is_typed_enum());208 assert (decl->isTyped()); 208 209 return genProto( 209 210 "value", … … 413 414 void EnumAttrFuncGenerator::genTypedEnumFunction(const ast::EnumAttribute attr) { 414 415 if (attr == ast::EnumAttribute::Value) { 415 if ( !decl->is _typed_enum() ) return;416 if ( !decl->isTyped() ) return; 416 417 std::vector<ast::ptr<ast::Init>> inits = genValueInit(); 417 418 ast::ObjectDecl* arrayProto = … … 482 483 483 484 void ImplementEnumFunc::previsit(const ast::EnumDecl* enumDecl) { 484 if ( !enumDecl->body || enumDecl->is_c_enum()) return;485 if (!enumDecl->body || !enumDecl->isCfa) return; 485 486 ast::EnumInstType enumInst(enumDecl->name); 486 487 enumInst.base = enumDecl;
Note:
See TracChangeset
for help on using the changeset viewer.