Skip to content

Commit e61587e

Browse files
committed
fixup! [clang-tidy] Added check to detect redundant inline keyword
Fixed lambda expr
1 parent 06676a7 commit e61587e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang-tools-extra/clang-tidy/readability/RedundantInlineSpecifierCheck.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ getInlineTokenLocation(SourceRange RangeLocation, const SourceManager &Sources,
5555

5656
void RedundantInlineSpecifierCheck::registerMatchers(MatchFinder *Finder) {
5757
Finder->addMatcher(
58-
functionDecl(unless(isExpansionInSystemHeader()),
59-
unless(hasAncestor(lambdaExpr())), isInlineSpecified(),
58+
functionDecl(unless(isExpansionInSystemHeader()), isInlineSpecified(),
6059
anyOf(isConstexpr(), isDeleted(),
6160
allOf(isDefinition(), hasAncestor(recordDecl()))))
6261
.bind("fun_decl"),

0 commit comments

Comments
 (0)