Lines Matching refs:bind
73 matchCode("static int x = 0;", varDecl().bind("bound_node_id")); in selectFromTrivial()
104 .bind("init"))) in selectFromAssorted()
105 .bind("decl"))) in selectFromAssorted()
106 .bind("expr"))) in selectFromAssorted()
107 .bind("stmt"); in selectFromAssorted()
137 ast_matchers::internal::Matcher<Stmt> M = callExpr().bind(CallID); in TEST()
156 ast_matchers::internal::Matcher<Stmt> M = callExpr().bind(CallID); 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()
260 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST()
261 hasArgument(1, expr().bind("a1"))); in TEST()
272 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST()
273 hasArgument(1, expr().bind("a1"))); in TEST()
286 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST()
287 hasArgument(1, expr().bind("a1"))); in TEST()
298 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST()
299 hasArgument(1, expr().bind("a1"))); in TEST()
310 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST()
311 hasArgument(1, expr().bind("a1"))); in TEST()
323 auto Matcher = callExpr(hasArgument(0, expr().bind("a0")), in TEST()
324 hasArgument(1, expr().bind("a1"))); 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()
478 TestMatch Match = matchCode(Code, declRefExpr(to(functionDecl())).bind(Ref)); in TEST()
497 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
512 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
527 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
545 matchCode(Code, callExpr(callee(functionDecl(hasName("bar")))).bind(ID)); in TEST()
560 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
576 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
595 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
616 TestMatch Match = matchCode(Code, compoundStmt().bind(ID)); in TEST()
625 TestMatch Match = matchCode(Code, compoundStmt().bind(ID)); in TEST()
644 TestMatch Match = matchCode(Code, initListExpr().bind(ID)); in TEST()
658 TestMatch Match = matchCode(Code, initListExpr().bind(ID)); in TEST()
679 TestMatch Match = matchCode(Code, ifStmt().bind(ID)); in TEST()
693 TestMatch Match = matchCode(Code, ifStmt().bind(ID)); in TEST()
706 TestMatch Match = matchCode(Code, functionDecl(hasName("bad")).bind(Fun)); in TEST()
719 TestMatch Match = matchCode(Code, returnStmt().bind(Ret)); in TEST()
732 matchCode(Code, binaryOperator(hasLHS(expr().bind(ID))).bind(Op)); in TEST()
744 TestMatch Match = matchCode(Code, binaryOperator().bind(Op)); in TEST()