| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/ |
| H A D | RefactoringCallbacks.h | 40 class RefactoringCallback : public ast_matchers::MatchFinder::MatchCallback { 60 MatchFinder.addMatcher(Matcher, Callback); in addMatcher() 72 ast_matchers::MatchFinder MatchFinder; variable 81 void run(const ast_matchers::MatchFinder::MatchResult &Result) override; 98 void run(const ast_matchers::MatchFinder::MatchResult &Result) override; 116 void run(const ast_matchers::MatchFinder::MatchResult &Result) override; 129 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/ |
| H A D | ASTMatchFinder.cpp | 34 typedef MatchFinder::MatchCallback MatchCallback; 406 MatchASTVisitor(const MatchFinder::MatchersByType *Matchers, in MatchASTVisitor() 407 const MatchFinder::MatchFinderOptions &Options) in MatchASTVisitor() 1034 MatchFinder::MatchCallback* Callback) in MatchVisitor() 1040 Callback->run(MatchFinder::MatchResult(BoundNodesView, Context)); in visitMatch() 1045 MatchFinder::MatchCallback* Callback; 1089 const MatchFinder::MatchersByType *Matchers; 1099 const MatchFinder::MatchFinderOptions &Options; 1305 MatchASTConsumer(MatchFinder *Finder, in MatchASTConsumer() 1306 MatchFinder::ParsingDoneTestCallback *ParsingDone) in MatchASTConsumer() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/Transformer/ |
| H A D | Transformer.cpp | 22 using ast_matchers::MatchFinder; 24 void Transformer::registerMatchers(MatchFinder *MatchFinder) { in registerMatchers() argument 26 MatchFinder->addDynamicMatcher(Matcher, this); in registerMatchers() 29 void Transformer::run(const MatchFinder::MatchResult &Result) { in run()
|
| H A D | Stencil.cpp | 30 using ast_matchers::MatchFinder; 175 Error evalData(const RawTextData &Data, const MatchFinder::MatchResult &, in evalData() 181 static Error printNode(StringRef Id, const MatchFinder::MatchResult &Match, in printNode() 194 const MatchFinder::MatchResult &Match, std::string *Result) { in evalData() 217 const MatchFinder::MatchResult &Match, std::string *Result) { in evalData() 283 Error evalData(const SelectorData &Data, const MatchFinder::MatchResult &Match, in evalData() 319 Error evalData(const AccessData &Data, const MatchFinder::MatchResult &Match, in evalData() 352 Error evalData(const IfBoundData &Data, const MatchFinder::MatchResult &Match, in evalData() 360 const MatchFinder::MatchResult &Match, std::string *Result) { in evalData() 368 Error evalData(const SequenceData &Data, const MatchFinder::MatchResult &Match, in evalData() [all …]
|
| H A D | RewriteRule.cpp | 28 using ast_matchers::MatchFinder; 31 using MatchResult = MatchFinder::MatchResult; 131 llvm::Error eval(const ast_matchers::MatchFinder::MatchResult &, in eval() 236 class ApplyRuleCallback : public MatchFinder::MatchCallback { 242 MatchFinder *MF) { in registerMatchers() 247 void run(const MatchFinder::MatchResult &Result) override { in run() 272 MatchFinder Finder; in rewriteDescendantsImpl()
|
| H A D | RangeSelector.cpp | 26 using ast_matchers::MatchFinder; 30 using MatchResult = MatchFinder::MatchResult;
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchFinder.h | 68 class MatchFinder { 143 MatchFinder(MatchFinderOptions Options = MatchFinderOptions()); 144 ~MatchFinder(); 284 class CollectMatchesCallback : public MatchFinder::MatchCallback { 286 void run(const MatchFinder::MatchResult &Result) override { in run() 302 MatchFinder Finder; in match() 318 MatchFinder Finder; in match() 328 MatchFinder Finder; in matchDynamic() 344 MatchFinder Finder; in matchDynamic()
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/Tooling/Transformer/ |
| H A D | MatchConsumer.h | 35 std::function<Expected<T>(const ast_matchers::MatchFinder::MatchResult &)>; 49 return [=](const ast_matchers::MatchFinder::MatchResult &Result) { in ifBound() 72 virtual llvm::Error eval(const ast_matchers::MatchFinder::MatchResult &Match, 77 llvm::Expected<T> eval(const ast_matchers::MatchFinder::MatchResult &R) const; 95 const ast_matchers::MatchFinder::MatchResult &R) const { in eval()
|
| H A D | Transformer.h | 23 class Transformer : public ast_matchers::MatchFinder::MatchCallback { 38 void registerMatchers(ast_matchers::MatchFinder *MatchFinder); 42 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
|
| H A D | RewriteRule.h | 111 AnyGenerator Metadata = [](const ast_matchers::MatchFinder::MatchResult &) 240 const ast_matchers::MatchFinder::MatchResult &R) -> llvm::Any { in withMetadata() 407 const ast_matchers::MatchFinder::MatchResult &Result); 411 const ast_matchers::MatchFinder::MatchResult &Result); 415 const ast_matchers::MatchFinder::MatchResult &Result); 419 const ast_matchers::MatchFinder::MatchResult &Result); 442 getRuleMatchLoc(const ast_matchers::MatchFinder::MatchResult &Result); 447 findSelectedCase(const ast_matchers::MatchFinder::MatchResult &Result,
|
| H A D | RangeSelector.h | 30 return [R](const ast_matchers::MatchFinder::MatchResult &) in charRange()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/DumpTool/ |
| H A D | ASTSrcLocProcessor.h | 25 class ASTSrcLocProcessor : public ast_matchers::MatchFinder::MatchCallback { 36 void run(const ast_matchers::MatchFinder::MatchResult &Result) override; 47 std::unique_ptr<clang::ast_matchers::MatchFinder> Finder;
|
| H A D | ASTSrcLocProcessor.cpp | 22 MatchFinder::MatchFinderOptions FinderOptions; in ASTSrcLocProcessor() 24 Finder = std::make_unique<MatchFinder>(std::move(FinderOptions)); in ASTSrcLocProcessor() 144 const MatchFinder::MatchResult &Result) { in CaptureMethods() 198 void ASTSrcLocProcessor::run(const MatchFinder::MatchResult &Result) { in run()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Tooling/ |
| H A D | RefactoringCallbacks.cpp | 34 MatchFinder.addDynamicMatcher(Matcher, Callback); in addDynamicMatcher() 49 Refactoring.MatchFinder.matchAST(Context); in HandleTranslationUnit() 89 const ast_matchers::MatchFinder::MatchResult &Result) { in run() 107 const ast_matchers::MatchFinder::MatchResult &Result) { in run() 127 const ast_matchers::MatchFinder::MatchResult &Result) { in run() 199 const ast_matchers::MatchFinder::MatchResult &Result) { in run()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | NumberObjectConversionChecker.cpp | 51 class Callback : public MatchFinder::MatchCallback { 60 void run(const MatchFinder::MatchResult &Result) override; 64 void Callback::run(const MatchFinder::MatchResult &Result) { in run() 338 MatchFinder F; in checkASTCodeBody()
|
| /netbsd-src/external/apache2/llvm/dist/clang/docs/ |
| H A D | LibASTMatchersTutorial.rst | 261 ``MatchCallback`` and registered with a ``MatchFinder`` object, then run 278 class LoopPrinter : public MatchFinder::MatchCallback { 280 virtual void run(const MatchFinder::MatchResult &Result) { 302 MatchFinder Finder; 461 The ``MatchFinder::run()`` callback takes a 462 ``MatchFinder::MatchResult&`` as its parameter. We're most interested in 501 void LoopPrinter::run(const MatchFinder::MatchResult &Result) {
|