9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_REDUNDANT_VOID_ARG_CHECK_H
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_REDUNDANT_VOID_ARG_CHECK_H
12 #include "../ClangTidyCheck.h"
13 #include "clang/Lex/Token.h"
42 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
45 void processFunctionDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
46 const FunctionDecl *Function);
49 processTypedefNameDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
50 const TypedefNameDecl *Typedef);
52 void processFieldDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
53 const FieldDecl *Member);
55 void processVarDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
59 processNamedCastExpr(
const ast_matchers::MatchFinder::MatchResult &Result,
60 const CXXNamedCastExpr *NamedCast);
63 processExplicitCastExpr(
const ast_matchers::MatchFinder::MatchResult &Result,
64 const ExplicitCastExpr *ExplicitCast);
66 void processLambdaExpr(
const ast_matchers::MatchFinder::MatchResult &Result,
67 const LambdaExpr *Lambda);
70 removeVoidArgumentTokens(
const ast_matchers::MatchFinder::MatchResult &Result,
71 SourceRange
Range, StringRef GrammarLocation);
73 void removeVoidToken(Token VoidToken, StringRef
Diagnostic);
80 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_REDUNDANT_VOID_ARG_CHECK_H