[clang] [LifetimeSafety] Model scope-exit destructor and cleanup callback as a use (PR #204650)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 2 00:37:53 PST 2026


================
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -Wlifetime-safety -Wlifetime-safety-annotation-placement -Wno-dangling -verify=expected,function %s
+// RUN: %clang_cc1 -fsyntax-only -Wlifetime-safety -Wlifetime-safety-annotation-placement -Wlifetime-safety-experimental-destructor-use -Wno-dangling -verify=expected,function,dtor %s
----------------
usx95 wrote:

Same here. I would prefer if we do not introduce different invocation unless they are different analysis modes.


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


More information about the cfe-commits mailing list