[clang] [clang] Output an error when [[lifetimebound]] attribute is applied on a function parameter while the function returns void (PR #113460)
Boaz Brickner via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 24 01:13:13 PDT 2024
================
@@ -6970,6 +6970,18 @@ static void checkAttributesAfterMerging(Sema &S, NamedDecl &ND) {
}
}
}
+
+ for (unsigned int I = 0; I < FD->getNumParams(); ++I) {
----------------
bricknerb wrote:
Makes sense!
Added a test for that with FIXME to fix in another pull request.
https://github.com/llvm/llvm-project/pull/113460
More information about the cfe-commits
mailing list