Lines Matching refs:Snippet

87 static void testPredicate(bool (*Pred)(const Expr &), StringRef Snippet,  in testPredicate()  argument
89 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testPredicate()
90 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in testPredicate()
92 << "Snippet: " << Snippet; in testPredicate()
97 static void testPredicateOnArg(bool (*Pred)(const Expr &), StringRef Snippet, in testPredicateOnArg() argument
100 Snippet, expr(ignoringImplicit(callExpr(hasArgument( in testPredicateOnArg()
102 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in testPredicateOnArg()
104 << "Snippet: " << Snippet; in testPredicateOnArg()
148 std::string Snippet = "std::unique_ptr<int> P; P;"; in TEST() local
150 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
151 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
155 << "Snippet: " << Snippet; in TEST()
159 std::string Snippet = "std::shared_ptr<int> P; P;"; in TEST() local
161 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
162 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
166 << "Snippet: " << Snippet; in TEST()
170 std::string Snippet = "Smart P; P;"; in TEST() local
172 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
173 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
177 << "Snippet: " << Snippet; in TEST()
181 std::string Snippet = "int *P; P;"; in TEST() local
183 matchStmt(Snippet, declRefExpr(hasType(qualType().bind("ty")))); in TEST()
184 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
188 << "Snippet: " << Snippet; in TEST()
193 StringRef Snippet, StringRef Expected) { in testBuilder() argument
194 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testBuilder()
201 static void testBuildAccess(StringRef Snippet, StringRef Expected, in testBuildAccess() argument
203 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testBuildAccess()
247 StringRef Snippet = R"cc( in TEST() local
256 Snippet, in TEST()
377 StringRef Snippet = R"cc( in TEST() local
382 matchStmt(Snippet, memberExpr(hasObjectExpression(expr().bind("expr")))); in TEST()
390 StringRef Snippet = R"cc( in TEST() local
396 matchStmt(Snippet, binaryOperator(isAssignmentOperator(), in TEST()
405 StringRef Snippet = R"cc( in TEST() local
414 Snippet, in TEST()
423 StringRef Snippet = "struct B : public A { void f() { super(); } };"; in TEST() local
425 Snippet, in TEST()