[clang] [analyzer] Implemented the DanglingPtrDeref checker to detect use-after-scope lifetime errors (PR #206460)
Balázs Benics via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 12 13:59:28 PDT 2026
================
@@ -7,37 +7,38 @@
using namespace clang;
using namespace ento;
+using lifetime_modeling::isBoundToLifetimeSourceSet;
----------------
steakhal wrote:
I figured you would move it inside the function scope. Where it would be easy to see that hah, this is the fn that we call in the next 5 lines. So it's nicely tucked inside that decl context. If you feel strongly about it or you expect more frequent uses of this, it's also fine in this global context.
https://github.com/llvm/llvm-project/pull/206460
More information about the cfe-commits
mailing list