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" 38 void check(
const ast_matchers::MatchFinder::MatchResult &Result)
override;
41 void processFunctionDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
42 const FunctionDecl *Function);
45 processTypedefNameDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
46 const TypedefNameDecl *Typedef);
48 void processFieldDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
49 const FieldDecl *Member);
51 void processVarDecl(
const ast_matchers::MatchFinder::MatchResult &Result,
55 processNamedCastExpr(
const ast_matchers::MatchFinder::MatchResult &Result,
56 const CXXNamedCastExpr *NamedCast);
59 processExplicitCastExpr(
const ast_matchers::MatchFinder::MatchResult &Result,
60 const ExplicitCastExpr *ExplicitCast);
62 void processLambdaExpr(
const ast_matchers::MatchFinder::MatchResult &Result,
63 const LambdaExpr *Lambda);
66 removeVoidArgumentTokens(
const ast_matchers::MatchFinder::MatchResult &Result,
67 SourceRange
Range, StringRef GrammarLocation);
69 void removeVoidToken(Token VoidToken, StringRef Diagnostic);
76 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MODERNIZE_REDUNDANT_VOID_ARG_CHECK_H 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.
static constexpr llvm::StringLiteral Name
void check(const ast_matchers::MatchFinder::MatchResult &Result) override
ClangTidyChecks that register ASTMatchers should do the actual work in here.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
CharSourceRange Range
SourceRange for the file name.
Every ClangTidyCheck reports errors through a DiagnosticsEngine provided by this context.