================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits