[clang] [webkit.RefCntblBaseVirtualDtor] Make ThreadSafeRefCounted not generate warnings (PR #107676)
Ryosuke Niwa via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 10 19:14:46 PDT 2024
================
@@ -67,6 +68,15 @@ class DerefFuncDeleteExprVisitor
const Decl *D = CE->getCalleeDecl();
if (D && D->hasBody())
return VisitBody(D->getBody());
+ else if (!VisitLambdaBody) {
+ for (unsigned i = 0; i < CE->getNumArgs(); ++i) {
+ auto *Arg = CE->getArg(i);
+ VisitLambdaBody = true;
+ auto Restore = llvm::make_scope_exit([&] { VisitLambdaBody = false; });
+ if (VisitChildren(Arg))
----------------
rniwa wrote:
Okay, we can do that. Updated PR accordingly.
https://github.com/llvm/llvm-project/pull/107676
More information about the cfe-commits
mailing list