[clang-tidy] Added documentation for modernize-redundant-void-arg

llvm-svn: 256261
This commit is contained in:
Alexander Kornienko 2015-12-22 18:13:00 +00:00
parent c6424ae46c
commit ef064f8ace
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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() {}``
=================================== ===========================