================
@@ -0,0 +1,171 @@
+// RUN: %check_clang_tidy -std=c++11-or-later %s readability-redundant-const %t
+
+struct Foo {};
+
+constexpr int n1 = 10;
+const int n2 = 20;
+constexpr Foo n3 = {};
+
+constexpr const int p1 = 10;
----------------
vbvictor wrote:

Lets just assert that we only can remove one const and don't go crazy (or 
crash) when seeing 2+ const.
If clang warns about it doesn't mean that users will have this option turned 
on, see https://github.com/search?type=code&q=-Wno-duplicate-decl-specifier.


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