/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | SimplifyBooleanExprCheck.h | 28 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 …]
|
D | RedundantControlFlowCheck.h | 29 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,
|
D | MagicNumbersCheck.h | 29 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()
|
D | SimplifyBooleanExprCheck.cpp | 25 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 …]
|
D | RedundantSmartptrGetCheck.cpp | 37 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/ |
D | RedundantVoidArgCheck.h | 40 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,
|
D | RedundantVoidArgCheck.cpp | 46 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/ |
D | NotNullTerminatedResultCheck.h | 30 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);
|
D | NotNullTerminatedResultCheck.cpp | 45 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/ |
D | ChangeNamespace.h | 46 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/ |
D | ASTMatchersInternalTest.cpp | 103 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/llvm-project/clang/include/clang/Tooling/ |
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;
|
/external/clang/lib/ASTMatchers/ |
D | ASTMatchFinder.cpp | 35 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/unittests/ASTMatchers/ |
D | ASTMatchersInternalTest.cpp | 95 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/ |
D | RedundantExpressionCheck.h | 27 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/android/ |
D | CloexecCheck.h | 35 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-tools-extra/clang-tidy/abseil/ |
D | DurationRewriter.h | 39 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/unittests/AST/ |
D | DeclMatcher.h | 21 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()
|
D | MatchVerifier.h | 33 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/ASTMatchers/ |
D | ASTMatchFinder.cpp | 34 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/lib/Tooling/Transformer/ |
D | Transformer.cpp | 22 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/ |
D | MatchVerifier.h | 42 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/Tooling/Transformer/ |
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()
|
D | Transformer.h | 23 class Transformer : public ast_matchers::MatchFinder::MatchCallback { 38 void registerMatchers(ast_matchers::MatchFinder *MatchFinder); 42 void run(const ast_matchers::MatchFinder::MatchResult &Result) override;
|
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
D | FindAllSymbols.h | 34 class FindAllSymbols : public ast_matchers::MatchFinder::MatchCallback { 40 void registerMatchers(ast_matchers::MatchFinder *MatchFinder); 42 void run(const ast_matchers::MatchFinder::MatchResult &result) override;
|