[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
================
@@ -11148,6 +11148,14 @@ def warn_lifetime_safety_noescape_escapes
InGroup<LifetimeSafetyNoescape>,
DefaultIgnore;
+def warn_lifetime_safety_field_origin_escape
+ : Warning<"return value depends on the lifetime of the object referenced by %0, which cannot be expressed with [[clang::lifetimebound]]">,
----------------
usx95 wrote:
Done. PTAL.
https://github.com/llvm/llvm-project/pull/229784
More information about the cfe-commits
mailing list