[clang] [webkit.UncountedLambdaCapturesChecker] Ignore a lambda which gets called immediately (PR #162977)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 9 07:10:48 PST 2025
================
@@ -343,6 +343,16 @@ class RawPtrRefLambdaCapturesChecker
auto *Callee = CE->getCallee();
if (!Callee)
return;
+ Callee = Callee->IgnoreParenCasts();
+ if (auto *MTE = dyn_cast<MaterializeTemporaryExpr>(Callee))
+ Callee = MTE->getSubExpr();
+ if (!Callee)
+ return;
+ Callee = Callee->IgnoreParenCasts();
----------------
steakhal wrote:
This canonicalisation is redundant, no? You already did this at L346
```suggestion
```
https://github.com/llvm/llvm-project/pull/162977
More information about the cfe-commits
mailing list