[clang] [Clang] disallow attributes after namespace identifier (PR #121614)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 5 14:48:48 PST 2025
================
@@ -100,7 +103,7 @@ Parser::DeclGroupPtrTy Parser::ParseNamespace(DeclaratorContext Context,
} while (MoreToParse);
};
- ReadAttributes();
+ ReadAttributes(/*TrailingAttrs*/ false);
----------------
a-tarasyuk wrote:
@cor3ntin is it acceptable to use `DiagnoseAndSkipCXX11Attributes` to reduce errors list?
https://github.com/llvm/llvm-project/pull/121614
More information about the cfe-commits
mailing list