[clang] [Clang] disallow attributes on void parameters (PR #124920)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 29 05:57:36 PST 2025
================
@@ -7986,6 +7986,12 @@ void Parser::ParseParameterDeclarationClause(
if (getLangOpts().HLSL)
MaybeParseHLSLAnnotations(DS.getAttributes());
+ if (ParmDeclarator.getDeclarationAttributes().size() &&
----------------
erichkeane wrote:
```suggestion
if (!ParmDeclarator.getDeclarationAttributes().empty() &&
```
https://github.com/llvm/llvm-project/pull/124920
More information about the cfe-commits
mailing list