[clang] [Clang] disallow attributes on void parameters (PR #124920)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 29 05:47:55 PST 2025
================
@@ -7986,6 +7986,13 @@ void Parser::ParseParameterDeclarationClause(
if (getLangOpts().HLSL)
MaybeParseHLSLAnnotations(DS.getAttributes());
+ if (ParmDeclarator.getIdentifier() == nullptr &&
----------------
cor3ntin wrote:
I don't think checking checking for an identifier makes sense, the type is enough
https://github.com/llvm/llvm-project/pull/124920
More information about the cfe-commits
mailing list