Home
last modified time | relevance | path

Searched refs:MatchFinder (Results 1 – 15 of 15) sorted by relevance

/freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/
H A DRefactoringCallbacks.h40 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;
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DTransformer.cpp22 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 DStencil.cpp30 using ast_matchers::MatchFinder;
46 static Error printNode(StringRef Id, const MatchFinder::MatchResult &Match, in printNode()
109 Error eval(const MatchFinder::MatchResult &Match, in eval()
127 Error eval(const MatchFinder::MatchResult &Match, in eval()
177 Error eval(const MatchFinder::MatchResult &Match, in eval()
254 Error eval(const MatchFinder::MatchResult &Match, in eval()
307 Error eval(const MatchFinder::MatchResult &Match, in eval()
361 Error eval(const MatchFinder::MatchResult &Match, in eval()
384 Error eval(const MatchFinder::MatchResult &Match, in eval()
401 Error eval(const MatchFinder::MatchResult &Match, in eval()
H A DRewriteRule.cpp28 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 DRangeSelector.cpp26 using ast_matchers::MatchFinder;
30 using MatchResult = MatchFinder::MatchResult;
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DMatchConsumer.h35 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 DTransformer.h23 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 DRewriteRule.h111 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 DRangeSelector.h30 return [R](const ast_matchers::MatchFinder::MatchResult &) in charRange()
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp34 typedef MatchFinder::MatchCallback MatchCallback;
1045 MatchFinder::MatchCallback* Callback;
1089 const MatchFinder::MatchersByType *Matchers;
1099 const MatchFinder::MatchFinderOptions &Options;
1305 MatchASTConsumer(MatchFinder *Finder, in MatchASTConsumer()
1317 MatchFinder *Finder;
1329 MatchFinder::MatchCallback::~MatchCallback() {} in ~MatchCallback()
1332 MatchFinder::MatchFinder(MatchFinderOptions Options) in MatchFinder() function in clang::ast_matchers::MatchFinder
1335 MatchFinder::~MatchFinder() {} in ~MatchFinder()
1437 void MatchFinder::matchAST(ASTContext &Context) { in matchAST()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h68 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()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/DumpTool/
H A DASTSrcLocProcessor.h25 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 DASTSrcLocProcessor.cpp22 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()
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp34 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()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DNumberObjectConversionChecker.cpp51 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()