Home
last modified time | relevance | path

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

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