Lines Matching defs:Snippet

99     const std::string Snippet = R"cc(
108 Snippet,
141 const std::string Snippet = R"cc(
148 Snippet, ifStmt(hasCondition(expr().bind(Condition)),
160 const std::string Snippet = R"cc(
166 auto StmtMatch = matchStmt(Snippet, ifStmt(hasCondition(stmt().bind("a1")),
176 // string, when `Id` is bound to the expression-statement in `Snippet`.
177 void testExpr(StringRef Id, StringRef Snippet, const Stencil &Stencil,
179 auto StmtMatch = matchStmt(Snippet, expr().bind(Id));
185 void testFailure(StringRef Id, StringRef Snippet, const Stencil &Stencil,
187 auto StmtMatch = matchStmt(Snippet, expr().bind(Id));
333 std::string Snippet = R"cc(
337 testExpr(Id, Snippet, maybeDeref(Id), "*x");
342 std::string Snippet = "std::unique_ptr<S> x; x->Field;";
344 matchStmt(Snippet, memberExpr(hasObjectExpression(expr().bind(Id))));
377 std::string Snippet = "std::unique_ptr<S> x; x->Field;";
379 matchStmt(Snippet, memberExpr(hasObjectExpression(expr().bind(Id))));
391 StringRef Snippet = R"cc(
396 testExpr(Id, Snippet, access(Id, "field"), "x.field");
400 StringRef Snippet = R"cc(
405 testExpr(Id, Snippet, access(Id, cat("field")), "x.field");
409 StringRef Snippet = R"cc(
414 testExpr(Id, Snippet, access(Id, "field"), "x.field");
418 StringRef Snippet = R"cc(
423 testExpr(Id, Snippet, access(Id, "field"), "x->field");
427 StringRef Snippet = R"cc(
432 testExpr(Id, Snippet, access(Id, "field"), "x->field");
436 StringRef Snippet = R"cc(
441 testExpr(Id, Snippet, access(Id, "field"), "x->field");
445 StringRef Snippet = R"cc(
450 testExpr(Id, Snippet, access(Id, "field"), "x->field");
454 StringRef Snippet = R"cc(
460 matchStmt(Snippet, memberExpr(hasObjectExpression(expr().bind(Id))));
471 StringRef Snippet = R"cc(
479 Snippet,
493 StringRef Snippet = R"cc(
501 matchStmt(Snippet, returnStmt(hasReturnValue(ignoringImplicit(memberExpr(
509 std::string Snippet = "int *x; x;";
512 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type"))));
519 std::string Snippet = "using Ty = int; Ty *x; x;";
522 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type"))));
529 std::string Snippet = "S s; s;";
532 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type"))));
539 std::string Snippet = "N::C c; c;";
542 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type"))));
549 std::string Snippet = "using N::C; C c; c;";
552 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type"))));
559 std::string Snippet = "auto c = desugar<AnonC>(); c;";
562 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type"))));
569 std::string Snippet = "int F(); F();";
571 auto StmtMatch = matchStmt(Snippet, callExpr(callee(namedDecl().bind("fn"))));
578 std::string Snippet = "struct Tag {}; [](Tag){};";
581 Snippet,
600 StringRef Snippet = R"cpp(
606 matchStmt(Snippet, callExpr(callee(functionDecl(hasName("foo"))),
615 StringRef Snippet = R"cpp(
620 matchStmt(Snippet, binaryOperator(hasRHS(expr().bind("rhs"))));
627 StringRef Snippet = R"cpp(
633 Snippet, binaryOperator(hasRHS(callExpr(
642 StringRef Snippet = R"cpp(
648 matchStmt(Snippet, callExpr(callee(functionDecl(hasName("foo"))),