[clang] [llvm] [analyzer] Implemented a base of detecing lifetimebound annotation (PR #200145)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 21 09:16:22 PDT 2026


================
@@ -788,6 +788,10 @@ def SmartPtrChecker: Checker<"SmartPtr">,
   Dependencies<[SmartPtrModeling]>,
   Documentation<HasDocumentation>;
 
+def LifetimeAnnotations : Checker<"LifetimeAnnotations">,
+  HelpText<"Check for lifetime violations using lifetime annotations">,
----------------
isuckatcs wrote:

I'm not sure if this is the correct wording for the checker. It suggests that the checker uses lifetime annotations to detect issues, but in reality this checker just incorporotes the information from the existing annotations into the analysis.

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


More information about the cfe-commits mailing list