Home
last modified time | relevance | path

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

/freebsd/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/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/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp403 const MatchFinder::MatchResult &, in transferMakeOptionalCall()
410 const MatchFinder::MatchResult &, in transferOptionalHasValueCall()
421 const clang::Expr *ValueOrPredExpr, const MatchFinder::MatchResult &Result, in transferValueOrImpl()
440 const MatchFinder::MatchResult &Result, in transferValueOrStringEmptyCall()
458 const MatchFinder::MatchResult &Result, in transferValueOrNotEqX()
472 const MatchFinder::MatchResult &Result, in transferCallReturningOptional()
501 const MatchFinder::MatchResult &MatchRes, in valueOrConversionHasValue()
527 const CXXConstructExpr *E, const MatchFinder::MatchResult &MatchRes, in transferValueOrConversionConstructor()
551 const CXXOperatorCallExpr *E, const MatchFinder::MatchResult &MatchRes, in transferValueOrConversionAssignment()
562 const MatchFinder::MatchResult &, in transferNulloptAssignment()
[all …]
/freebsd/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/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/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/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/contrib/llvm-project/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp566 IncrementGadget(const MatchFinder::MatchResult &Result) in IncrementGadget()
606 DecrementGadget(const MatchFinder::MatchResult &Result) in DecrementGadget()
645 ArraySubscriptGadget(const MatchFinder::MatchResult &Result) in ArraySubscriptGadget()
695 PointerArithmeticGadget(const MatchFinder::MatchResult &Result) in PointerArithmeticGadget()
744 SpanTwoParamConstructorGadget(const MatchFinder::MatchResult &Result) in SpanTwoParamConstructorGadget()
793 PointerInitGadget(const MatchFinder::MatchResult &Result) in PointerInitGadget()
841 PtrToPtrAssignmentGadget(const MatchFinder::MatchResult &Result) in PtrToPtrAssignmentGadget()
890 CArrayToPtrAssignmentGadget(const MatchFinder::MatchResult &Result) in CArrayToPtrAssignmentGadget()
933 UnsafeBufferUsageAttrGadget(const MatchFinder::MatchResult &Result) in UnsafeBufferUsageAttrGadget()
965 UnsafeBufferUsageCtorAttrGadget(const MatchFinder::MatchResult &Result) in UnsafeBufferUsageCtorAttrGadget()
[all …]