[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 13:51:02 PDT 2026


================
@@ -0,0 +1,49 @@
+.. title:: clang-tidy - readability-redundant-const
+
+readability-redundant-const
+===========================
+
+Detects redundant ``const`` specifiers on variable declarations.
+
+Examples:
+
+.. code-block:: c++
+
+   // Finds:
----------------
vbvictor wrote:

only `// Finds:` part, I don't remember any other docs do that (and imho it's obvious).
`Replace` and everything else is fine

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


More information about the cfe-commits mailing list