Changes in src/AST/Attribute.cpp [11f65b3:0b57626]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Attribute.cpp
r11f65b3 r0b57626 38 38 39 39 bool Attribute::isValidOnFuncParam() const { 40 // Attributes produce GCC errors when they appear on function41 // parameters. Names on the previous allow-list implementation:42 // unused, noreturn, __vector_size__40 // attributes such as aligned, cleanup, etc. produce GCC errors when they appear 41 // on function parameters. Maintain here a whitelist of attribute names that are 42 // allowed to appear on parameters. 43 43 std::string norm = normalizedName(); 44 return norm != "aligned" && norm != "packed" && norm != "used";44 return norm == "unused" || norm == "noreturn"; 45 45 } 46 46
Note:
See TracChangeset
for help on using the changeset viewer.