[clang] [LifetimeSafety] Add fixit verification of lifetimebound suggestions (NFC) (PR #177763)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 27 02:26:21 PST 2026
================
@@ -1,6 +1,8 @@
// RUN: rm -rf %t
// RUN: split-file %s %t
// RUN: %clang_cc1 -fsyntax-only -flifetime-safety-inference -fexperimental-lifetime-safety-tu-analysis -Wlifetime-safety-suggestions -Wlifetime-safety -Wno-dangling -I%t -verify %t/test_source.cpp
+// RUN: %clang_cc1 -flifetime-safety-inference -fexperimental-lifetime-safety-tu-analysis -Wlifetime-safety-suggestions -Wlifetime-safety -Wno-dangling -I%t -fixit %t/test_source.cpp
+// RUN: %clang_cc1 -fsyntax-only -flifetime-safety-inference -fexperimental-lifetime-safety-tu-analysis -Wlifetime-safety-suggestions -Wno-dangling -I%t -Werror=lifetime-safety-suggestions %t/test_source.cpp
----------------
usx95 wrote:
Is the removing of `-fsyntax-only` and addition in next invocation intentional ?
https://github.com/llvm/llvm-project/pull/177763
More information about the cfe-commits
mailing list