Lines Matching defs:Matcher
99 MatchChildASTVisitor(const DynTypedMatcher *Matcher, ASTMatchFinder *Finder,
103 : Matcher(Matcher), Finder(Finder), Builder(Builder), CurrentDepth(0),
367 // Sets 'Matched' to true if 'Matcher' matches 'Node' and:
379 if (Matcher->matches(DynTypedNode::create(Node), Finder,
387 if (Matcher->matches(DynTypedNode::create(Node), Finder,
408 const DynTypedMatcher *const Matcher;
598 const DynTypedMatcher &Matcher,
603 return matchesRecursively(Node, Matcher, Builder, MaxDepth, Bind);
606 Key.MatcherID = Matcher.getID();
622 matchesRecursively(Node, Matcher, &Result.Nodes, MaxDepth, Bind);
633 const DynTypedMatcher &Matcher,
647 MatchChildASTVisitor Visitor(&Matcher, this, Builder, MaxDepth,
653 const Matcher<NamedDecl> &Base,
660 const Matcher<NamedDecl> &Base,
666 const Matcher<NamedDecl> &Base,
673 const DynTypedMatcher &Matcher,
677 return memoizedMatchesRecursively(Node, Ctx, Matcher, Builder, 1, Bind);
681 const DynTypedMatcher &Matcher,
686 return memoizedMatchesRecursively(Node, Ctx, Matcher, Builder, INT_MAX,
691 const DynTypedMatcher &Matcher,
699 return matchesParentOf(Node, Matcher, Builder);
700 return matchesAnyAncestorOf(Node, Ctx, Matcher, Builder);
1120 // Returns whether a direct parent of \p Node matches \p Matcher.
1122 bool matchesParentOf(const DynTypedNode &Node, const DynTypedMatcher &Matcher,
1126 if (Matcher.matches(Parent, this, &BuilderCopy)) {
1134 // Returns whether an ancestor of \p Node matches \p Matcher.
1151 const DynTypedMatcher &Matcher,
1174 Keys.back().MatcherID = Matcher.getID();
1198 if (Matcher.matches(Node, this, &BuilderCopy)) {
1232 if (Matcher.matches(Queue.front(), this, &BuilderCopy)) {
1283 const Matcher<NamedDecl> &Matcher,
1292 if (Matcher.matches(*Alias, this, &Result)) {
1302 const Matcher<NamedDecl> &Matcher,
1309 if (Matcher.matches(*Alias, this, &Result)) {
1373 const Matcher<NamedDecl> &Base,
1381 const CXXRecordDecl *Declaration, const Matcher<NamedDecl> &Base,
1420 const ObjCInterfaceDecl *Declaration, const Matcher<NamedDecl> &Base,