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

via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 21 09:22:09 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:

Ohh, i see. You are right, i will update the diag note - "freed here"  as well accordingly.

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


More information about the cfe-commits mailing list