[clang] [CLANG] Enable alignas after GNU attributes (PR #133107)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 4 08:04:33 PDT 2025


================
@@ -3035,11 +3035,14 @@ Parser::DeclGroupPtrTy Parser::ParseCXXClassMemberDeclaration(
   }
 
   ParsedAttributes DeclSpecAttrs(AttrFactory);
-  MaybeParseMicrosoftAttributes(DeclSpecAttrs);
-
   // Hold late-parsed attributes so we can attach a Decl to them later.
   LateParsedAttrList CommonLateParsedAttrs;
 
+  while (MaybeParseCXX11Attributes(DeclAttrs) ||
----------------
AaronBallman wrote:

It's a bit strange that we're parsing into `DeclSpecAttrs` for `__attribute__` and `[]` but parsing into `DeclAttrs` for `[[]]`, can you explain that one a bit?

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


More information about the cfe-commits mailing list