================
@@ -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:
+   constexpr const int var = {};  // redundant use of `const`
+   // replaced by:
+   constexpr int var = {};
----------------
localspook wrote:

Can we do
```suggestion
   // Finds:
   constexpr const int var = 10;  // redundant use of `const`
   // replaced by:
   constexpr int var = 10;
```
just in case someone gets the wrong idea that the `{}`-initializer is 
significant.

https://github.com/llvm/llvm-project/pull/189733
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to