[clang] [WebKit Checkers] Trace through temporaries in tryToFindPtrOrigin (PR #224877)

Ryosuke Niwa via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 19 21:32:34 PDT 2026


================
@@ -27,7 +27,8 @@ bool tryToFindPtrOrigin(
     std::function<bool(const clang::CXXRecordDecl *)> isSafePtr,
     std::function<bool(const clang::QualType)> isSafePtrType,
     std::function<bool(const clang::Decl *)> isSafeGlobalDecl,
-    std::function<bool(const clang::Expr *, bool)> callback) {
+    std::function<bool(const clang::Expr *, bool)> callback,
+    bool *CrossedShortLivedTemporary) {
----------------
rniwa wrote:

Rather than adding yet another argument, I'd make the callback take two bool's since that's where the value is used anyway.

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


More information about the cfe-commits mailing list