Home
last modified time | relevance | path

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

12345678910>>...25

/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DSimplifyBooleanExprCheck.h28 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
29 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
34 void reportBinOp(const ast_matchers::MatchFinder::MatchResult &Result,
37 void matchBoolCondition(ast_matchers::MatchFinder *Finder, bool Value,
40 void matchTernaryResult(ast_matchers::MatchFinder *Finder, bool Value,
43 void matchIfReturnsBool(ast_matchers::MatchFinder *Finder, bool Value,
46 void matchIfAssignsBool(ast_matchers::MatchFinder *Finder, bool Value,
49 void matchCompoundIfReturnsBool(ast_matchers::MatchFinder *Finder, bool Value,
53 replaceWithThenStatement(const ast_matchers::MatchFinder::MatchResult &Result,
57 replaceWithElseStatement(const ast_matchers::MatchFinder::MatchResult &Result,
[all …]
DRedundantControlFlowCheck.h29 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
30 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
34 checkRedundantReturn(const ast_matchers::MatchFinder::MatchResult &Result,
38 checkRedundantContinue(const ast_matchers::MatchFinder::MatchResult &Result,
41 void issueDiagnostic(const ast_matchers::MatchFinder::MatchResult &Result,
DSimplifyBooleanExprCheck.cpp25 StringRef getText(const MatchFinder::MatchResult &Result, SourceRange Range) { in getText()
32 StringRef getText(const MatchFinder::MatchResult &Result, T &Node) { in getText()
61 const Expr *getBoolLiteral(const MatchFinder::MatchResult &Result, in getBoolLiteral()
183 std::string compareExpressionToConstant(const MatchFinder::MatchResult &Result, in compareExpressionToConstant()
194 std::string compareExpressionToNullPtr(const MatchFinder::MatchResult &Result, in compareExpressionToNullPtr()
201 std::string compareExpressionToZero(const MatchFinder::MatchResult &Result, in compareExpressionToZero()
206 std::string replacementExpression(const MatchFinder::MatchResult &Result, in replacementExpression()
319 bool containsDiscardedTokens(const MatchFinder::MatchResult &Result, in containsDiscardedTokens()
344 const MatchFinder::MatchResult &Result) in Visitor()
354 const MatchFinder::MatchResult &Result;
[all …]
DMagicNumbersCheck.h29 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
30 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
33 bool isConstant(const clang::ast_matchers::MatchFinder::MatchResult &Result,
46 bool isBitFieldWidth(const clang::ast_matchers::MatchFinder::MatchResult &, in isBitFieldWidth()
51 bool isBitFieldWidth(const clang::ast_matchers::MatchFinder::MatchResult &Result,
55 void checkBoundMatch(const ast_matchers::MatchFinder::MatchResult &Result, in checkBoundMatch()
DRedundantSmartptrGetCheck.cpp37 void registerMatchersForGetArrowStart(MatchFinder *Finder, in registerMatchersForGetArrowStart()
38 MatchFinder::MatchCallback *Callback) { in registerMatchersForGetArrowStart()
75 void registerMatchersForGetEquals(MatchFinder *Finder, in registerMatchersForGetEquals()
76 MatchFinder::MatchCallback *Callback) { in registerMatchersForGetEquals()
101 void RedundantSmartptrGetCheck::registerMatchers(MatchFinder *Finder) { in registerMatchers()
107 bool allReturnTypesMatch(const MatchFinder::MatchResult &Result) { in allReturnTypesMatch()
124 void RedundantSmartptrGetCheck::check(const MatchFinder::MatchResult &Result) { in check()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DRedundantVoidArgCheck.h40 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
42 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
45 void processFunctionDecl(const ast_matchers::MatchFinder::MatchResult &Result,
49 processTypedefNameDecl(const ast_matchers::MatchFinder::MatchResult &Result,
52 void processFieldDecl(const ast_matchers::MatchFinder::MatchResult &Result,
55 void processVarDecl(const ast_matchers::MatchFinder::MatchResult &Result,
59 processNamedCastExpr(const ast_matchers::MatchFinder::MatchResult &Result,
63 processExplicitCastExpr(const ast_matchers::MatchFinder::MatchResult &Result,
66 void processLambdaExpr(const ast_matchers::MatchFinder::MatchResult &Result,
70 removeVoidArgumentTokens(const ast_matchers::MatchFinder::MatchResult &Result,
DRedundantVoidArgCheck.cpp46 void RedundantVoidArgCheck::registerMatchers(MatchFinder *Finder) { in registerMatchers()
73 void RedundantVoidArgCheck::check(const MatchFinder::MatchResult &Result) { in check()
99 const MatchFinder::MatchResult &Result, const FunctionDecl *Function) { in processFunctionDecl()
119 const ast_matchers::MatchFinder::MatchResult &Result, SourceRange Range, in removeVoidArgumentTokens()
182 const MatchFinder::MatchResult &Result, in processTypedefNameDecl()
192 const MatchFinder::MatchResult &Result, const FieldDecl *Member) { in processFieldDecl()
200 const MatchFinder::MatchResult &Result, const VarDecl *Var) { in processVarDecl()
217 const MatchFinder::MatchResult &Result, const CXXNamedCastExpr *NamedCast) { in processNamedCastExpr()
227 const MatchFinder::MatchResult &Result, in processExplicitCastExpr()
236 const MatchFinder::MatchResult &Result, const LambdaExpr *Lambda) { in processLambdaExpr()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DNotNullTerminatedResultCheck.h30 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
31 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
44 StringRef Name, const ast_matchers::MatchFinder::MatchResult &Result);
46 const ast_matchers::MatchFinder::MatchResult &Result,
49 const ast_matchers::MatchFinder::MatchResult &Result,
52 const ast_matchers::MatchFinder::MatchResult &Result);
54 const ast_matchers::MatchFinder::MatchResult &Result,
56 void strerror_sFix(const ast_matchers::MatchFinder::MatchResult &Result);
58 const ast_matchers::MatchFinder::MatchResult &Result);
60 const ast_matchers::MatchFinder::MatchResult &Result);
DNotNullTerminatedResultCheck.cpp45 static const Expr *getDestCapacityExpr(const MatchFinder::MatchResult &Result) { in getDestCapacityExpr()
64 const MatchFinder::MatchResult &Result) { in getLength()
96 static int getDestCapacity(const MatchFinder::MatchResult &Result) { in getDestCapacity()
104 static const CallExpr *getStrlenExpr(const MatchFinder::MatchResult &Result) { in getStrlenExpr()
118 static int getGivenLength(const MatchFinder::MatchResult &Result) { in getGivenLength()
141 const MatchFinder::MatchResult &Result) { in exprToStr()
152 const MatchFinder::MatchResult &Result) { in exprLocEnd()
164 static bool isInjectUL(const MatchFinder::MatchResult &Result) { in isInjectUL()
169 static bool isKnownDest(const MatchFinder::MatchResult &Result) { in isKnownDest()
175 static bool isDestBasedOnGivenLength(const MatchFinder::MatchResult &Result) { in isDestBasedOnGivenLength()
[all …]
/external/llvm-project/clang-tools-extra/clang-change-namespace/
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,
/external/clang/unittests/ASTMatchers/
DASTMatchersInternalTest.cpp103 TEST(MatchFinder, CheckProfiling) { in TEST() argument
104 MatchFinder::MatchFinderOptions Options; in TEST()
107 MatchFinder Finder(std::move(Options)); in TEST()
109 struct NamedCallback : public MatchFinder::MatchCallback { in TEST()
110 void run(const MatchFinder::MatchResult &Result) override {} in TEST()
122 class VerifyStartOfTranslationUnit : public MatchFinder::MatchCallback {
125 void run(const MatchFinder::MatchResult &Result) override { in run()
132 TEST(MatchFinder, InterceptsStartOfTranslationUnit) { in TEST() argument
133 MatchFinder Finder; in TEST()
148 class VerifyEndOfTranslationUnit : public MatchFinder::MatchCallback {
[all …]
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp35 typedef MatchFinder::MatchCallback MatchCallback;
296 MatchASTVisitor(const MatchFinder::MatchersByType *Matchers, in MatchASTVisitor()
297 const MatchFinder::MatchFinderOptions &Options) in MatchASTVisitor()
700 MatchFinder::MatchCallback* Callback) in MatchVisitor()
705 Callback->run(MatchFinder::MatchResult(BoundNodesView, Context)); in visitMatch()
710 MatchFinder::MatchCallback* Callback;
734 const MatchFinder::MatchersByType *Matchers;
747 const MatchFinder::MatchFinderOptions &Options;
869 MatchASTConsumer(MatchFinder *Finder, in MatchASTConsumer()
870 MatchFinder::ParsingDoneTestCallback *ParsingDone) in MatchASTConsumer()
[all …]
/external/llvm-project/clang/include/clang/Tooling/
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;
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersInternalTest.cpp95 TEST(MatchFinder, CheckProfiling) { in TEST() argument
96 MatchFinder::MatchFinderOptions Options; in TEST()
99 MatchFinder Finder(std::move(Options)); in TEST()
101 struct NamedCallback : public MatchFinder::MatchCallback { in TEST()
102 void run(const MatchFinder::MatchResult &Result) override {} in TEST()
114 class VerifyStartOfTranslationUnit : public MatchFinder::MatchCallback {
117 void run(const MatchFinder::MatchResult &Result) override { in run()
124 TEST(MatchFinder, InterceptsStartOfTranslationUnit) { in TEST() argument
125 MatchFinder Finder; in TEST()
140 class VerifyEndOfTranslationUnit : public MatchFinder::MatchCallback {
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DRedundantExpressionCheck.h27 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
28 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
31 void checkArithmeticExpr(const ast_matchers::MatchFinder::MatchResult &R);
32 void checkBitwiseExpr(const ast_matchers::MatchFinder::MatchResult &R);
33 void checkRelationalExpr(const ast_matchers::MatchFinder::MatchResult &R);
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DDurationRewriter.h39 bool IsLiteralZero(const ast_matchers::MatchFinder::MatchResult &Result,
47 stripFloatCast(const ast_matchers::MatchFinder::MatchResult &Result,
55 stripFloatLiteralFraction(const ast_matchers::MatchFinder::MatchResult &Result,
62 simplifyDurationFactoryArg(const ast_matchers::MatchFinder::MatchResult &Result,
85 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale,
91 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale,
96 bool isInMacro(const ast_matchers::MatchFinder::MatchResult &Result,
/external/llvm-project/clang-tools-extra/clang-tidy/android/
DCloexecCheck.h35 registerMatchersImpl(ast_matchers::MatchFinder *Finder,
53 void insertMacroFlag(const ast_matchers::MatchFinder::MatchResult &Result,
69 void replaceFunc(const ast_matchers::MatchFinder::MatchResult &Result,
86 void insertStringFlag(const ast_matchers::MatchFinder::MatchResult &Result,
90 StringRef getSpellingArg(const ast_matchers::MatchFinder::MatchResult &Result,
/external/llvm-project/clang/lib/ASTMatchers/
DASTMatchFinder.cpp34 typedef MatchFinder::MatchCallback MatchCallback;
379 MatchASTVisitor(const MatchFinder::MatchersByType *Matchers, in MatchASTVisitor()
380 const MatchFinder::MatchFinderOptions &Options) in MatchASTVisitor()
904 MatchFinder::MatchCallback* Callback) in MatchVisitor()
909 Callback->run(MatchFinder::MatchResult(BoundNodesView, Context)); in visitMatch()
914 MatchFinder::MatchCallback* Callback;
958 const MatchFinder::MatchersByType *Matchers;
968 const MatchFinder::MatchFinderOptions &Options;
1170 MatchASTConsumer(MatchFinder *Finder, in MatchASTConsumer()
1171 MatchFinder::ParsingDoneTestCallback *ParsingDone) in MatchASTConsumer()
[all …]
/external/llvm-project/clang/unittests/AST/
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()
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()
141 MatchFinder Finder; in match()
153 void MatchVerifier<NodeType>::run(const MatchFinder::MatchResult &Result) { in run()
166 MatchVerifier<DynTypedNode>::run(const MatchFinder::MatchResult &Result) { in run()
191 void verify(const MatchFinder::MatchResult &Result, in verify()
231 void verify(const MatchFinder::MatchResult &Result, in verify()
270 void verify(const MatchFinder::MatchResult &Result, in verify()
[all …]
/external/llvm-project/clang/lib/Tooling/Transformer/
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()
/external/clang/unittests/AST/
DMatchVerifier.h42 class MatchVerifier : public MatchFinder::MatchCallback {
69 void run(const MatchFinder::MatchResult &Result) override;
70 virtual void verify(const MatchFinder::MatchResult &Result, in verify()
93 MatchFinder Finder; in match()
138 MatchFinder Finder; in match()
150 void MatchVerifier<NodeType>::run(const MatchFinder::MatchResult &Result) { in run()
163 const MatchFinder::MatchResult &Result) { in run()
188 void verify(const MatchFinder::MatchResult &Result, in verify()
228 void verify(const MatchFinder::MatchResult &Result, in verify()
267 void verify(const MatchFinder::MatchResult &Result, in verify()
[all …]
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchFinder.h68 class MatchFinder {
137 MatchFinder(MatchFinderOptions Options = MatchFinderOptions());
138 ~MatchFinder();
278 class CollectMatchesCallback : public MatchFinder::MatchCallback {
280 void run(const MatchFinder::MatchResult &Result) override { in run()
291 MatchFinder Finder; in match()
307 MatchFinder Finder; in match()
317 MatchFinder Finder; in matchDynamic()
333 MatchFinder Finder; in matchDynamic()
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
DFindAllSymbols.cpp116 void FindAllSymbols::registerMatchers(MatchFinder *MatchFinder) { in registerMatchers() argument
202 MatchFinder->addMatcher(Decls.bind("decl"), this); in registerMatchers()
206 MatchFinder->addMatcher( in registerMatchers()
209 MatchFinder->addMatcher( in registerMatchers()
216 MatchFinder->addMatcher( in registerMatchers()
222 MatchFinder->addMatcher( in registerMatchers()
229 MatchFinder->addMatcher( in registerMatchers()
237 void FindAllSymbols::run(const MatchFinder::MatchResult &Result) { in run()
/external/llvm-project/clang/include/clang/Tooling/Transformer/
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()

12345678910>>...25