Lines Matching refs:Matcher

57 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher,  in canConstructFrom()  argument
59 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind); in canConstructFrom()
60 return Matcher.canConvertTo(NodeKind); in canConstructFrom()
86 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {} in SinglePayload() argument
89 return Matcher; in getSingleMatcher()
93 return (Twine("Matcher<") + Matcher.getSupportedKind().asStringRef() + ">") in getTypeAsString()
100 if (Ops.canConstructFrom(Matcher, Ignore)) in getTypedMatcher()
101 return Matcher; in getTypedMatcher()
107 return ArgKind(Matcher.getSupportedKind()) in isConvertibleTo()
112 const DynTypedMatcher Matcher; member in clang::ast_matchers::dynamic::VariantMatcher::SinglePayload
166 for (const DynTypedMatcher &Matcher : Matchers) { in isConvertibleTo() local
168 if (ArgKind(Matcher.getSupportedKind()) in isConvertibleTo()
208 for (const VariantMatcher &Matcher : Args) { in isConvertibleTo() local
209 if (!Matcher.isConvertibleTo(Kind, Specificity)) in isConvertibleTo()
222 VariantMatcher VariantMatcher::SingleMatcher(const DynTypedMatcher &Matcher) { in SingleMatcher() argument
223 return VariantMatcher(std::make_shared<SinglePayload>(Matcher)); in SingleMatcher()
270 VariantValue::VariantValue(const VariantMatcher &Matcher) : Type(VT_Nothing) { in VariantValue() argument
271 setMatcher(Matcher); in VariantValue()
308 delete Value.Matcher; in reset()
386 return *Value.Matcher; in getMatcher()
392 Value.Matcher = new VariantMatcher(NewValue); in setMatcher()