[clang] Fix `-Wlifetime-safety-dangling-global-moved` not being implied by `-Wlifetime-safety-all` (PR #204891)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Jun 21 03:15:26 PDT 2026
================
@@ -1,8 +1,14 @@
-// RUN: %clang_cc1 -fsyntax-only -Wlifetime-safety -Wno-dangling -verify %s
+// RUN: %clang_cc1 -fsyntax-only -Wlifetime-safety -Wno-lifetime-safety-dangling-global-moved -Wno-dangling -verify %s
+// RUN: %clang_cc1 -fsyntax-only -Wlifetime-safety-dangling-global-moved -Wno-dangling -verify=moved %s
----------------
sipher-01 wrote:
Thank you for the Feedback
I have Updated the test as suggested — removed the two extra RUN lines and
kept just the new test case using the existing Inputs/lifetime-analysis.h
header. All existing tests and the new moved test are passing locally.
I have also update the description related to the AI policy
https://github.com/llvm/llvm-project/pull/204891
More information about the cfe-commits
mailing list