Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Attribute.cpp

    rb262cb3 r0b57626  
    3838
    3939bool 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.
    4443        std::string norm = normalizedName();
    45         return norm == "unused" || norm == "noreturn" || norm == "vector_size";
     44        return norm == "unused" || norm == "noreturn";
    4645}
    4746
Note: See TracChangeset for help on using the changeset viewer.