================
@@ -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]]">,
----------------
Xazax-hun wrote:
I wonder if we want to tone down this message, because in some cases it CAN be
expressed (if the pointer/view is owned).
https://github.com/llvm/llvm-project/pull/229784
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits