File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments