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(
|
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>
|
||||||
|
|
Loading…
Reference in New Issue