[clang] [Clang] disallow attributes on void parameters (PR #124920)
Oleksandr T. via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 29 06:08:16 PST 2025
================
@@ -7986,6 +7986,12 @@ void Parser::ParseParameterDeclarationClause(
if (getLangOpts().HLSL)
MaybeParseHLSLAnnotations(DS.getAttributes());
+ if (ParmDeclarator.getDeclarationAttributes().size() &&
----------------
a-tarasyuk wrote:
@erichkeane thanks. changed to use `empty`
https://github.com/llvm/llvm-project/pull/124920
More information about the cfe-commits
mailing list