Changeset a8404d9 for src/Validate


Ignore:
Timestamp:
Feb 12, 2025, 11:33:33 AM (7 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
5e8d75bb
Parents:
54cd1a51
Message:

Just some formatting clean-up I did while investigating EnumDecl::inlinedDecl.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/EnumAndPointerDecay.cpp

    r54cd1a51 ra8404d9  
    4848                } else if ( auto value = member.as<ast::InlineMemberDecl>() ) {
    4949                        auto targetEnum = symtab.lookupEnum( value->name );
    50                         // assert( targetEnum );
    5150                        if (!targetEnum) {
    5251                                SemanticError(value, "Only another enum is allowed for enum inline syntax ");
    5352                        }
    5453                        const ast::EnumInstType * instType = new ast::EnumInstType(targetEnum);
    55                         mut->inlinedDecl.push_back( std::move(instType) );
     54                        mut->inlinedDecl.emplace_back( instType );
    5655                        for ( auto enumMember : targetEnum->members ) {
    5756                                auto enumObject = enumMember.strict_as<ast::ObjectDecl>();
Note: See TracChangeset for help on using the changeset viewer.