10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_REDUNDANT_VOID_ARG_CHECK_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_REDUNDANT_VOID_ARG_CHECK_H
13 #include "../ClangTidy.h"
14 #include "clang/Lex/Token.h"
39 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
42 void processFunctionDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
43 const FunctionDecl *Function);
46 processTypedefNameDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
47 const TypedefNameDecl *Typedef);
49 void processFieldDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
50 const FieldDecl *Member);
52 void processVarDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
56 processNamedCastExpr(
const ast_matchers::MatchFinder::MatchResult &Result,
57 const CXXNamedCastExpr *NamedCast);
60 processExplicitCastExpr(
const ast_matchers::MatchFinder::MatchResult &Result,
61 const ExplicitCastExpr *ExplicitCast);
63 void processLambdaExpr(
const ast_matchers::MatchFinder::MatchResult &Result,
64 const LambdaExpr *Lambda);
67 removeVoidArgumentTokens(
const ast_matchers::MatchFinder::MatchResult &Result,
68 SourceRange
Range, StringRef GrammarLocation);
70 void removeVoidToken(Token VoidToken, StringRef Diagnostic);
77 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_REDUNDANT_VOID_ARG_CHECK_H
std::unique_ptr< ast_matchers::MatchFinder > Finder
Base class for all clang-tidy checks.
RedundantVoidArgCheck(StringRef Name, ClangTidyContext *Context)
Find and remove redundant void argument lists.
void registerMatchers(ast_matchers::MatchFinder *Finder) override
Override this to register AST matchers with Finder.
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
CharSourceRange Range
SourceRange for the file name.
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.