Home
last modified time | relevance | path

Searched refs:LetQuery (Results 1 – 4 of 4) sorted by relevance

/external/llvm-project/clang-tools-extra/unittests/clang-query/
DQueryParserTest.cpp139 ASSERT_TRUE(isa<LetQuery>(Q)); in TEST_F()
140 EXPECT_EQ("foo", cast<LetQuery>(Q)->Name); in TEST_F()
141 EXPECT_TRUE(cast<LetQuery>(Q)->Value.isMatcher()); in TEST_F()
142 EXPECT_TRUE(cast<LetQuery>(Q)->Value.getMatcher().hasTypedMatcher<Decl>()); in TEST_F()
145 ASSERT_TRUE(isa<LetQuery>(Q)); in TEST_F()
146 EXPECT_EQ("foo", cast<LetQuery>(Q)->Name); in TEST_F()
147 EXPECT_TRUE(cast<LetQuery>(Q)->Value.isMatcher()); in TEST_F()
148 EXPECT_TRUE(cast<LetQuery>(Q)->Value.getMatcher().hasTypedMatcher<Decl>()); in TEST_F()
151 ASSERT_TRUE(isa<LetQuery>(Q)); in TEST_F()
152 EXPECT_EQ("bar", cast<LetQuery>(Q)->Name); in TEST_F()
[all …]
/external/llvm-project/clang-tools-extra/clang-query/
DQuery.h102 struct LetQuery : Query { struct
103 LetQuery(StringRef Name, const ast_matchers::dynamic::VariantValue &Value) in LetQuery() function
DQueryParser.cpp261 auto *Q = new LetQuery(Name, Value); in doParse()
348 return endQuery(new LetQuery(Name, VariantValue())); in doParse()
DQuery.cpp176 bool LetQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { in run()