| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A 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,
|
| H A D | UseDefaultMemberInitCheck.h | 31 void registerMatchers(ast_matchers::MatchFinder *Finder) override; 32 void check(const ast_matchers::MatchFinder::MatchResult &Result) override; 38 void checkDefaultInit(const ast_matchers::MatchFinder::MatchResult &Result, 40 void checkExistingInit(const ast_matchers::MatchFinder::MatchResult &Result,
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A 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);
|
| H A D | NotNullTerminatedResultCheck.cpp | 164 static bool isInjectUL(const MatchFinder::MatchResult &Result) { in isInjectUL() 424 const MatchFinder::MatchResult &Result, in renameFunc() 793 const MatchFinder::MatchResult &Result) { in check() 836 StringRef Name, const MatchFinder::MatchResult &Result) { in memoryHandlerFunctionFix() 867 StringRef Name, const MatchFinder::MatchResult &Result, in memcpyFix() 895 StringRef Name, const MatchFinder::MatchResult &Result, in memcpy_sFix() 921 StringRef Name, const MatchFinder::MatchResult &Result) { in memchrFix() 943 StringRef Name, const MatchFinder::MatchResult &Result, in memmoveFix() 956 const MatchFinder::MatchResult &Result) { in strerror_sFix() 967 StringRef Name, const MatchFinder::MatchResult &Result) { in ncmpFix() [all …]
|
| H A D | DanglingHandleCheck.h | 26 void registerMatchers(ast_matchers::MatchFinder *Finder) override; 27 void check(const ast_matchers::MatchFinder::MatchResult &Result) override; 31 void registerMatchersForVariables(ast_matchers::MatchFinder *Finder); 32 void registerMatchersForReturn(ast_matchers::MatchFinder *Finder);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/ |
| H A 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,
|
| /llvm-project-15.0.7/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;
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersInternalTest.cpp | 62 MatchFinder Finder; 64 struct CrashCallback : public MatchFinder::MatchCallback { 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() 222 void run(const MatchFinder::MatchResult &Result) override { in run() 229 TEST(MatchFinder, InterceptsStartOfTranslationUnit) { in TEST() argument 230 MatchFinder Finder; in TEST() 255 TEST(MatchFinder, InterceptsEndOfTranslationUnit) { in TEST() argument [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A 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);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | RedundantControlFlowCheck.h | 29 void registerMatchers(ast_matchers::MatchFinder *Finder) override; 30 void check(const ast_matchers::MatchFinder::MatchResult &Result) override; 38 checkRedundantReturn(const ast_matchers::MatchFinder::MatchResult &Result, 42 checkRedundantContinue(const ast_matchers::MatchFinder::MatchResult &Result, 45 void issueDiagnostic(const ast_matchers::MatchFinder::MatchResult &Result,
|
| H A 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()
|
| H A D | RedundantSmartptrGetCheck.cpp | 52 void registerMatchersForGetArrowStart(MatchFinder *Finder, in registerMatchersForGetArrowStart() 53 MatchFinder::MatchCallback *Callback) { in registerMatchersForGetArrowStart() 93 void registerMatchersForGetEquals(MatchFinder *Finder, in registerMatchersForGetEquals() 94 MatchFinder::MatchCallback *Callback) { in registerMatchersForGetEquals() 118 void RedundantSmartptrGetCheck::registerMatchers(MatchFinder *Finder) { in registerMatchers() 124 bool allReturnTypesMatch(const MatchFinder::MatchResult &Result) { in allReturnTypesMatch() 141 void RedundantSmartptrGetCheck::check(const MatchFinder::MatchResult &Result) { in check()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/abseil/ |
| H A 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,
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/android/ |
| H A 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,
|
| /llvm-project-15.0.7/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; 136 const ast_matchers::MatchFinder::MatchResult &Match, 147 const ast_matchers::MatchFinder::MatchResult &Match, 172 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()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A 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()
|
| H A 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() 146 MatchFinder Finder; in match() 158 void MatchVerifier<NodeType>::run(const MatchFinder::MatchResult &Result) { in run() 171 MatchVerifier<DynTypedNode>::run(const MatchFinder::MatchResult &Result) { in run() 196 void verify(const MatchFinder::MatchResult &Result, in verify() 236 void verify(const MatchFinder::MatchResult &Result, in verify() 275 void verify(const MatchFinder::MatchResult &Result, in verify() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
| H A D | FindAllSymbols.cpp | 116 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()
|
| H A 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;
|
| /llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/ |
| H A D | UncheckedOptionalAccessModel.cpp | 280 const MatchFinder::MatchResult &, in initializeOptionalReference() 319 const MatchFinder::MatchResult &, in transferMakeOptionalCall() 328 const MatchFinder::MatchResult &, in transferOptionalHasValueCall() 342 const MatchFinder::MatchResult &Result, in transferValueOrImpl() 389 const MatchFinder::MatchResult &Result, in transferValueOrNotEqX() 450 const CXXConstructExpr *E, const MatchFinder::MatchResult &MatchRes, in transferValueOrConversionConstructor() 486 const MatchFinder::MatchResult &, in transferNulloptAssignment() 505 const MatchFinder::MatchResult &, in transferSwapCall() 575 [](const CXXConstructExpr *E, const MatchFinder::MatchResult &, in buildTransferMatchSwitch() 581 [](const CXXConstructExpr *E, const MatchFinder::MatchResult &, in buildTransferMatchSwitch() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-move/ |
| H A D | Move.h | 116 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;
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchFinder.h | 68 class MatchFinder { 143 MatchFinder(MatchFinderOptions Options = MatchFinderOptions()); 144 ~MatchFinder(); 286 class CollectMatchesCallback : public MatchFinder::MatchCallback { 288 void run(const MatchFinder::MatchResult &Result) override { in run() 304 MatchFinder Finder; in match() 320 MatchFinder Finder; in match() 330 MatchFinder Finder; in matchDynamic() 346 MatchFinder Finder; in matchDynamic()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/ |
| H A D | ASTMatchFinder.cpp | 35 typedef MatchFinder::MatchCallback MatchCallback; 1266 MatchFinder::MatchCallback* Callback; 1310 const MatchFinder::MatchersByType *Matchers; 1320 const MatchFinder::MatchFinderOptions &Options; 1531 MatchASTConsumer(MatchFinder *Finder, in MatchASTConsumer() 1543 MatchFinder *Finder; 1555 MatchFinder::MatchCallback::~MatchCallback() {} in ~MatchCallback() 1558 MatchFinder::MatchFinder(MatchFinderOptions Options) in MatchFinder() function in clang::ast_matchers::MatchFinder 1561 MatchFinder::~MatchFinder() {} in ~MatchFinder() 1672 void MatchFinder::matchAST(ASTContext &Context) { in matchAST() [all …]
|