[clang] [alpha.webkit.UncountedCallArgsChecker] Treat an explicit construction of Ref from a Ref return value safe. (PR #130911)
Ryosuke Niwa via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 12 10:49:41 PDT 2025
================
@@ -70,6 +70,8 @@ bool tryToFindPtrOrigin(
if (isCtorOfSafePtr(ConversionFunc))
return callback(E, true);
}
+ if (isa<CXXFunctionalCastExpr>(E) && isSafePtrType(cast->getType()))
+ return callback(E, true);
----------------
rniwa wrote:
We typically don't pass arguments as RefPtr / Ref except a few cases where we pass in as RefPtr&& / Ref&&. I guess we can add a test for it though.
https://github.com/llvm/llvm-project/pull/130911
More information about the cfe-commits
mailing list