Home
last modified time | relevance | path

Searched refs:MatchQuery (Results 1 – 5 of 5) sorted by relevance

/external/llvm-project/clang-tools-extra/unittests/clang-query/
DQueryEngineTest.cpp74 EXPECT_TRUE(MatchQuery("functionDecl()", FnMatcher).run(OS, S)); in TEST_F()
88 EXPECT_TRUE(MatchQuery(FooMatcherString, FooMatcher).run(OS, S)); in TEST_F()
98 EXPECT_TRUE(MatchQuery(FooMatcherString, FooMatcher).run(OS, S)); in TEST_F()
107 EXPECT_TRUE(MatchQuery(FooMatcherString, FooMatcher).run(OS, S)); in TEST_F()
115 EXPECT_TRUE(MatchQuery(FooMatcherString, FooMatcher).run(OS, S)); in TEST_F()
127 EXPECT_TRUE(MatchQuery(FooMatcherString, FooMatcher).run(OS, S)); in TEST_F()
133 EXPECT_FALSE(MatchQuery("isMain()", isMain()).run(OS, S)); in TEST_F()
DQueryParserTest.cpp129 ASSERT_TRUE(isa<MatchQuery>(Q)); in TEST_F()
130 EXPECT_TRUE(cast<MatchQuery>(Q)->Matcher.canConvertTo<Decl>()); in TEST_F()
133 ASSERT_TRUE(isa<MatchQuery>(Q)); in TEST_F()
134 EXPECT_TRUE(cast<MatchQuery>(Q)->Matcher.canConvertTo<Stmt>()); in TEST_F()
290 ASSERT_TRUE(isa<MatchQuery>(Q)); in TEST_F()
300 ASSERT_TRUE(isa<MatchQuery>(Q)); in TEST_F()
318 ASSERT_TRUE(isa<MatchQuery>(Q)); in TEST_F()
367 ASSERT_TRUE(isa<MatchQuery>(Q)); in TEST_F()
382 ASSERT_TRUE(isa<MatchQuery>(Q)); in TEST_F()
406 ASSERT_TRUE(isa<MatchQuery>(Q)); in TEST_F()
/external/llvm-project/clang-tools-extra/clang-query/
DQuery.h89 struct MatchQuery : Query { struct
90 MatchQuery(StringRef Source, in MatchQuery() argument
DQuery.cpp93 bool MatchQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { in run()
DQueryParser.cpp280 auto *Q = new MatchQuery(ActualSource, *Matcher); in doParse()