[clang] [analyzer] Implement LifetimeAnnotations checker. (PR #205521)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 24 03:31:21 PDT 2026


================
@@ -788,6 +788,11 @@ def SmartPtrChecker: Checker<"SmartPtr">,
   Dependencies<[SmartPtrModeling]>,
   Documentation<HasDocumentation>;
 
+def LifetimeAnnotations : Checker<"LifetimeAnnotations">,
----------------
Xazax-hun wrote:

I wonder if the name should be more geared towards what we find, not how we find them. Maybe the name could be `UseAfterLifetimeEnded` or `DanglingIndirection`? Similarly, I believe the documentation should be geared towards the kinds of issues we find, not how we find them. 

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


More information about the cfe-commits mailing list