Ignore:
Timestamp:
Jan 17, 2024, 4:14:29 PM (6 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
7abc3de
Parents:
5bf685f
Message:

I believe switching isValidOnFuncParam from an allow-list to a forbid-list may have solved the recent nightly builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Attribute.cpp

    r5bf685f r11f65b3  
    3939bool Attribute::isValidOnFuncParam() const {
    4040        // 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
     41        // parameters. Names on the previous allow-list implementation:
     42        // unused, noreturn, __vector_size__
    4443        std::string norm = normalizedName();
    45         return norm == "unused" || norm == "noreturn" || norm == "vector_size";
     44        return norm != "aligned" && norm != "packed" && norm != "used";
    4645}
    4746
Note: See TracChangeset for help on using the changeset viewer.