forked from OSchip/llvm-project
Fix mistake made while rebasing
This commit is contained in:
parent
0840d725c4
commit
3a1f0c6bd1
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue