[clang] [CLANG] Enable alignas after GNU attributes (PR #133107)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 3 04:15:33 PDT 2025
================
@@ -3035,10 +3035,13 @@ 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) ||
+ MaybeParseGNUAttributes(DeclSpecAttrs, &CommonLateParsedAttrs)) {
+ }
+
+ MaybeParseMicrosoftAttributes(DeclSpecAttrs);
----------------
DenisGZM wrote:
Haven't tried to process all attributes, just wanted to keep order if any unknown rules exist. I'll try to test it asap
`MaybeParseAttributes` will parse all attributes in one container, but I think here we want to separate `DeclAttrs` and `DeclSpecAttrs`
https://github.com/llvm/llvm-project/pull/133107
More information about the cfe-commits
mailing list