[clang] [LifetimeSafety] Improve destroyed and invalidated diagnostic notes (PR #204900)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 21 10:04:24 PDT 2026


================
@@ -11052,8 +11052,8 @@ def warn_lifetime_safety_inapplicable_lifetimebound
       DefaultIgnore;
 
 def note_lifetime_safety_used_here : Note<"later used here">;
-def note_lifetime_safety_invalidated_here : Note<"invalidated here">;
-def note_lifetime_safety_destroyed_here : Note<"destroyed here">;
+def note_lifetime_safety_invalidated_here : Note<"%0 is invalidated here">;
+def note_lifetime_safety_destroyed_here : Note<"%0 is destroyed here">;
 def note_lifetime_safety_freed_here : Note<"freed here">;
----------------
iitianpushkar wrote:

Updated !!

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


More information about the cfe-commits mailing list