[clang-tools-extra] [clang-tidy] Add `readability-redundant-zero-initializer` (PR #209367)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 3 01:48:48 PDT 2026


================
@@ -0,0 +1,16 @@
+// RUN: %check_clang_tidy -std=c17 -check-suffixes=C17 %s readability-redundant-zero-initializer %t
----------------
vbvictor wrote:

Please cover all C modes
```suggestion
// RUN: %check_clang_tidy -std=c90,c99,c11,c17 -check-suffixes=C17 %s readability-redundant-zero-initializer %t
```

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


More information about the cfe-commits mailing list