Changeset 9d5eacb for src/Parser


Ignore:
Timestamp:
Jul 10, 2024, 6:55:54 PM (15 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
236f133, 3be81a4
Parents:
725f777f
Message:

Fix the bug with typed anomynous enum got incorrect forward declaration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.hpp

    r725f777f r9d5eacb  
    2727        static DeclarationNode * newFunction( const std::string * name, DeclarationNode * ret, DeclarationNode * param, StatementNode * body );
    2828        static DeclarationNode * newAggregate( ast::AggregateDecl::Aggregate kind, const std::string * name, ExpressionNode * actuals, DeclarationNode * fields, bool body );
    29         static DeclarationNode * newEnum( const std::string * name, DeclarationNode * constants, bool body, bool typed, DeclarationNode * base = nullptr, EnumHiding hiding = EnumHiding::Visible );
     29        static DeclarationNode * newEnum( const std::string * name, DeclarationNode * constants, bool body, bool isCfa = false, DeclarationNode * base = nullptr, EnumHiding hiding = EnumHiding::Visible );
    3030        static DeclarationNode * newEnumConstant( const std::string * name, ExpressionNode * constant );
    3131        static DeclarationNode * newEnumValueGeneric( const std::string * name, InitializerNode * init );
Note: See TracChangeset for help on using the changeset viewer.