[clang] [analyzer] Ignoring `T v=v; ` idiom for uninitialized variable checker and dead store checker (PR #187530)

Ella Ma via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 22 02:33:08 PDT 2026


================
@@ -0,0 +1,65 @@
+// RUN: %clang_analyze_cc1 -xc %s \
+// RUN:   -analyzer-checker=core,debug.ExprInspection,deadcode.DeadStores \
+// RUN:   -verify
+// RUN: %clang_analyze_cc1 -xc++ %s \
+// RUN:   -analyzer-checker=core,debug.ExprInspection,deadcode.DeadStores \
+// RUN:   -verify -w
----------------
Snape3058 wrote:

> However, perhaps it is better to use single -Wno-whatever flags are instead of blanket disabling all warnings. 

Yes, I also prefer this.

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


More information about the cfe-commits mailing list