[clang] [Clang] disallow # operators in attribute argument lists (PR #147308)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 7 08:23:18 PDT 2025
================
@@ -488,6 +488,13 @@ unsigned Parser::ParseAttributeArgsCommon(
bool AttributeHasVariadicIdentifierArg =
attributeHasVariadicIdentifierArg(*AttrName, Form.getSyntax(), ScopeName);
+ if (Tok.is(tok::hash) || Tok.is(tok::hashhash)) {
----------------
erichkeane wrote:
Based on my reading of the C standard, we should ONLY disallow this in C++ mode.
https://github.com/llvm/llvm-project/pull/147308
More information about the cfe-commits
mailing list