Lines Matching refs:StmtMatch

88   auto StmtMatch = matchStmt(Snippet, expr().bind("expr"));  in testPredicate()  local
89 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in testPredicate()
90 EXPECT_EQ(Expected, Pred(*StmtMatch->Result.Nodes.getNodeAs<Expr>("expr"))) in testPredicate()
98 auto StmtMatch = matchStmt( in testPredicateOnArg() local
101 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in testPredicateOnArg()
102 EXPECT_EQ(Expected, Pred(*StmtMatch->Result.Nodes.getNodeAs<Expr>("arg"))) in testPredicateOnArg()
148 auto StmtMatch = in TEST() local
150 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
152 isKnownPointerLikeType(*StmtMatch->Result.Nodes.getNodeAs<QualType>("ty"), in TEST()
153 *StmtMatch->Result.Context)) in TEST()
159 auto StmtMatch = in TEST() local
161 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
163 isKnownPointerLikeType(*StmtMatch->Result.Nodes.getNodeAs<QualType>("ty"), in TEST()
164 *StmtMatch->Result.Context)) in TEST()
170 auto StmtMatch = in TEST() local
172 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
174 isKnownPointerLikeType(*StmtMatch->Result.Nodes.getNodeAs<QualType>("ty"), in TEST()
175 *StmtMatch->Result.Context)) in TEST()
181 auto StmtMatch = in TEST() local
183 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in TEST()
185 isKnownPointerLikeType(*StmtMatch->Result.Nodes.getNodeAs<QualType>("ty"), in TEST()
186 *StmtMatch->Result.Context)) in TEST()
193 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testBuilder() local
194 ASSERT_TRUE(StmtMatch); in testBuilder()
195 EXPECT_THAT(Builder(*StmtMatch->Result.Nodes.getNodeAs<Expr>("expr"), in testBuilder()
196 *StmtMatch->Result.Context), in testBuilder()
202 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testBuildAccess() local
203 ASSERT_TRUE(StmtMatch); in testBuildAccess()
204 EXPECT_THAT(buildAccess(*StmtMatch->Result.Nodes.getNodeAs<Expr>("expr"), in testBuildAccess()
205 *StmtMatch->Result.Context, C), in testBuildAccess()
254 auto StmtMatch = matchStmt( in TEST() local
257 ASSERT_TRUE(StmtMatch); in TEST()
258 EXPECT_THAT(buildAddressOf(*StmtMatch->Result.Nodes.getNodeAs<Expr>("expr"), in TEST()
259 *StmtMatch->Result.Context), in TEST()
380 auto StmtMatch = in TEST() local
382 ASSERT_TRUE(StmtMatch); in TEST()
383 EXPECT_THAT(buildAccess(*StmtMatch->Result.Nodes.getNodeAs<Expr>("expr"), in TEST()
384 *StmtMatch->Result.Context), in TEST()
394 auto StmtMatch = in TEST() local
397 ASSERT_TRUE(StmtMatch); in TEST()
398 EXPECT_THAT(buildAccess(*StmtMatch->Result.Nodes.getNodeAs<Expr>("expr"), in TEST()
399 *StmtMatch->Result.Context), in TEST()
412 auto StmtMatch = matchStmt( in TEST() local
415 ASSERT_TRUE(StmtMatch); in TEST()
416 EXPECT_THAT(buildAccess(*StmtMatch->Result.Nodes.getNodeAs<Expr>("expr"), in TEST()
417 *StmtMatch->Result.Context), in TEST()
423 auto StmtMatch = matchStmt( in TEST() local
426 ASSERT_TRUE(StmtMatch); in TEST()
427 EXPECT_THAT(buildAccess(*StmtMatch->Result.Nodes.getNodeAs<Expr>("expr"), in TEST()
428 *StmtMatch->Result.Context), in TEST()