Changeset f988834 for src/Validate
- Timestamp:
- Jan 19, 2024, 2:44:41 AM (4 months ago)
- Branches:
- master
- Children:
- ac939461
- Parents:
- 59c8dff (diff), e8b3717 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/Validate
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/Autogen.cpp
r59c8dff rf988834 445 445 446 446 auto * paramType = ast::deepCopy( member->get_type() ); 447 paramType->attributes.clear(); 447 erase_if( paramType->attributes, []( ast::Attribute const * attr ){ 448 return !attr->isValidOnFuncParam(); 449 } ); 448 450 ast::ObjectDecl * param = new ast::ObjectDecl( 449 451 getLocation(), member->name, paramType ); -
src/Validate/ReplaceTypedef.cpp
r59c8dff rf988834 25 25 26 26 namespace { 27 28 bool isNonParameterAttribute( ast::Attribute const * attr ) {29 static const std::vector<std::string> bad_names = {30 "aligned", "__aligned__",31 };32 for ( auto name : bad_names ) {33 if ( name == attr->name ) {34 return true;35 }36 }37 return false;38 }39 27 40 28 struct ReplaceTypedefCore final : … … 101 89 // by typedef. GCC appears to do the same thing. 102 90 if ( isAtFunctionTop ) { 103 erase_if( ret->attributes, isNonParameterAttribute ); 91 erase_if( ret->attributes, []( ast::Attribute const * attr ){ 92 return !attr->isValidOnFuncParam(); 93 } ); 104 94 } 105 95 for ( const auto & attribute : type->attributes ) {
Note: See TracChangeset
for help on using the changeset viewer.