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

via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 20 03:19:41 PDT 2026


================
@@ -277,21 +277,21 @@ View return_view_field(const ViewProvider& v) {    // expected-warning {{paramet
 
 void test_get_on_temporary_pointer() {
   const ReturnsSelf* s_ref = &ReturnsSelf().get(); // expected-warning {{temporary object does not live long enough}}.
-                                                   // expected-note at -1 {{destroyed here}}
+                                                   // expected-note at -1 {{is destroyed here}}
----------------
iitianpushkar wrote:

No issue !!

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


More information about the cfe-commits mailing list