[clang] [LifetimeSafety] Add fixit verification of lifetimebound suggestions (NFC) (PR #177763)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Sat Jan 24 05:32:56 PST 2026
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/177763
None
>From 015caba2b8f99d8bcc09de1fa47f7e7ca669036e Mon Sep 17 00:00:00 2001
From: Victor Baranov <bar.victor.2002 at gmail.com>
Date: Sat, 24 Jan 2026 16:32:09 +0300
Subject: [PATCH] [LifetimeSafety] Add fixit verification of lifetimebound
suggestions (NFC)
---
clang/test/Sema/warn-lifetime-safety-suggestions.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/clang/test/Sema/warn-lifetime-safety-suggestions.cpp b/clang/test/Sema/warn-lifetime-safety-suggestions.cpp
index bb8fd3933b55d..b225cd1cc52e7 100644
--- a/clang/test/Sema/warn-lifetime-safety-suggestions.cpp
+++ b/clang/test/Sema/warn-lifetime-safety-suggestions.cpp
@@ -1,6 +1,8 @@
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: %clang_cc1 -fsyntax-only -fexperimental-lifetime-safety -fexperimental-lifetime-safety-inference -fexperimental-lifetime-safety-tu-analysis -Wexperimental-lifetime-safety-suggestions -Wexperimental-lifetime-safety -Wno-dangling -I%t -verify %t/test_source.cpp
+// RUN: %clang_cc1 -fexperimental-lifetime-safety -fexperimental-lifetime-safety-inference -fexperimental-lifetime-safety-tu-analysis -Wexperimental-lifetime-safety-suggestions -Wno-dangling -I%t -fixit %t/test_source.cpp
+// RUN: %clang_cc1 -fsyntax-only -fexperimental-lifetime-safety -fexperimental-lifetime-safety-inference -fexperimental-lifetime-safety-tu-analysis -Wexperimental-lifetime-safety-suggestions -Wno-dangling -I%t -Werror %t/test_source.cpp
View definition_before_header(View a);
More information about the cfe-commits
mailing list