Home
last modified time | relevance | path

Searched refs:VariantMatcher (Results 1 – 10 of 10) sorted by relevance

/external/clang/lib/ASTMatchers/Dynamic/
DVariantValue.cpp53 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher, in canConstructFrom()
60 VariantMatcher::MatcherOps::constructVariadicOperator( in constructVariadicOperator()
62 ArrayRef<VariantMatcher> InnerMatchers) const { in constructVariadicOperator()
78 VariantMatcher::Payload::~Payload() {} in ~Payload()
80 class VariantMatcher::SinglePayload : public VariantMatcher::Payload {
111 class VariantMatcher::PolymorphicPayload : public VariantMatcher::Payload {
177 class VariantMatcher::VariadicOpPayload : public VariantMatcher::Payload {
180 std::vector<VariantMatcher> Args) in VariadicOpPayload()
204 for (const VariantMatcher &Matcher : Args) { in isConvertibleTo()
213 const std::vector<VariantMatcher> Args;
[all …]
DMarshallers.h107 virtual VariantMatcher create(SourceRange NameRange,
163 typedef VariantMatcher (*MarshallerType)(void (*Func)(),
183 VariantMatcher create(SourceRange NameRange,
230 static VariantMatcher outvalueToVariantMatcher(const DynTypedMatcher &Matcher) {
231 return VariantMatcher::SingleMatcher(Matcher);
235 static VariantMatcher outvalueToVariantMatcher(const T &PolyMatcher,
240 VariantMatcher Out = VariantMatcher::PolymorphicMatcher(std::move(Matchers));
281 VariantMatcher
300 VariantMatcher Out;
322 typedef VariantMatcher (*RunFunc)(StringRef MatcherName,
[all …]
DRegistry.cpp529 VariantMatcher Registry::constructMatcher(MatcherCtor Ctor, in constructMatcher()
537 VariantMatcher Registry::constructBoundMatcher(MatcherCtor Ctor, in constructBoundMatcher()
542 VariantMatcher Out = constructMatcher(Ctor, NameRange, Args, Error); in constructBoundMatcher()
549 return VariantMatcher::SingleMatcher(*Bound); in constructBoundMatcher()
553 return VariantMatcher(); in constructBoundMatcher()
DParser.cpp429 VariantMatcher Result = S->actOnMatcherExpression( in parseMatcherExpressionImpl()
536 VariantMatcher Parser::RegistrySema::actOnMatcherExpression( in actOnMatcherExpression()
/external/clang/include/clang/ASTMatchers/Dynamic/
DVariantValue.h92 class VariantMatcher {
111 ArrayRef<VariantMatcher> InnerMatchers) const;
136 VariantMatcher();
139 static VariantMatcher SingleMatcher(const DynTypedMatcher &Matcher);
144 static VariantMatcher
150 static VariantMatcher
152 std::vector<VariantMatcher> Args);
212 explicit VariantMatcher(Payload *Value) : Value(Value) {} in VariantMatcher() function
224 struct VariantMatcher::TypedMatcherOps final : VariantMatcher::MatcherOps {
258 VariantValue(const VariantMatcher &Matchers);
[all …]
DRegistry.h108 static VariantMatcher constructMatcher(MatcherCtor Ctor,
119 static VariantMatcher constructBoundMatcher(MatcherCtor Ctor,
DParser.h83 virtual VariantMatcher actOnMatcherExpression(MatcherCtor Ctor,
131 VariantMatcher actOnMatcherExpression(MatcherCtor Ctor,
/external/clang/unittests/ASTMatchers/Dynamic/
DVariantValueTest.cpp48 VariantValue Value = VariantMatcher::SingleMatcher(stmt()); in TEST()
60 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST()
66 Value = VariantMatcher::SingleMatcher(ignoringImpCasts(expr())); in TEST()
85 Value = VariantMatcher::SingleMatcher(recordDecl()); in TEST()
128 EXPECT_TRUE(matches("class X {};", VariantValue(VariantMatcher::SingleMatcher( in TEST()
133 matches("int x;", VariantValue(VariantMatcher::SingleMatcher(varDecl())) in TEST()
138 VariantValue(VariantMatcher::SingleMatcher(functionDecl())) in TEST()
142 EXPECT_FALSE(VariantValue(VariantMatcher::SingleMatcher(varDecl())) in TEST()
149 EXPECT_DEATH(VariantValue(VariantMatcher::SingleMatcher(varDecl())) in TEST()
156 "int x;", VariantValue(VariantMatcher::SingleMatcher(functionDecl())) in TEST()
[all …]
DRegistryTest.cpp42 VariantMatcher constructMatcher(StringRef MatcherName, in constructMatcher()
47 VariantMatcher Out; in constructMatcher()
54 VariantMatcher constructMatcher(StringRef MatcherName, in constructMatcher()
60 VariantMatcher Out; in constructMatcher()
67 VariantMatcher constructMatcher(StringRef MatcherName, in constructMatcher()
74 VariantMatcher Out; in constructMatcher()
217 "loc", VariantMatcher::SingleMatcher(nestedNameSpecifier( in TEST_F()
231 const VariantMatcher IsDefinition = constructMatcher("isDefinition"); in TEST_F()
248 VariantMatcher::SingleMatcher(Anything)).getTypedMatcher<Decl>(); in TEST_F()
DParserTest.cpp52 VariantMatcher actOnMatcherExpression(MatcherCtor Ctor, in actOnMatcherExpression()
61 return VariantMatcher::SingleMatcher(Matcher->second); in actOnMatcherExpression()
167 VariantMatcher::SingleMatcher(hasParameter(0, hasName("a"))); in getTestNamedValues()