[clang-tools-extra] [clang-tidy] Add readability-redundant-lambda-parentheses check (PR #190438)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 5 15:34:43 PDT 2026
================
@@ -0,0 +1,38 @@
+// RUN: %check_clang_tidy -std=c++17 %s readability-redundant-lambda-parentheses %t
----------------
OmarAzizi wrote:
Hi @zeyi2, I chose separate test files per standard (redundant-lambda-parentheses.cpp for C++17, -cxx20.cpp for C++20, -cxx23.cpp for C++23) similar to readability-trailing-comma. Using -std=c++17-or-later in the base file would cause unexpected warnings from the C++23 specifier cases, which are intentionally isolated in the cxx23 file. Happy to change the approach if you prefer a single file.
https://github.com/llvm/llvm-project/pull/190438
More information about the cfe-commits
mailing list