================
@@ -488,6 +488,13 @@ unsigned Parser::ParseAttributeArgsCommon(
   bool AttributeHasVariadicIdentifierArg =
       attributeHasVariadicIdentifierArg(*AttrName, Form.getSyntax(), 
ScopeName);
 
+  if (Tok.is(tok::hash) || Tok.is(tok::hashhash)) {
----------------
AaronBallman wrote:

@cor3ntin do we need to distinguish between valid preprocessor tokens and 
invalid post-phase-7 tokens?

I *think* the only tokens that aren't valid post phase 7 is hash, but I'm not 
certain what we're supposed to do with things like `%:` `%:%:` which are 
digraphs for hash. Are those supposed to also be rejected?

https://github.com/llvm/llvm-project/pull/147308
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to