Changeset f8f298c


Ignore:
Timestamp:
Jul 3, 2024, 6:51:28 PM (3 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
99f7f37
Parents:
39cf5cc
Message:

replace decl->base with isTyped()

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Decl.cpp

    r39cf5cc rf8f298c  
    203203}
    204204
    205 bool EnumDecl::isTyped() const { return base;}
     205bool EnumDecl::isTyped() const { return base; }
    206206
    207207bool EnumDecl::isOpague() const { return isCfa && !isTyped(); }
  • src/Validate/ImplementEnumFunc.cpp

    r39cf5cc rf8f298c  
    191191
    192192ast::FunctionDecl* EnumAttrFuncGenerator::genValueProto() const {
    193         if (decl->base)
     193        if (decl->isTyped())
    194194                return genProto(
    195195                        "value",
Note: See TracChangeset for help on using the changeset viewer.