clang-tools 22.0.0git
|
Find and remove redundant void argument lists. More...
#include <RedundantVoidArgCheck.h>
Public Member Functions | |
RedundantVoidArgCheck (StringRef Name, ClangTidyContext *Context) | |
bool | isLanguageVersionSupported (const LangOptions &LangOpts) const override |
void | registerMatchers (ast_matchers::MatchFinder *Finder) override |
void | check (const ast_matchers::MatchFinder::MatchResult &Result) override |
Find and remove redundant void argument lists.
Examples: int f(void); becomes int f(); int (*f(void))(void); becomes int (*f())(); typedef int (*f_t(void))(void); becomes typedef int (*f_t())(); void (C::*p)(void); becomes void (C::*p)(); C::C(void) {} becomes C::C() {} C::~C(void) {} becomes C::~C() {}
Definition at line 29 of file RedundantVoidArgCheck.h.
|
inline |
Definition at line 31 of file RedundantVoidArgCheck.h.
|
override |
Definition at line 69 of file RedundantVoidArgCheck.cpp.
References clang::tidy::modernize::TypedefName.
|
inlineoverride |
Definition at line 34 of file RedundantVoidArgCheck.h.
|
override |
Definition at line 41 of file RedundantVoidArgCheck.cpp.