Ignore:
Timestamp:
Jan 11, 2024, 8:59:51 AM (9 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
7db39f7
Parents:
4d689e2 (diff), b262cb3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Attribute.cpp

    r4d689e2 r8655363  
    3838
    3939bool Attribute::isValidOnFuncParam() const {
    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.
     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
    4344        std::string norm = normalizedName();
    44         return norm == "unused" || norm == "noreturn";
     45        return norm == "unused" || norm == "noreturn" || norm == "vector_size";
    4546}
    4647
Note: See TracChangeset for help on using the changeset viewer.