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

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 2 01:52:52 PST 2026


================
@@ -1,4 +1,5 @@
 // RUN: %clang_cc1 -fsyntax-only -Wlifetime-safety -Wlifetime-safety-experimental-invalidation -Wno-dangling -verify %s
+// RUN: %clang_cc1 -fsyntax-only -Wlifetime-safety -Wlifetime-safety-experimental-invalidation -Wlifetime-safety-experimental-destructor-use -Wno-dangling -verify=expected,dtor %s
----------------
Xazax-hun wrote:

Oh, indeed. Done. 

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


More information about the cfe-commits mailing list