Changes in src/AST/Attribute.cpp [b262cb3:0b57626]
- File:
-
- 1 edited
-
src/AST/Attribute.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Attribute.cpp
rb262cb3 r0b57626 38 38 39 39 bool Attribute::isValidOnFuncParam() const { 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 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. 44 43 std::string norm = normalizedName(); 45 return norm == "unused" || norm == "noreturn" || norm == "vector_size";44 return norm == "unused" || norm == "noreturn"; 46 45 } 47 46
Note:
See TracChangeset
for help on using the changeset viewer.