Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/ImplementEnumFunc.cpp

    r90e683b r35cc6d4  
    6161        ast::FunctionDecl* genLabelProto() const;
    6262        ast::FunctionDecl* genValueProto() const;
     63        ast::FunctionDecl* genQuasiValueProto() const;
    6364        ast::FunctionDecl* genTypeNameProto() const;
    6465
     
    205206
    206207ast::FunctionDecl* EnumAttrFuncGenerator::genValueProto() const {
    207         assert( decl->is_typed_enum() );
     208        assert (decl->isTyped());
    208209        return genProto(
    209210                "value",
     
    413414void EnumAttrFuncGenerator::genTypedEnumFunction(const ast::EnumAttribute attr) {
    414415        if (attr == ast::EnumAttribute::Value) {
    415                 if ( !decl->is_typed_enum() ) return;
     416                if ( !decl->isTyped() ) return;
    416417                std::vector<ast::ptr<ast::Init>> inits = genValueInit();
    417418                ast::ObjectDecl* arrayProto =
     
    482483
    483484void ImplementEnumFunc::previsit(const ast::EnumDecl* enumDecl) {
    484         if ( !enumDecl->body || enumDecl->is_c_enum() ) return;
     485        if (!enumDecl->body || !enumDecl->isCfa) return;
    485486        ast::EnumInstType enumInst(enumDecl->name);
    486487        enumInst.base = enumDecl;
Note: See TracChangeset for help on using the changeset viewer.