Lines Matching refs:Snippet

86 static void testPredicate(bool (*Pred)(const Expr &), StringRef Snippet,  in testPredicate()  argument
88 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testPredicate()
89 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in testPredicate()
91 << "Snippet: " << Snippet; in testPredicate()
96 static void testPredicateOnArg(bool (*Pred)(const Expr &), StringRef Snippet, in testPredicateOnArg() argument
99 Snippet, expr(ignoringImplicit(callExpr(hasArgument( in testPredicateOnArg()
101 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in testPredicateOnArg()
103 << "Snippet: " << Snippet; in testPredicateOnArg()
147 std::string Snippet = "std::unique_ptr<int> P; P;"; in TEST() local
149 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
150 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
154 << "Snippet: " << Snippet; in TEST()
158 std::string Snippet = "std::shared_ptr<int> P; P;"; in TEST() local
160 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
161 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
165 << "Snippet: " << Snippet; in TEST()
169 std::string Snippet = "Smart P; P;"; in TEST() local
171 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
172 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
176 << "Snippet: " << Snippet; in TEST()
180 std::string Snippet = "int *P; P;"; in TEST() local
182 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
183 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
187 << "Snippet: " << Snippet; in TEST()
192 StringRef Snippet, StringRef Expected) { in testBuilder() argument
193 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testBuilder()
200 static void testBuildAccess(StringRef Snippet, StringRef Expected, in testBuildAccess() argument
202 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testBuildAccess()
246 StringRef Snippet = R"cc( in TEST() local
255 Snippet, in TEST()
376 StringRef Snippet = R"cc( in TEST() local
381 matchStmt(Snippet, memberExpr(hasObjectExpression(expr().bind("expr")))); in TEST()
389 StringRef Snippet = R"cc( in TEST() local
395 matchStmt(Snippet, binaryOperator(isAssignmentOperator(), in TEST()
404 StringRef Snippet = R"cc( in TEST() local
413 Snippet, in TEST()
422 StringRef Snippet = "struct B : public A { void f() { super(); } };"; in TEST() local
424 Snippet, in TEST()