[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:24 PDT 2026


================
@@ -0,0 +1,157 @@
+// RUN: %check_clang_tidy -std=c++11-or-later %s readability-redundant-const %t
+
+struct Foo {};
+
+// Simple allowed usages, nothing to warn
----------------
vbvictor wrote:

Can we remove redundant obvious comments. In other words add comments describing non-obvious edge-cases.

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


More information about the cfe-commits mailing list