[clang] [LifetimeSafety] Add report on misuse of clang::noescape (PR #177260)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 25 12:54:09 PST 2026


================
@@ -0,0 +1,157 @@
+// RUN: %clang_cc1 -fsyntax-only -Wlifetime-safety-noescape -Wlifetime-safety -Wno-dangling -verify %s
----------------
usx95 wrote:

Can you remove `-Wlifetime-safety` and `-Wno-dangling` from here.

This would also require enabling the analysis through `IsLifetimeSafetyDiagnosticEnabled` in clang/lib/Sema/AnalysisBasedWarnings.cpp

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


More information about the cfe-commits mailing list