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(
hasName("s"),
hasInitializer(stringLiteral())))))));
EXPECT_TRUE(matches(
Code,
traverse(TK_IgnoreUnlessSpelledInSource,
functionDecl(hasName("conversionOperator"),
hasDescendant(varDecl(
hasName("c1"), hasInitializer(unaryOperator(
hasOperatorName("*")))))))));
EXPECT_TRUE(
matches(Code, traverse(TK_IgnoreUnlessSpelledInSource,
functionDecl(hasName("stringConstruct"),
hasDescendant(cxxOperatorCallExpr(
isAssignmentOperator(),
hasArgument(1, stringLiteral())))))));
}
template <typename MatcherT>