[clang] [analyzer] Implemented the DanglingPtrDeref checker to detect use-after-scope lifetime errors (PR #209278)
Benedek Kaibas via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 14 04:48:52 PDT 2026
================
@@ -806,6 +806,11 @@ def UseAfterLifetimeEnd : Checker<"UseAfterLifetimeEnd">,
Dependencies<[LifetimeModeling]>,
Documentation<NotDocumented>;
+def ReportDanglingPtrDeref : Checker<"ReportDanglingPtrDeref">,
----------------
benedekaibas wrote:
I agree with this name change. I think `DanglingPtrDerefChecker` or just `DanglingPtrDeref` aligns better with the naming of existing checkers.
btw: I always forget to add `Report` when I mention this checker in a comment...
https://github.com/llvm/llvm-project/pull/209278
More information about the cfe-commits
mailing list