================
@@ -0,0 +1,44 @@
+.. title:: clang-tidy - readability-redundant-const
+
+readability-redundant-const
+===========================
+
+Detects redundant ``const`` specifiers on variable declarations.
+
+``constexpr`` variables are already implicitly ``const``, so adding an
+explicit ``const`` specifier is redundant.
+
+Examples:
+
+.. code-block:: c++
+
+   constexpr const int var = 10;  // redundant use of `const`
----------------
vbvictor wrote:

Nnit Please use 2-space indent for code.

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