Lines Matching refs:Matcher
53 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher, in canConstructFrom() argument
55 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind); in canConstructFrom()
56 return Matcher.canConvertTo(NodeKind); in canConstructFrom()
82 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {} in SinglePayload() argument
85 return Matcher; in getSingleMatcher()
89 return (Twine("Matcher<") + Matcher.getSupportedKind().asStringRef() + ">") in getTypeAsString()
96 if (Ops.canConstructFrom(Matcher, Ignore)) in getTypedMatcher()
97 return Matcher; in getTypedMatcher()
103 return ArgKind(Matcher.getSupportedKind()) in isConvertibleTo()
108 const DynTypedMatcher Matcher; member in clang::ast_matchers::dynamic::VariantMatcher::SinglePayload
162 for (const DynTypedMatcher &Matcher : Matchers) { in isConvertibleTo() local
164 if (ArgKind(Matcher.getSupportedKind()) in isConvertibleTo()
204 for (const VariantMatcher &Matcher : Args) { in isConvertibleTo() local
205 if (!Matcher.isConvertibleTo(Kind, Specificity)) in isConvertibleTo()
218 VariantMatcher VariantMatcher::SingleMatcher(const DynTypedMatcher &Matcher) { in SingleMatcher() argument
219 return VariantMatcher(new SinglePayload(Matcher)); in SingleMatcher()
256 VariantValue::VariantValue(const VariantMatcher &Matcher) : Type(VT_Nothing) { in VariantValue() argument
257 setMatcher(Matcher); in VariantValue()
288 delete Value.Matcher; in reset()
334 return *Value.Matcher; in getMatcher()
340 Value.Matcher = new VariantMatcher(NewValue); in setMatcher()