[clang-tools-extra] [clang-tidy] Add readability-redundant-lambda-parentheses check (PR #190438)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 4 13:30:43 PDT 2026
================
@@ -0,0 +1,99 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "RedundantLambdaParenthesesCheck.h"
+#include "clang/ASTMatchers/ASTMatchFinder.h"
+#include "clang/Lex/Lexer.h"
+
+using namespace clang::ast_matchers;
+
+namespace {
+
+AST_MATCHER(clang::LambdaExpr, hasNoParameters) {
----------------
localspook wrote:
Move the anonymous namespace inside `clang::tidy::readability`, then you can remove these qualifiers:
```suggestion
AST_MATCHER(LambdaExpr, hasNoParameters) {
```
https://github.com/llvm/llvm-project/pull/190438
More information about the cfe-commits
mailing list