Lines Matching refs:Matcher

59 VariantMatcher::MatcherOps::canConstructFrom(const DynTypedMatcher &Matcher,  in canConstructFrom()  argument
61 IsExactMatch = Matcher.getSupportedKind().isSame(NodeKind); in canConstructFrom()
62 return Matcher.canConvertTo(NodeKind); in canConstructFrom()
66 const DynTypedMatcher &Matcher) const { in convertMatcher()
67 return Matcher.dynCastTo(NodeKind); in convertMatcher()
93 SinglePayload(const DynTypedMatcher &Matcher) : Matcher(Matcher) {} in SinglePayload() argument
96 return Matcher; in getSingleMatcher()
100 return (Twine("Matcher<") + Matcher.getSupportedKind().asStringRef() + ">") in getTypeAsString()
107 if (Ops.canConstructFrom(Matcher, Ignore)) in getTypedMatcher()
108 return Matcher; in getTypedMatcher()
113 return ArgKind::MakeMatcherArg(Matcher.getSupportedKind()) in isConvertibleTo()
118 const DynTypedMatcher Matcher; member in clang::ast_matchers::dynamic::VariantMatcher::SinglePayload
171 for (const DynTypedMatcher &Matcher : Matchers) { in isConvertibleTo() local
173 if (ArgKind::MakeMatcherArg(Matcher.getSupportedKind()) in isConvertibleTo()
213 for (const VariantMatcher &Matcher : Args) { in isConvertibleTo() local
214 if (!Matcher.isConvertibleTo(Kind, Specificity)) in isConvertibleTo()
227 VariantMatcher VariantMatcher::SingleMatcher(const DynTypedMatcher &Matcher) { in SingleMatcher() argument
228 return VariantMatcher(std::make_shared<SinglePayload>(Matcher)); in SingleMatcher()
279 VariantValue::VariantValue(const VariantMatcher &Matcher) : Type(VT_Nothing) { in VariantValue() argument
280 setMatcher(Matcher); in VariantValue()
320 delete Value.Matcher; in reset()
414 return *Value.Matcher; in getMatcher()
420 Value.Matcher = new VariantMatcher(NewValue); in setMatcher()