- Timestamp:
- Jan 19, 2024, 2:44:41 AM (2 years ago)
- Branches:
- master
- Children:
- ac939461
- Parents:
- 59c8dff (diff), e8b3717 (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. - Location:
- src/AST
- Files:
-
- 3 edited
-
Attribute.cpp (modified) (1 diff)
-
Decl.hpp (modified) (1 diff)
-
Pass.proto.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Attribute.cpp
r59c8dff rf988834 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 -
src/AST/Decl.hpp
r59c8dff rf988834 29 29 #include "StorageClasses.hpp" 30 30 #include "Visitor.hpp" 31 #include "Common/utility.h"32 31 33 32 // Must be included in *all* AST classes; should be #undef'd at the end of the file -
src/AST/Pass.proto.hpp
r59c8dff rf988834 19 19 #include "Common/Iterate.hpp" 20 20 #include "Common/Stats/Heap.h" 21 #include "Common/utility.h" 21 22 namespace ast { 22 23 template<typename core_t> class Pass;
Note:
See TracChangeset
for help on using the changeset viewer.