[clang] [alpha.webkit.UncountedCallArgsChecker] Treat an explicit construction of Ref from a Ref return value safe. (PR #130911)
Rashmi Mudduluru via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 12 10:38:08 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);
----------------
t-rasmud wrote:
Is this case already handled for parameters and locals? Like are there instances of a constructing a Ref from another Ref parameter?
https://github.com/llvm/llvm-project/pull/130911
More information about the cfe-commits
mailing list