[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 9 14:06:19 PDT 2025


================
@@ -2647,8 +2647,8 @@ class Declarator {
   ///                                 __attribute__((common,deprecated));
   ///
   /// Also extends the range of the declarator.
-  void takeAttributes(ParsedAttributes &attrs) {
-    Attrs.takeAllFrom(attrs);
+  void takeAttributesAppend(ParsedAttributes &attrs) {
----------------
compnerd wrote:

What do you think of the conjugated form? `takeAttributesAppending` rather than `takeAttributesAppend`

https://github.com/llvm/llvm-project/pull/162714


More information about the cfe-commits mailing list