[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 11:16:09 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:

Added

https://github.com/llvm/llvm-project/pull/130911


More information about the cfe-commits mailing list