[clang] [Clang] disallow use of attributes before extern template declarations (PR #136328)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 21 06:17:52 PDT 2025
================
@@ -1049,6 +1049,7 @@ Parser::ParseExternalDeclaration(ParsedAttributes &Attrs,
case tok::kw_extern:
if (getLangOpts().CPlusPlus && NextToken().is(tok::kw_template)) {
+ ProhibitAttributes(Attrs);
----------------
AaronBallman wrote:
Thanks! So yeah. we're agreed, the current approach is reasonable.
https://github.com/llvm/llvm-project/pull/136328
More information about the cfe-commits
mailing list