Skip to content

Commit eb791cc

Browse files
committed
Fix formatting
1 parent c0c5fdc commit eb791cc

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

clang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,14 @@ void UnnecessaryValueParamCheck::registerMatchers(MatchFinder *Finder) {
6262
matchers::matchesAnyListedName(AllowedTypes))))))),
6363
decl().bind("param"));
6464
Finder->addMatcher(
65-
traverse(
66-
TK_AsIs,
67-
functionDecl(hasBody(IgnoreCoroutines
68-
? stmt(unless(coroutineBodyStmt()))
69-
: stmt()),
70-
isDefinition(), unless(isImplicit()),
71-
unless(cxxMethodDecl(anyOf(isOverride(), isFinal()))),
72-
has(typeLoc(forEach(ExpensiveValueParamDecl))),
73-
decl().bind("functionDecl"))),
65+
traverse(TK_AsIs,
66+
functionDecl(
67+
hasBody(IgnoreCoroutines ? stmt(unless(coroutineBodyStmt()))
68+
: stmt()),
69+
isDefinition(), unless(isImplicit()),
70+
unless(cxxMethodDecl(anyOf(isOverride(), isFinal()))),
71+
has(typeLoc(forEach(ExpensiveValueParamDecl))),
72+
decl().bind("functionDecl"))),
7473
this);
7574
}
7675

0 commit comments

Comments
 (0)