• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/ASTMatchers/

Lines Matching defs:Matchers

365   MatchASTVisitor(const MatchFinder::MatchersByType *Matchers,
367 : Matchers(Matchers), Options(Options), ActiveASTContext(nullptr) {}
378 for (MatchCallback *MC : Matchers->AllCallbacks) {
388 for (MatchCallback *MC : Matchers->AllCallbacks) {
602 /// Runs all the \p Matchers on \p Node.
606 void matchWithoutFilter(const T &Node, const MC &Matchers) {
609 for (const auto &MP : Matchers) {
631 auto &Matchers = this->Matchers->DeclOrStmt;
633 auto &MP = Matchers[I];
646 auto &Matchers = this->Matchers->DeclOrStmt;
647 assert((Matchers.size() < USHRT_MAX) && "Too many matchers.");
648 for (unsigned I = 0, E = Matchers.size(); I != E; ++I) {
649 if (Matchers[I].first.canMatchNodesOfKind(Kind)) {
666 matchWithoutFilter(QualType(Node, 0), Matchers->Type);
669 matchWithoutFilter(*Node, Matchers->TypeLoc);
672 matchWithoutFilter(*Node, Matchers->Type);
675 matchWithoutFilter(*Node, Matchers->NestedNameSpecifier);
678 matchWithoutFilter(*Node, Matchers->NestedNameSpecifierLoc);
681 matchWithoutFilter(*Node, Matchers->CtorInit);
863 const MatchFinder::MatchersByType *Matchers;
1074 Matchers.DeclOrStmt.emplace_back(NodeMatch, Action);
1075 Matchers.AllCallbacks.insert(Action);
1080 Matchers.Type.emplace_back(NodeMatch, Action);
1081 Matchers.AllCallbacks.insert(Action);
1086 Matchers.DeclOrStmt.emplace_back(NodeMatch, Action);
1087 Matchers.AllCallbacks.insert(Action);
1092 Matchers.NestedNameSpecifier.emplace_back(NodeMatch, Action);
1093 Matchers.AllCallbacks.insert(Action);
1098 Matchers.NestedNameSpecifierLoc.emplace_back(NodeMatch, Action);
1099 Matchers.AllCallbacks.insert(Action);
1104 Matchers.TypeLoc.emplace_back(NodeMatch, Action);
1105 Matchers.AllCallbacks.insert(Action);
1110 Matchers.CtorInit.emplace_back(NodeMatch, Action);
1111 Matchers.AllCallbacks.insert(Action);
1146 internal::MatchASTVisitor Visitor(&Matchers, Options);
1152 internal::MatchASTVisitor Visitor(&Matchers, Options);