[clang-tools-extra] [clang-tidy] Add readability-redundant-lambda-parentheses check (PR #190438)
Baranov Victor via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 9 10:46:01 PDT 2026
================
@@ -0,0 +1,142 @@
+// RUN: %check_clang_tidy -std=c++11,c++14,c++17 %s readability-redundant-lambda-parentheses %t
+// RUN: %check_clang_tidy -std=c++20 -check-suffixes=,CXX20 %s readability-redundant-lambda-parentheses %t
+// RUN: %check_clang_tidy -std=c++23-or-later -check-suffixes=,CXX20,CXX23 %s readability-redundant-lambda-parentheses %t
+
+
+int main() {
+ // Basic cases - warn in all standards
----------------
vbvictor wrote:
Can we remove redundant comments that don't contribute anything
https://github.com/llvm/llvm-project/pull/190438
More information about the cfe-commits
mailing list