[clang] [Clang] disallow attributes on void parameters (PR #124920)

Oleksandr T. via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 29 05:55:31 PST 2025


================
@@ -7986,6 +7986,13 @@ void Parser::ParseParameterDeclarationClause(
     if (getLangOpts().HLSL)
       MaybeParseHLSLAnnotations(DS.getAttributes());
 
+    if (ParmDeclarator.getIdentifier() == nullptr &&
----------------
a-tarasyuk wrote:

@cor3ntin thanks for the feedback. I've removed it.

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


More information about the cfe-commits mailing list