[clang] [alpha.webkit.UncountedLocalVarsChecker] Don't warning on inlined functions (PR #90733)
Ryosuke Niwa via cfe-commits
cfe-commits at lists.llvm.org
Wed May 1 10:31:15 PDT 2024
================
@@ -178,6 +178,11 @@ class UncountedLocalVarsChecker
if (shouldSkipVarDecl(V))
return;
+ if (auto *FD = dyn_cast<FunctionDecl>(V->getDeclContext())) {
+ if (FD->isInlined())
----------------
rniwa wrote:
I don't think we should do this.
https://github.com/llvm/llvm-project/pull/90733
More information about the cfe-commits
mailing list