[clang] [LifetimeSafety] Infer [[clang::lifetimebound]] annotation (PR #171081)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 9 03:26:11 PST 2025


================
@@ -552,6 +552,58 @@ const int& get_ref_to_local() {
                       // expected-note at -1 {{returned here}}
 }
 
+namespace simple_annotation_inference {
----------------
usx95 wrote:

consider moving the inference related tests to suggestions itself. The suggested annotations makes it easier to review and maintain 

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


More information about the cfe-commits mailing list