================ @@ -100,7 +103,7 @@ Parser::DeclGroupPtrTy Parser::ParseNamespace(DeclaratorContext Context, } while (MoreToParse); }; - ReadAttributes(); + ReadAttributes(/*TrailingAttrs*/ false); ---------------- cor3ntin wrote:
Sorry for the misunderstanding. `CheckProhibitedCXX11Attribute` is an existing function that emits an error on missplaced attributes https://github.com/llvm/llvm-project/pull/121614 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits