File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ UnnecessaryValueParamCheck::UnnecessaryValueParamCheck(
5454 IsAllowedInCoroutines(Options.get(" IsAllowedInCoroutines" , false )) {}
5555
5656void UnnecessaryValueParamCheck::registerMatchers (MatchFinder *Finder) {
57- using StmtMatcher = ast_matchers::internal::BindableMatcher<Stmt>;
5857 const auto ExpensiveValueParamDecl = parmVarDecl (
5958 hasType (qualType (
6059 hasCanonicalType (matchers::isExpensiveToCopy ()),
@@ -67,8 +66,7 @@ void UnnecessaryValueParamCheck::registerMatchers(MatchFinder *Finder) {
6766 TK_AsIs,
6867 functionDecl (hasBody (IsAllowedInCoroutines
6968 ? stmt ()
70- : static_cast <StmtMatcher>(
71- unless (coroutineBodyStmt ()))),
69+ : stmt (unless (coroutineBodyStmt ()))),
7270 isDefinition (), unless (isImplicit ()),
7371 unless (cxxMethodDecl (anyOf (isOverride (), isFinal ()))),
7472 has (typeLoc (forEach (ExpensiveValueParamDecl))),
You can’t perform that action at this time.
0 commit comments