================
@@ -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) ||
----------------
DenisGZM wrote:

I followed the same rule as in `ParseStatementOrDeclaration` where CXX11 Attrs 
are gathered into `DeclAttrs` and GNU and MS are gathered into `DeclSpecAttrs` 
before `ParseStatementOrDeclarationAfterAttributes`. 

It seems that `DeclAttrs` is used later to adjust type (e.g. set align). For 
precise details I still need deep code inspection

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

Reply via email to