[clang-tools-extra] [clang-tidy] Adds readability-redundant-const check (PR #189733)

Baranov Victor via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 5 02:30:25 PDT 2026


================
@@ -0,0 +1,23 @@
+// RUN: %check_clang_tidy -std=c23-or-later %s readability-redundant-const %t
+
+const int n1 = 20;
+
+// C23 constexpr
----------------
vbvictor wrote:

```suggestion
```

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


More information about the cfe-commits mailing list