|
clang-tools 23.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 |
| std::optional< TraversalKind > | getCheckTraversalKind () 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 26 of file RedundantVoidArgCheck.h.
|
inline |
Definition at line 28 of file RedundantVoidArgCheck.h.
|
override |
Definition at line 29 of file RedundantVoidArgCheck.cpp.
References clang::tidy::utils::lexer::findNextTokenSkippingComments(), and clang::tidy::modernize::getCallOperator().
|
inlineoverride |
Definition at line 34 of file RedundantVoidArgCheck.h.
|
inlineoverride |
Definition at line 31 of file RedundantVoidArgCheck.h.
|
override |
Definition at line 17 of file RedundantVoidArgCheck.cpp.