[clang] [Clang] disallow attributes after namespace identifier (PR #121614)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 6 00:00:16 PST 2025


================
@@ -100,7 +103,7 @@ Parser::DeclGroupPtrTy Parser::ParseNamespace(DeclaratorContext Context,
     } while (MoreToParse);
   };
 
-  ReadAttributes();
+  ReadAttributes(/*TrailingAttrs*/ false);
----------------
cor3ntin wrote:

Yep, that seems reasonable

https://github.com/llvm/llvm-project/pull/121614


More information about the cfe-commits mailing list