We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 689f95b commit 9991b9cCopy full SHA for 9991b9c
clang-tools-extra/clang-tidy/bugprone/DefaultLambdaCaptureCheck.cpp
@@ -15,7 +15,6 @@ using namespace clang::ast_matchers;
15
namespace clang::tidy::bugprone {
16
17
void DefaultLambdaCaptureCheck::registerMatchers(MatchFinder *Finder) {
18
- // Match any lambda expression
19
Finder->addMatcher(lambdaExpr().bind("lambda"), this);
20
}
21
@@ -24,7 +23,6 @@ void DefaultLambdaCaptureCheck::check(const MatchFinder::MatchResult &Result) {
24
23
if (!Lambda)
25
return;
26
27
- // Check if lambda has a default capture
28
if (Lambda->getCaptureDefault() == LCD_None)
29
30
0 commit comments