Lines Matching refs:matchCode

43 template <typename M> TestMatch matchCode(StringRef Code, M Matcher) {  in matchCode()  function
73 matchCode("static int x = 0;", varDecl().bind("bound_node_id")); in selectFromTrivial()
109 return Selector(matchCode(Code, Matcher).Result); in selectFromAssorted()
140 TestMatch Match = matchCode(Code, M); in TEST()
160 TestMatch Match = matchCode(Code, M); in TEST()
176 TestMatch Match = matchCode(Code, callExpr().bind(Call)); in TEST()
215 matchCode(Code, declRefExpr(to(namedDecl(hasName("y")))).bind("yvar")); in TEST()
231 matchCode(Code, declRefExpr(to(namedDecl(hasName("y")))).bind("yvar")); in TEST()
247 matchCode(Code, declRefExpr(to(namedDecl(hasName("y")))).bind("yvar")); in TEST()
263 TestMatch Match = matchCode(Code, Matcher); in TEST()
276 TestMatch Match = matchCode(Code, Matcher); in TEST()
289 TestMatch Match = matchCode(Code, Matcher); in TEST()
301 TestMatch Match = matchCode(Code, Matcher); in TEST()
314 TestMatch Match = matchCode(Code, Matcher); in TEST()
327 TestMatch Match = matchCode(Code, Matcher); in TEST()
333 TestMatch Match = matchCode(Code, returnStmt().bind("id")); in TEST()
339 TestMatch Match = matchCode(Code, expr().bind("id")); in TEST()
345 TestMatch Match = matchCode(Code, expr().bind("id")); in TEST()
352 TestMatch Match = matchCode(Code, expr().bind("id")); in TEST()
369 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
388 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
404 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
420 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
431 TestMatch Match = matchCode(Code, functionDecl().bind(ID)); in TEST()
443 TestMatch Match = matchCode(Code, declRefExpr(to(functionDecl())).bind(Ref)); in TEST()
456 TestMatch Match = matchCode(Code, cxxCtorInitializer().bind(Init)); in TEST()
476 TestMatch MatchA = matchCode( in TEST()
480 TestMatch MatchB = matchCode( in TEST()
484 TestMatch MatchC = matchCode( in TEST()
507 TestMatch Match = matchCode(Code, declRefExpr(to(functionDecl())).bind(Ref)); in TEST()
526 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
541 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
556 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
574 matchCode(Code, callExpr(callee(functionDecl(hasName("bar")))).bind(ID)); in TEST()
589 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
605 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
624 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
645 TestMatch Match = matchCode(Code, compoundStmt().bind(ID)); in TEST()
654 TestMatch Match = matchCode(Code, compoundStmt().bind(ID)); in TEST()
673 TestMatch Match = matchCode(Code, initListExpr().bind(ID)); in TEST()
687 TestMatch Match = matchCode(Code, initListExpr().bind(ID)); in TEST()
708 TestMatch Match = matchCode(Code, ifStmt().bind(ID)); in TEST()
722 TestMatch Match = matchCode(Code, ifStmt().bind(ID)); in TEST()
735 TestMatch Match = matchCode(Code, functionDecl(hasName("bad")).bind(Fun)); in TEST()
748 TestMatch Match = matchCode(Code, returnStmt().bind(Ret)); in TEST()
761 matchCode(Code, binaryOperator(hasLHS(expr().bind(ID))).bind(Op)); in TEST()
773 TestMatch Match = matchCode(Code, binaryOperator().bind(Op)); in TEST()