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

Kashika Akhouri via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 8 04:57:52 PST 2025


================
@@ -552,6 +552,20 @@ const int& get_ref_to_local() {
                       // expected-note at -1 {{returned here}}
 }
 
+View inference_callee_return_identity(View a) {
----------------
kashika0112 wrote:

Have added the tests. You're right, the template one didn't work. Added a fixme for that.

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


More information about the cfe-commits mailing list