[clang] [analyzer] Detect dangling pointers passed to function calls (PR #211045)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 22 05:32:33 PDT 2026


================
@@ -48,12 +50,24 @@ void DanglingPtrDeref::checkLocation(SVal Loc, bool IsLoad, const Stmt *S,
   }
 }
 
+void DanglingPtrDeref::checkPreCall(const CallEvent &Call,
+                                    CheckerContext &C) const {
+
----------------
steakhal wrote:

```suggestion
```

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


More information about the cfe-commits mailing list