[clang] [LifetimeSafety] Add warning for member functions returning field origins (PR #229784)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 14 02:50:33 PDT 2026


================
@@ -744,6 +744,13 @@ Validates correct usage and adherence to lifetime safety annotations like [[clan
   }];
 }
 
+def LifetimeSafetyFieldOriginEscape
+    : DiagGroup<"lifetime-safety-field-origin-escape"> {
----------------
usx95 wrote:

Added an experimental prefix.

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


More information about the cfe-commits mailing list