[clang-tidy] Added documentation for modernize-redundant-void-arg
llvm-svn: 256261
This commit is contained in:
parent
c6424ae46c
commit
ef064f8ace
|
@ -61,6 +61,7 @@ Clang-Tidy Checks
|
|||
modernize-loop-convert
|
||||
modernize-make-unique
|
||||
modernize-pass-by-value
|
||||
modernize-redundant-void-arg
|
||||
modernize-replace-auto-ptr
|
||||
modernize-shrink-to-fit
|
||||
modernize-use-auto
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
.. title:: clang-tidy - modernize-redundant-void-arg
|
||||
|
||||
modernize-redundant-void-arg
|
||||
============================
|
||||
|
||||
Find and remove redundant ``void`` argument lists.
|
||||
|
||||
Examples:
|
||||
=================================== ===========================
|
||||
Initial code Code with applied fixes
|
||||
=================================== ===========================
|
||||
``int f(void);`` ``int f();``
|
||||
``int (*f(void))(void);`` ``int (*f())();``
|
||||
``typedef int (*f_t(void))(void);`` ``typedef int (*f_t())();``
|
||||
``void (C::*p)(void);`` ``void (C::*p)();``
|
||||
``C::C(void) {}`` ``C::C() {}``
|
||||
``C::~C(void) {}`` ``C::~C() {}``
|
||||
=================================== ===========================
|
Loading…
Reference in New Issue