Home
last modified time | relevance | path

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

/freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/Tooling/Transformer/
H A DTransformer.cpp22 using ::clang::ast_matchers::MatchFinder;
27 const ast_matchers::MatchFinder::MatchResult &Result) { in onMatch()
37 const MatchFinder::MatchResult &Result) { in convertToAtomicChanges()
71 void Transformer::registerMatchers(MatchFinder *MatchFinder) { in registerMatchers() argument
73 MatchFinder->addDynamicMatcher(Matcher, this); in registerMatchers()
76 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()
76 Error eval(const MatchFinder::MatchResult &Match, in eval()
94 Error eval(const MatchFinder::MatchResult &Match, in eval()
144 Error eval(const MatchFinder::MatchResult &Match, in eval()
221 Error eval(const MatchFinder::MatchResult &Match, in eval()
275 Error eval(const MatchFinder::MatchResult &Match, in eval()
307 Error eval(const MatchFinder::MatchResult &Match, in eval()
333 llvm::Error eval(const MatchFinder::MatchResult &match, in eval()
397 Error eval(const MatchFinder::MatchResult &Match, in eval()
[all …]
H A DRewriteRule.cpp27 using ast_matchers::MatchFinder;
30 using MatchResult = MatchFinder::MatchResult;
147 llvm::Error eval(const ast_matchers::MatchFinder::MatchResult &, in eval()
268 class ApplyRuleCallback : public MatchFinder::MatchCallback {
274 MatchFinder *MF) { in registerMatchers()
279 void run(const MatchFinder::MatchResult &Result) override { in run()
303 MatchFinder Finder; in rewriteDescendantsImpl()
H A DRangeSelector.cpp26 using ast_matchers::MatchFinder;
30 using MatchResult = MatchFinder::MatchResult;
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Tooling/Transformer/
H A DTransformer.h29 void onMatch(const ast_matchers::MatchFinder::MatchResult &Result);
39 const ast_matchers::MatchFinder::MatchResult &Result);
43 onMatchImpl(const ast_matchers::MatchFinder::MatchResult &Result) = 0;
63 class Transformer : public ast_matchers::MatchFinder::MatchCallback {
104 void registerMatchers(ast_matchers::MatchFinder *MatchFinder);
108 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
121 const ast_matchers::MatchFinder::MatchResult &Match,
161 void onMatchImpl(const ast_matchers::MatchFinder::MatchResult &Result) final {
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 DRewriteRule.h114 AnyGenerator Metadata = [](const ast_matchers::MatchFinder::MatchResult &)
247 const ast_matchers::MatchFinder::MatchResult &R) -> llvm::Any { in withMetadata()
494 const ast_matchers::MatchFinder::MatchResult &Result);
498 const ast_matchers::MatchFinder::MatchResult &Result);
502 const ast_matchers::MatchFinder::MatchResult &Result);
506 const ast_matchers::MatchFinder::MatchResult &Result);
530 getRuleMatchLoc(const ast_matchers::MatchFinder::MatchResult &Result);
534 size_t findSelectedCase(const ast_matchers::MatchFinder::MatchResult &Result,
H A DRangeSelector.h30 return [R](const ast_matchers::MatchFinder::MatchResult &) in charRange()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp330 const MatchFinder::MatchResult &, in transferMakeOptionalCall()
338 const MatchFinder::MatchResult &, in transferOptionalHasValueCall()
386 const MatchFinder::MatchResult &Result, in transferValueOrNotEqX()
459 const CXXConstructExpr *E, const MatchFinder::MatchResult &MatchRes, in transferValueOrConversionConstructor()
492 const MatchFinder::MatchResult &, in transferNulloptAssignment()
532 const MatchFinder::MatchResult &, in transferSwapCall()
578 const MatchFinder::MatchResult &, in transferOptionalAndOptionalCmp()
656 [](const CXXConstructExpr *E, const MatchFinder::MatchResult &, in buildTransferMatchSwitch()
691 const MatchFinder::MatchResult &, in buildTransferMatchSwitch()
699 const MatchFinder::MatchResult &, in buildTransferMatchSwitch()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchFinder.h69 class MatchFinder {
144 MatchFinder(MatchFinderOptions Options = MatchFinderOptions());
145 ~MatchFinder();
287 class CollectMatchesCallback : public MatchFinder::MatchCallback {
289 void run(const MatchFinder::MatchResult &Result) override { in run()
305 MatchFinder Finder; in match()
321 MatchFinder Finder; in match()
331 MatchFinder Finder; in matchDynamic()
347 MatchFinder Finder; in matchDynamic()
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchFinder.cpp37 typedef MatchFinder::MatchCallback MatchCallback;
1277 MatchFinder::MatchCallback* Callback;
1321 const MatchFinder::MatchersByType *Matchers;
1331 const MatchFinder::MatchFinderOptions &Options;
1553 MatchASTConsumer(MatchFinder *Finder, in MatchASTConsumer()
1565 MatchFinder *Finder;
1577 MatchFinder::MatchCallback::~MatchCallback() {} in ~MatchCallback()
1580 MatchFinder::MatchFinder(MatchFinderOptions Options) in MatchFinder() function in clang::ast_matchers::MatchFinder
1583 MatchFinder::~MatchFinder() {} in ~MatchFinder()
1694 void MatchFinder::matchAST(ASTContext &Context) { in matchAST()
[all …]
/freebsd-14.2/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-14.2/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-14.2/contrib/llvm-project/clang/include/clang/Analysis/FlowSensitive/
H A DMatchSwitch.h69 const T *, const ast_matchers::MatchFinder::MatchResult &, State &)>;
112 const ast_matchers::MatchFinder::MatchResult &R, in CaseOf()
133 ast_matchers::MatchFinder::MatchResult(Results[0], &Context), S); in Build()
/freebsd-14.2/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()
337 MatchFinder F; in checkASTCodeBody()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp445 IncrementGadget(const MatchFinder::MatchResult &Result) in IncrementGadget()
480 DecrementGadget(const MatchFinder::MatchResult &Result) in DecrementGadget()
514 ArraySubscriptGadget(const MatchFinder::MatchResult &Result) in ArraySubscriptGadget()
559 PointerArithmeticGadget(const MatchFinder::MatchResult &Result) in PointerArithmeticGadget()
609 PointerInitGadget(const MatchFinder::MatchResult &Result) in PointerInitGadget()
733 DataInvocationGadget(const MatchFinder::MatchResult &Result) in DataInvocationGadget()
1029 UPCPreIncrementGadget(const MatchFinder::MatchResult &Result) in UPCPreIncrementGadget()
1072 UUCAddAssignGadget(const MatchFinder::MatchResult &Result) in UUCAddAssignGadget()
1156 struct GadgetFinderCallback : MatchFinder::MatchCallback { in findGadgets()
1161 void run(const MatchFinder::MatchResult &Result) override { in findGadgets()
[all …]