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