Fix mistake made while rebasing

This commit is contained in:
Stephen Kelly 2020-05-23 01:24:56 +01:00
parent 0840d725c4
commit 3a1f0c6bd1
1 changed files with 7 additions and 7 deletions

View File

@ -1823,13 +1823,13 @@ void stringConstruct()
hasDescendant(varDecl( hasDescendant(varDecl(
hasName("s"), hasName("s"),
hasInitializer(stringLiteral()))))))); hasInitializer(stringLiteral())))))));
EXPECT_TRUE(matches(
Code, EXPECT_TRUE(
traverse(TK_IgnoreUnlessSpelledInSource, matches(Code, traverse(TK_IgnoreUnlessSpelledInSource,
functionDecl(hasName("conversionOperator"), functionDecl(hasName("stringConstruct"),
hasDescendant(varDecl( hasDescendant(cxxOperatorCallExpr(
hasName("c1"), hasInitializer(unaryOperator( isAssignmentOperator(),
hasOperatorName("*"))))))))); hasArgument(1, stringLiteral())))))));
} }
template <typename MatcherT> template <typename MatcherT>