[clang-tools-extra] [clang-tidy] Add readability-redundant-lambda-parentheses check (PR #190438)

Victor Chernyakin via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 7 17:19:20 PDT 2026


================
@@ -0,0 +1,103 @@
+// 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
+
+#if __cplusplus >= 202002L
+template <bool B>
+void testRequires() {
----------------
localspook wrote:

It would be better to move this function to the bottom of the file, so that the file starts with the simple test cases

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


More information about the cfe-commits mailing list