Home
last modified time | relevance | path

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

12345678910>>...31

/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DNotNullTerminatedResultCheck.h28 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
29 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
42 StringRef Name, const ast_matchers::MatchFinder::MatchResult &Result);
44 const ast_matchers::MatchFinder::MatchResult &Result,
47 const ast_matchers::MatchFinder::MatchResult &Result,
50 const ast_matchers::MatchFinder::MatchResult &Result);
52 const ast_matchers::MatchFinder::MatchResult &Result,
54 void strerror_sFix(const ast_matchers::MatchFinder::MatchResult &Result);
56 const ast_matchers::MatchFinder::MatchResult &Result);
58 const ast_matchers::MatchFinder::MatchResult &Result);
H A DNotNullTerminatedResultCheck.cpp44 static const Expr *getDestCapacityExpr(const MatchFinder::MatchResult &Result) { in getDestCapacityExpr()
63 const MatchFinder::MatchResult &Result) { in getLength()
95 static int getDestCapacity(const MatchFinder::MatchResult &Result) { in getDestCapacity()
103 static const CallExpr *getStrlenExpr(const MatchFinder::MatchResult &Result) { in getStrlenExpr()
117 static int getGivenLength(const MatchFinder::MatchResult &Result) { in getGivenLength()
140 const MatchFinder::MatchResult &Result) { in exprToStr()
151 const MatchFinder::MatchResult &Result) { in exprLocEnd()
163 static bool isInjectUL(const MatchFinder::MatchResult &Result) { in isInjectUL()
168 static bool isKnownDest(const MatchFinder::MatchResult &Result) { in isKnownDest()
174 static bool isDestBasedOnGivenLength(const MatchFinder::MatchResult &Result) { in isDestBasedOnGivenLength()
[all …]
H A DDanglingHandleCheck.h24 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
25 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
29 void registerMatchersForVariables(ast_matchers::MatchFinder *Finder);
30 void registerMatchersForReturn(ast_matchers::MatchFinder *Finder);
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DRedundantVoidArgCheck.h38 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
40 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
43 void processFunctionDecl(const ast_matchers::MatchFinder::MatchResult &Result,
47 processTypedefNameDecl(const ast_matchers::MatchFinder::MatchResult &Result,
50 void processFieldDecl(const ast_matchers::MatchFinder::MatchResult &Result,
53 void processVarDecl(const ast_matchers::MatchFinder::MatchResult &Result,
57 processNamedCastExpr(const ast_matchers::MatchFinder::MatchResult &Result,
61 processExplicitCastExpr(const ast_matchers::MatchFinder::MatchResult &Result,
64 void processLambdaExpr(const ast_matchers::MatchFinder::MatchResult &Result,
68 removeVoidArgumentTokens(const ast_matchers::MatchFinder::MatchResult &Result,
/llvm-project/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.h46 class ChangeNamespaceTool : public ast_matchers::MatchFinder::MatchCallback {
56 void registerMatchers(ast_matchers::MatchFinder *Finder);
58 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
65 void moveOldNamespace(const ast_matchers::MatchFinder::MatchResult &Result,
69 const ast_matchers::MatchFinder::MatchResult &Result,
73 const ast_matchers::MatchFinder::MatchResult &Result,
77 void fixTypeLoc(const ast_matchers::MatchFinder::MatchResult &Result,
80 void fixUsingShadowDecl(const ast_matchers::MatchFinder::MatchResult &Result,
83 void fixDeclRefExpr(const ast_matchers::MatchFinder::MatchResult &Result,
/llvm-project/clang/unittests/ASTMatchers/
H A DASTMatchersInternalTest.cpp62 MatchFinder Finder;
64 struct CrashCallback : public MatchFinder::MatchCallback {
65 void run(const MatchFinder::MatchResult &Result) override { abort(); }
200 TEST(MatchFinder, CheckProfiling) { in TEST() argument
201 MatchFinder::MatchFinderOptions Options; in TEST()
204 MatchFinder Finder(std::move(Options)); in TEST()
206 struct NamedCallback : public MatchFinder::MatchCallback { in TEST()
207 void run(const MatchFinder::MatchResult &Result) override {} in TEST()
219 class VerifyStartOfTranslationUnit : public MatchFinder::MatchCallback {
222 void run(const MatchFinder::MatchResult &Result) override { in run()
[all …]
/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;
/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()
/llvm-project/clang-tools-extra/clang-tidy/readability/
H A DMagicNumbersCheck.h27 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
28 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
31 bool isConstant(const clang::ast_matchers::MatchFinder::MatchResult &Result,
44 bool isBitFieldWidth(const clang::ast_matchers::MatchFinder::MatchResult &, in isBitFieldWidth()
49 bool isBitFieldWidth(const clang::ast_matchers::MatchFinder::MatchResult &Result,
53 const clang::ast_matchers::MatchFinder::MatchResult &Result,
57 void checkBoundMatch(const ast_matchers::MatchFinder::MatchResult &Result, in checkBoundMatch()
H A DRedundantControlFlowCheck.h27 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
28 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
36 checkRedundantReturn(const ast_matchers::MatchFinder::MatchResult &Result,
40 checkRedundantContinue(const ast_matchers::MatchFinder::MatchResult &Result,
43 void issueDiagnostic(const ast_matchers::MatchFinder::MatchResult &Result,
H A DOperatorsRepresentationCheck.h25 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
26 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
32 void registerBinaryOperatorMatcher(ast_matchers::MatchFinder *Finder);
33 void registerUnaryOperatorMatcher(ast_matchers::MatchFinder *Finder);
34 void registerOverloadedOperatorMatcher(ast_matchers::MatchFinder *Finder);
H A DRedundantSmartptrGetCheck.cpp50 void registerMatchersForGetArrowStart(MatchFinder *Finder, in registerMatchersForGetArrowStart()
51 MatchFinder::MatchCallback *Callback) { in registerMatchersForGetArrowStart()
91 void registerMatchersForGetEquals(MatchFinder *Finder, in registerMatchersForGetEquals()
92 MatchFinder::MatchCallback *Callback) { in registerMatchersForGetEquals()
116 void RedundantSmartptrGetCheck::registerMatchers(MatchFinder *Finder) { in registerMatchers()
122 bool allReturnTypesMatch(const MatchFinder::MatchResult &Result) { in allReturnTypesMatch()
139 void RedundantSmartptrGetCheck::check(const MatchFinder::MatchResult &Result) { in check()
/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DRedundantExpressionCheck.h25 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
26 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
29 void checkArithmeticExpr(const ast_matchers::MatchFinder::MatchResult &R);
30 void checkBitwiseExpr(const ast_matchers::MatchFinder::MatchResult &R);
31 void checkRelationalExpr(const ast_matchers::MatchFinder::MatchResult &R);
/llvm-project/clang-tools-extra/clang-tidy/abseil/
H A DDurationRewriter.h38 bool isLiteralZero(const ast_matchers::MatchFinder::MatchResult &Result,
46 stripFloatCast(const ast_matchers::MatchFinder::MatchResult &Result,
54 stripFloatLiteralFraction(const ast_matchers::MatchFinder::MatchResult &Result,
61 simplifyDurationFactoryArg(const ast_matchers::MatchFinder::MatchResult &Result,
84 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale,
90 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale,
95 bool isInMacro(const ast_matchers::MatchFinder::MatchResult &Result,
H A DTimeSubtractionCheck.cpp22 static bool insideMacroDefinition(const MatchFinder::MatchResult &Result, in insideMacroDefinition()
30 static bool isConstructorAssignment(const MatchFinder::MatchResult &Result, in isConstructorAssignment()
47 static bool isArgument(const MatchFinder::MatchResult &Result, in isArgument()
66 static bool isReturn(const MatchFinder::MatchResult &Result, const Expr *Node) { in isReturn()
80 static bool parensRequired(const MatchFinder::MatchResult &Result, in parensRequired()
94 void TimeSubtractionCheck::registerMatchers(MatchFinder *Finder) { in registerMatchers()
129 void TimeSubtractionCheck::check(const MatchFinder::MatchResult &Result) { in check()
/llvm-project/clang-tools-extra/clang-tidy/android/
H A DCloexecCheck.h33 registerMatchersImpl(ast_matchers::MatchFinder *Finder,
51 void insertMacroFlag(const ast_matchers::MatchFinder::MatchResult &Result,
67 void replaceFunc(const ast_matchers::MatchFinder::MatchResult &Result,
84 void insertStringFlag(const ast_matchers::MatchFinder::MatchResult &Result,
88 StringRef getSpellingArg(const ast_matchers::MatchFinder::MatchResult &Result,
/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp457 const MatchFinder::MatchResult &, in transferValueOrNotEqX()
464 const MatchFinder::MatchResult &, in transferValueOrNotEqX()
473 const MatchFinder::MatchResult &, in transferCallReturningOptional()
484 const clang::Expr *ValueOrPredExpr, const MatchFinder::MatchResult &Result, in transferCallReturningOptional()
503 const MatchFinder::MatchResult &Result, in valueOrConversionHasValue()
521 const MatchFinder::MatchResult &Result, in valueOrConversionHasValue()
535 const MatchFinder::MatchResult &Result, in transferValueOrConversionConstructor()
556 const MatchFinder::MatchResult &Result, in transferValueOrConversionAssignment()
603 const MatchFinder::MatchResult &Result, in transferSwapCall()
610 const CXXOperatorCallExpr *OCE, const MatchFinder in transferStdSwapCall()
[all...]
/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()
/llvm-project/clang/unittests/AST/
H A DDeclMatcher.h21 class DeclMatcher : public MatchFinder::MatchCallback {
23 void run(const MatchFinder::MatchResult &Result) override { in run()
33 MatchFinder Finder; in match()
46 class DeclCounterWithPredicate : public MatchFinder::MatchCallback {
50 void run(const MatchFinder::MatchResult &Result) override { in run()
65 MatchFinder Finder; in match()
H A DMatchVerifier.h33 class MatchVerifier : public MatchFinder::MatchCallback {
58 void run(const MatchFinder::MatchResult &Result) override;
59 virtual void verify(const MatchFinder::MatchResult &Result, in verify()
84 MatchFinder Finder; in match()
125 MatchFinder Finder; in match()
137 void MatchVerifier<NodeType>::run(const MatchFinder::MatchResult &Result) { in match()
150 MatchVerifier<DynTypedNode>::run(const MatchFinder::MatchResult &Result) { in match()
175 void verify(const MatchFinder::MatchResult &Result, in run()
215 void verify(const MatchFinder::MatchResult &Result,
254 void verify(const MatchFinder in verify()
[all...]
/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
H A DFindAllSymbols.cpp117 void FindAllSymbols::registerMatchers(MatchFinder *MatchFinder) { in registerMatchers() argument
203 MatchFinder->addMatcher(Decls.bind("decl"), this); in registerMatchers()
207 MatchFinder->addMatcher( in registerMatchers()
210 MatchFinder->addMatcher( in registerMatchers()
217 MatchFinder->addMatcher( in registerMatchers()
224 MatchFinder->addMatcher( in registerMatchers()
231 MatchFinder->addMatcher( in registerMatchers()
239 void FindAllSymbols::run(const MatchFinder::MatchResult &Result) { in run()
H A DFindAllSymbols.h34 class FindAllSymbols : public ast_matchers::MatchFinder::MatchCallback {
40 void registerMatchers(ast_matchers::MatchFinder *MatchFinder);
42 void run(const ast_matchers::MatchFinder::MatchResult &result) override;
/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()
/llvm-project/clang-tools-extra/clang-move/
H A DMove.h116 class ClangMoveTool : public ast_matchers::MatchFinder::MatchCallback {
121 void registerMatchers(ast_matchers::MatchFinder *Finder);
123 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
164 std::vector<std::unique_ptr<ast_matchers::MatchFinder::MatchCallback>>
207 MoveTool.registerMatchers(&MatchFinder); in ClangMoveAction()
217 ast_matchers::MatchFinder MatchFinder;

12345678910>>...31