Changeset 11f65b3
- Timestamp:
- Jan 17, 2024, 4:14:29 PM (11 months ago)
- Branches:
- master
- Children:
- 7abc3de
- Parents:
- 5bf685f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Attribute.cpp
r5bf685f r11f65b3 39 39 bool Attribute::isValidOnFuncParam() const { 40 40 // Attributes produce GCC errors when they appear on function 41 // parameters. This is an allow-list, switching to a forbid-list would 42 // have to at least mention: 43 // aligned 41 // parameters. Names on the previous allow-list implementation: 42 // unused, noreturn, __vector_size__ 44 43 std::string norm = normalizedName(); 45 return norm == "unused" || norm == "noreturn" || norm == "vector_size";44 return norm != "aligned" && norm != "packed" && norm != "used"; 46 45 } 47 46
Note: See TracChangeset
for help on using the changeset viewer.