/freebsd/contrib/llvm-project/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;
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
H A D | Transformer.cpp | 22 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 D | Stencil.cpp | 30 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 D | RewriteRule.cpp | 27 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 D | RangeSelector.cpp | 26 using ast_matchers::MatchFinder; 30 using MatchResult = MatchFinder::MatchResult;
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/ |
H A D | UncheckedOptionalAccessModel.cpp | 403 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 D | Transformer.h | 29 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 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 | RewriteRule.h | 114 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 D | RangeSelector.h | 30 return [R](const ast_matchers::MatchFinder::MatchResult &) in charRange()
|
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchFinder.h | 69 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 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()
|
/freebsd/contrib/llvm-project/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() 337 MatchFinder F; in checkASTCodeBody()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | UnsafeBufferUsage.cpp | 566 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 …]
|