Lines Matching refs:Snippet

97     const std::string Snippet = R"cc(  in testError()  local
106 Snippet, in testError()
139 const std::string Snippet = R"cc( in TEST_F() local
146 Snippet, ifStmt(hasCondition(expr().bind(Condition)), in TEST_F()
158 const std::string Snippet = R"cc( in TEST_F() local
164 auto StmtMatch = matchStmt(Snippet, ifStmt(hasCondition(stmt().bind("a1")), in TEST_F()
175 void testExpr(StringRef Id, StringRef Snippet, const Stencil &Stencil, in testExpr() argument
177 auto StmtMatch = matchStmt(Snippet, expr().bind(Id)); in testExpr()
183 void testFailure(StringRef Id, StringRef Snippet, const Stencil &Stencil, in testFailure() argument
185 auto StmtMatch = matchStmt(Snippet, expr().bind(Id)); in testFailure()
331 std::string Snippet = R"cc( in TEST_F() local
335 testExpr(Id, Snippet, maybeDeref(Id), "*x"); in TEST_F()
340 std::string Snippet = "std::unique_ptr<S> x; x->Field;"; in TEST_F() local
342 matchStmt(Snippet, memberExpr(hasObjectExpression(expr().bind(Id)))); in TEST_F()
375 std::string Snippet = "std::unique_ptr<S> x; x->Field;"; in TEST_F() local
377 matchStmt(Snippet, memberExpr(hasObjectExpression(expr().bind(Id)))); in TEST_F()
389 StringRef Snippet = R"cc( in TEST_F() local
394 testExpr(Id, Snippet, access(Id, "field"), "x.field"); in TEST_F()
398 StringRef Snippet = R"cc( in TEST_F() local
403 testExpr(Id, Snippet, access(Id, cat("field")), "x.field"); in TEST_F()
407 StringRef Snippet = R"cc( in TEST_F() local
412 testExpr(Id, Snippet, access(Id, "field"), "x.field"); in TEST_F()
416 StringRef Snippet = R"cc( in TEST_F() local
421 testExpr(Id, Snippet, access(Id, "field"), "x->field"); in TEST_F()
425 StringRef Snippet = R"cc( in TEST_F() local
430 testExpr(Id, Snippet, access(Id, "field"), "x->field"); in TEST_F()
434 StringRef Snippet = R"cc( in TEST_F() local
439 testExpr(Id, Snippet, access(Id, "field"), "x->field"); in TEST_F()
443 StringRef Snippet = R"cc( in TEST_F() local
448 testExpr(Id, Snippet, access(Id, "field"), "x->field"); in TEST_F()
452 StringRef Snippet = R"cc( in TEST_F() local
458 matchStmt(Snippet, memberExpr(hasObjectExpression(expr().bind(Id)))); in TEST_F()
469 StringRef Snippet = R"cc( in TEST_F() local
477 Snippet, in TEST_F()
491 StringRef Snippet = R"cc( in TEST_F() local
499 matchStmt(Snippet, returnStmt(hasReturnValue(ignoringImplicit(memberExpr( in TEST_F()
507 std::string Snippet = "int *x; x;"; in TEST_F() local
510 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
517 std::string Snippet = "using Ty = int; Ty *x; x;"; in TEST_F() local
520 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
527 std::string Snippet = "S s; s;"; in TEST_F() local
530 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
537 std::string Snippet = "N::C c; c;"; in TEST_F() local
540 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
547 std::string Snippet = "using N::C; C c; c;"; in TEST_F() local
550 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
557 std::string Snippet = "AnonC c; c;"; in TEST_F() local
560 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("type")))); in TEST_F()
576 StringRef Snippet = R"cpp( in TEST_F() local
582 matchStmt(Snippet, callExpr(callee(functionDecl(hasName("foo"))), in TEST_F()
591 StringRef Snippet = R"cpp( in TEST_F() local
596 matchStmt(Snippet, binaryOperator(hasRHS(expr().bind("rhs")))); in TEST_F()
603 StringRef Snippet = R"cpp( in TEST_F() local
609 Snippet, binaryOperator(hasRHS(callExpr( in TEST_F()
618 StringRef Snippet = R"cpp( in TEST_F() local
624 matchStmt(Snippet, callExpr(callee(functionDecl(hasName("foo"))), in TEST_F()