Ignore:
Timestamp:
May 30, 2024, 2:36:08 PM (6 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
0f5e8cd
Parents:
91b9e10
Message:

It seems clang uses different scoping rules for the trailing return of a scoped runction declaration. This form seems compatable with clang and gcc. Since I switched over to clang for testing I also cleaned up all errors that clang or gcc mentioned.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/ImplementEnumFunc.cpp

    r91b9e10 r822332e  
    99class EnumAttrFuncGenerator {
    1010        const ast::EnumDecl* decl;
    11         const ast::EnumInstType* instType;
    1211        unsigned int functionNesting;
    1312        ast::Linkage::Spec proto_linkage;
     
    2120        EnumAttrFuncGenerator(
    2221                        const ast::EnumDecl* decl,
    23                         const ast::EnumInstType* instType,
     22                        const ast::EnumInstType*,
    2423                        unsigned int functionNesting )
    2524                : decl(decl),
    26                   instType{instType},
    2725                  functionNesting{functionNesting},
    2826                  proto_linkage{ast::Linkage::Cforall} {}
     
    5048        ast::FunctionDecl* genFromInstanceProto() const;
    5149        ast::FunctionDecl* genInstToInstFuncProto(const char* func) const;
    52         void genFromIntBody(ast::FunctionDecl *) const; 
     50        void genFromIntBody(ast::FunctionDecl *) const;
    5351        void genFromInstanceBody(ast::FunctionDecl *) const;
    5452        void genSuccPredBody(ast::FunctionDecl *, const char *) const;
     
    388386        if (decl->base) genTypedEnumFunction(ast::EnumAttribute::Value);
    389387        genTypedEnumFunction(ast::EnumAttribute::Label);
    390         genTypedEnumFunction(ast::EnumAttribute::Posn); 
     388        genTypedEnumFunction(ast::EnumAttribute::Posn);
    391389}
    392390
Note: See TracChangeset for help on using the changeset viewer.