Home
last modified time | relevance | path

Searched refs:NodeMatch (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h154 void addMatcher(const DeclarationMatcher &NodeMatch,
156 void addMatcher(const TypeMatcher &NodeMatch,
158 void addMatcher(const StatementMatcher &NodeMatch,
160 void addMatcher(const NestedNameSpecifierMatcher &NodeMatch,
162 void addMatcher(const NestedNameSpecifierLocMatcher &NodeMatch,
164 void addMatcher(const TypeLocMatcher &NodeMatch,
166 void addMatcher(const CXXCtorInitializerMatcher &NodeMatch,
168 void addMatcher(const TemplateArgumentLocMatcher &NodeMatch,
170 void addMatcher(const AttrMatcher &NodeMatch, MatchCallback *Action);
181 bool addDynamicMatcher(const internal::DynTypedMatcher &NodeMatch,
/llvm-project-15.0.7/clang/unittests/AST/
H A DStmtPrinterTest.cpp53 const Matcher &NodeMatch, StringRef ExpectedPrinted, in PrintedStmtMatches() argument
55 return PrintedNodeMatches<Stmt>(Code, Args, NodeMatch, ExpectedPrinted, "", in PrintedStmtMatches()
61 PrintedStmtCXXMatches(StdVer Standard, StringRef Code, const T &NodeMatch, in PrintedStmtCXXMatches() argument
79 return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted, in PrintedStmtCXXMatches()
85 PrintedStmtMSMatches(StringRef Code, const T &NodeMatch, in PrintedStmtMSMatches() argument
94 return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted, in PrintedStmtMSMatches()
100 PrintedStmtObjCMatches(StringRef Code, const T &NodeMatch, in PrintedStmtObjCMatches() argument
107 return PrintedStmtMatches(Code, Args, NodeMatch, ExpectedPrinted, in PrintedStmtObjCMatches()
H A DDeclPrinterTest.cpp48 const DeclarationMatcher &NodeMatch, in PrintedDeclMatches() argument
53 Code, Args, NodeMatch, ExpectedPrinted, FileName, PrintDecl, in PrintedDeclMatches()
69 PrintedDeclCXX98Matches(StringRef Code, const DeclarationMatcher &NodeMatch, in PrintedDeclCXX98Matches() argument
75 NodeMatch, in PrintedDeclCXX98Matches()
91 const DeclarationMatcher &NodeMatch, in PrintedDeclCXX11Matches() argument
96 NodeMatch, in PrintedDeclCXX11Matches()
103 const DeclarationMatcher &NodeMatch, in PrintedDeclCXX11nonMSCMatches() argument
108 NodeMatch, in PrintedDeclCXX11nonMSCMatches()
114 PrintedDeclCXX17Matches(StringRef Code, const DeclarationMatcher &NodeMatch, in PrintedDeclCXX17Matches() argument
123 PrintedDeclC11Matches(StringRef Code, const DeclarationMatcher &NodeMatch, in PrintedDeclC11Matches() argument
[all …]
H A DNamedDeclPrinterTest.cpp67 const DeclarationMatcher &NodeMatch, StringRef ExpectedPrinted, in PrintedDeclMatches() argument
71 Code, Args, NodeMatch, ExpectedPrinted, FileName, in PrintedDeclMatches()
80 const DeclarationMatcher &NodeMatch, in PrintedNamedDeclMatches() argument
82 return PrintedDeclMatches(Code, Args, NodeMatch, ExpectedPrinted, FileName, in PrintedNamedDeclMatches()
H A DTypePrinterTest.cpp38 const DeclarationMatcher &NodeMatch, in PrintedTypeMatches() argument
41 return PrintedNodeMatches<QualType>(Code, Args, NodeMatch, ExpectedPrinted, in PrintedTypeMatches()
H A DASTPrint.h74 const Matcher &NodeMatch, StringRef ExpectedPrinted,
84 Finder.addMatcher(NodeMatch, &Callback);
/llvm-project-15.0.7/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp1577 Matchers.Type.emplace_back(NodeMatch, Action); in addMatcher()
1607 Matchers.TypeLoc.emplace_back(NodeMatch, Action); in addMatcher()
1613 Matchers.CtorInit.emplace_back(NodeMatch, Action); in addMatcher()
1631 if (NodeMatch.canConvertTo<Decl>()) { in addDynamicMatcher()
1632 addMatcher(NodeMatch.convertTo<Decl>(), Action); in addDynamicMatcher()
1634 } else if (NodeMatch.canConvertTo<QualType>()) { in addDynamicMatcher()
1637 } else if (NodeMatch.canConvertTo<Stmt>()) { in addDynamicMatcher()
1638 addMatcher(NodeMatch.convertTo<Stmt>(), Action); in addDynamicMatcher()
1646 } else if (NodeMatch.canConvertTo<TypeLoc>()) { in addDynamicMatcher()
1655 } else if (NodeMatch.canConvertTo<Attr>()) { in addDynamicMatcher()
[all …]