Ignore:
Timestamp:
Jan 11, 2024, 8:46:37 AM (5 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
8655363
Parents:
cfbc56ec
Message:

Unified and fixed handling of parameter attributes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Validate/Autogen.cpp

    rcfbc56ec rb262cb3  
    440440
    441441                auto * paramType = ast::deepCopy( member->get_type() );
    442                 paramType->attributes.clear();
     442                erase_if( paramType->attributes, []( ast::Attribute const * attr ){
     443                        return !attr->isValidOnFuncParam();
     444                } );
    443445                ast::ObjectDecl * param = new ast::ObjectDecl(
    444446                        getLocation(), member->name, paramType );
Note: See TracChangeset for help on using the changeset viewer.