Lines Matching defs:Matchers

299   MatchASTVisitor(const MatchFinder::MatchersByType *Matchers,
301 : Matchers(Matchers), Options(Options), ActiveASTContext(nullptr) {}
312 for (MatchCallback *MC : Matchers->AllCallbacks) {
322 for (MatchCallback *MC : Matchers->AllCallbacks) {
523 /// \brief Runs all the \p Matchers on \p Node.
527 void matchWithoutFilter(const T &Node, const MC &Matchers) {
530 for (const auto &MP : Matchers) {
552 auto &Matchers = this->Matchers->DeclOrStmt;
554 auto &MP = Matchers[I];
568 auto &Matchers = this->Matchers->DeclOrStmt;
569 assert((Matchers.size() < USHRT_MAX) && "Too many matchers.");
570 for (unsigned I = 0, E = Matchers.size(); I != E; ++I) {
571 if (Matchers[I].first.canMatchNodesOfKind(Kind)) {
588 matchWithoutFilter(QualType(Node, 0), Matchers->Type);
591 matchWithoutFilter(*Node, Matchers->TypeLoc);
594 matchWithoutFilter(*Node, Matchers->Type);
597 matchWithoutFilter(*Node, Matchers->NestedNameSpecifier);
600 matchWithoutFilter(*Node, Matchers->NestedNameSpecifierLoc);
732 const MatchFinder::MatchersByType *Matchers;
915 Matchers.DeclOrStmt.push_back(std::make_pair(NodeMatch, Action));
916 Matchers.AllCallbacks.push_back(Action);
921 Matchers.Type.push_back(std::make_pair(NodeMatch, Action));
922 Matchers.AllCallbacks.push_back(Action);
927 Matchers.DeclOrStmt.push_back(std::make_pair(NodeMatch, Action));
928 Matchers.AllCallbacks.push_back(Action);
933 Matchers.NestedNameSpecifier.push_back(std::make_pair(NodeMatch, Action));
934 Matchers.AllCallbacks.push_back(Action);
939 Matchers.NestedNameSpecifierLoc.push_back(std::make_pair(NodeMatch, Action));
940 Matchers.AllCallbacks.push_back(Action);
945 Matchers.TypeLoc.push_back(std::make_pair(NodeMatch, Action));
946 Matchers.AllCallbacks.push_back(Action);
979 internal::MatchASTVisitor Visitor(&Matchers, Options);
985 internal::MatchASTVisitor Visitor(&Matchers, Options);