Lines Matching refs:Matcher
58 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher, in canConstructFrom() argument
60 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind); in canConstructFrom()
61 return Matcher.canConvertTo(NodeKind); in canConstructFrom()
65 const DynTypedMatcher &Matcher) const { in convertMatcher()
66 return Matcher.dynCastTo(NodeKind); in convertMatcher()
92 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {} in SinglePayload() argument
95 return Matcher; in getSingleMatcher()
99 return (Twine("Matcher<") + Matcher.getSupportedKind().asStringRef() + ">") in getTypeAsString()
106 if (Ops.canConstructFrom(Matcher, Ignore)) in getTypedMatcher()
107 return Matcher; in getTypedMatcher()
112 return ArgKind::MakeMatcherArg(Matcher.getSupportedKind()) in isConvertibleTo()
117 const DynTypedMatcher Matcher; member in clang::ast_matchers::dynamic::VariantMatcher::SinglePayload
170 for (const DynTypedMatcher &Matcher : Matchers) { in isConvertibleTo() local
172 if (ArgKind::MakeMatcherArg(Matcher.getSupportedKind()) in isConvertibleTo()
212 for (const VariantMatcher &Matcher : Args) { in isConvertibleTo() local
213 if (!Matcher.isConvertibleTo(Kind, Specificity)) in isConvertibleTo()
226 VariantMatcher VariantMatcher::SingleMatcher(const DynTypedMatcher &Matcher) { in SingleMatcher() argument
227 return VariantMatcher(std::make_shared<SinglePayload>(Matcher)); in SingleMatcher()
278 VariantValue::VariantValue(const VariantMatcher &Matcher) : Type(VT_Nothing) { in VariantValue() argument
279 setMatcher(Matcher); in VariantValue()
319 delete Value.Matcher; in reset()
413 return *Value.Matcher; in getMatcher()
419 Value.Matcher = new VariantMatcher(NewValue); in setMatcher()