Home
last modified time | relevance | path

Searched refs:StmtMatch (Results 1 – 3 of 3) sorted by relevance

/external/llvm-project/clang/unittests/Tooling/
DStencilTest.cpp91 auto StmtMatch = matchStmt( in testError() local
101 ASSERT_TRUE(StmtMatch); in testError()
102 if (auto ResultOrErr = Stencil->eval(StmtMatch->Result)) { in testError()
131 auto StmtMatch = matchStmt( in TEST_F() local
134 ASSERT_TRUE(StmtMatch); in TEST_F()
139 EXPECT_THAT_EXPECTED(Stencil->eval(StmtMatch->Result), in TEST_F()
150 auto StmtMatch = matchStmt(Snippet, ifStmt(hasCondition(stmt().bind("a1")), in TEST_F() local
152 ASSERT_TRUE(StmtMatch); in TEST_F()
154 auto ResultOrErr = Stencil->eval(StmtMatch->Result); in TEST_F()
163 auto StmtMatch = matchStmt(Snippet, expr().bind(Id)); in testExpr() local
[all …]
DSourceCodeBuildersTest.cpp71 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testPredicate() local
72 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in testPredicate()
73 EXPECT_EQ(Expected, Pred(*StmtMatch->Result.Nodes.getNodeAs<Expr>("expr"))) in testPredicate()
81 auto StmtMatch = matchStmt( in testPredicateOnArg() local
84 ASSERT_TRUE(StmtMatch) << "Snippet: " << Snippet; in testPredicateOnArg()
85 EXPECT_EQ(Expected, Pred(*StmtMatch->Result.Nodes.getNodeAs<Expr>("arg"))) in testPredicateOnArg()
132 auto StmtMatch = matchStmt(Snippet, expr().bind("expr")); in testBuilder() local
133 ASSERT_TRUE(StmtMatch); in testBuilder()
134 EXPECT_THAT(Builder(*StmtMatch->Result.Nodes.getNodeAs<Expr>("expr"), in testBuilder()
135 *StmtMatch->Result.Context), in testBuilder()
/external/llvm-project/clang/unittests/AST/
DDataCollectionTest.cpp73 const StatementMatcher &StmtMatch, in hashStmt() argument
77 Finder.addMatcher(StmtMatch, &Hasher); in hashStmt()
94 isStmtHashEqual(const StatementMatcher &StmtMatch, StringRef Code1, in isStmtHashEqual() argument
97 testing::AssertionResult Result = hashStmt(Hash1, StmtMatch, Code1); in isStmtHashEqual()
100 if (!(Result = hashStmt(Hash2, StmtMatch, Code2))) in isStmtHashEqual()