Lines Matching refs:Code
43 template <typename M> TestMatch matchCode(StringRef Code, M Matcher) { in matchCode() argument
44 auto ASTUnit = tooling::buildASTFromCode(Code); in matchCode()
89 StringRef Code = R"cc( in selectFromAssorted() local
109 return Selector(matchCode(Code, Matcher).Result); in selectFromAssorted()
132 StringRef Code = R"cc( in TEST() local
140 TestMatch Match = matchCode(Code, M); in TEST()
151 StringRef Code = R"cc( in TEST() local
160 TestMatch Match = matchCode(Code, M); in TEST()
171 StringRef Code = R"cc( in TEST() local
176 TestMatch Match = matchCode(Code, callExpr().bind(Call)); in TEST()
209 StringRef Code = R"cc( in TEST() local
215 matchCode(Code, declRefExpr(to(namedDecl(hasName("y")))).bind("yvar")); in TEST()
225 StringRef Code = R"cc( in TEST() local
231 matchCode(Code, declRefExpr(to(namedDecl(hasName("y")))).bind("yvar")); in TEST()
240 StringRef Code = R"cc( in TEST() local
247 matchCode(Code, declRefExpr(to(namedDecl(hasName("y")))).bind("yvar")); in TEST()
256 StringRef Code = R"cc( in TEST() local
263 TestMatch Match = matchCode(Code, Matcher); in TEST()
268 StringRef Code = R"cc( in TEST() local
276 TestMatch Match = matchCode(Code, Matcher); in TEST()
282 StringRef Code = R"cc( in TEST() local
289 TestMatch Match = matchCode(Code, Matcher); in TEST()
294 StringRef Code = R"cc( in TEST() local
301 TestMatch Match = matchCode(Code, Matcher); in TEST()
306 StringRef Code = R"cc( in TEST() local
314 TestMatch Match = matchCode(Code, Matcher); in TEST()
319 StringRef Code = R"cc( in TEST() local
327 TestMatch Match = matchCode(Code, Matcher); in TEST()
332 StringRef Code = "int f() { return 3; }"; in TEST() local
333 TestMatch Match = matchCode(Code, returnStmt().bind("id")); in TEST()
338 StringRef Code = "int f() { return 3; }"; in TEST() local
339 TestMatch Match = matchCode(Code, expr().bind("id")); in TEST()
344 StringRef Code = "int f() { return 3; }"; in TEST() local
345 TestMatch Match = matchCode(Code, expr().bind("id")); in TEST()
351 StringRef Code = "int f() { return 3; }"; in TEST() local
352 TestMatch Match = matchCode(Code, expr().bind("id")); in TEST()
359 StringRef Code = R"cc( in TEST() local
369 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
375 StringRef Code = R"cc( in TEST() local
388 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
393 StringRef Code = R"cc( in TEST() local
404 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
409 StringRef Code = R"cc( in TEST() local
420 TestMatch Match = matchCode(Code, memberExpr().bind(ID)); in TEST()
425 StringRef Code = R"cc( in TEST() local
431 TestMatch Match = matchCode(Code, functionDecl().bind(ID)); in TEST()
436 StringRef Code = R"cc( in TEST() local
443 TestMatch Match = matchCode(Code, declRefExpr(to(functionDecl())).bind(Ref)); in TEST()
448 StringRef Code = R"cc( in TEST() local
456 TestMatch Match = matchCode(Code, cxxCtorInitializer().bind(Init)); in TEST()
461 StringRef Code = R"cc( in TEST() local
477 Code, varDecl(hasName("a"), hasTypeLoc(typeLoc().bind(CtorTy)))); in TEST()
481 Code, cxxFunctionalCastExpr(hasTypeLoc(typeLoc().bind(CtorTy)))); in TEST()
485 Code, cxxTemporaryObjectExpr(hasTypeLoc(typeLoc().bind(CtorTy)))); in TEST()
497 StringRef Code = R"cc( in TEST() local
507 TestMatch Match = matchCode(Code, declRefExpr(to(functionDecl())).bind(Ref)); in TEST()
516 const StringRef Code = R"cc( in TEST() local
526 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
531 const StringRef Code = R"cc( in TEST() local
541 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
546 const StringRef Code = R"cc( in TEST() local
556 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
563 const StringRef Code = R"cc( in TEST() local
574 matchCode(Code, callExpr(callee(functionDecl(hasName("bar")))).bind(ID)); in TEST()
579 const StringRef Code = R"cc( in TEST() local
589 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
595 const StringRef Code = R"cc( in TEST() local
605 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
611 const StringRef Code = R"cc( in TEST() local
624 TestMatch Match = matchCode(Code, callExpr().bind(ID)); in TEST()
640 StringRef Code = R"cc( in TEST() local
645 TestMatch Match = matchCode(Code, compoundStmt().bind(ID)); in TEST()
652 StringRef Code = "void f() {}"; in TEST() local
654 TestMatch Match = matchCode(Code, compoundStmt().bind(ID)); in TEST()
666 StringRef Code = R"cc( in TEST() local
673 TestMatch Match = matchCode(Code, initListExpr().bind(ID)); in TEST()
680 StringRef Code = R"cc( in TEST() local
687 TestMatch Match = matchCode(Code, initListExpr().bind(ID)); in TEST()
699 StringRef Code = R"cc( in TEST() local
708 TestMatch Match = matchCode(Code, ifStmt().bind(ID)); in TEST()
713 StringRef Code = R"cc( in TEST() local
722 TestMatch Match = matchCode(Code, ifStmt().bind(ID)); in TEST()
729 StringRef Code = R"cc( in TEST() local
735 TestMatch Match = matchCode(Code, functionDecl(hasName("bad")).bind(Fun)); in TEST()
742 StringRef Code = R"cc( in TEST() local
748 TestMatch Match = matchCode(Code, returnStmt().bind(Ret)); in TEST()
754 StringRef Code = R"cc( in TEST() local
761 matchCode(Code, binaryOperator(hasLHS(expr().bind(ID))).bind(Op)); in TEST()
767 StringRef Code = R"cc( in TEST() local
773 TestMatch Match = matchCode(Code, binaryOperator().bind(Op)); in TEST()