summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-12-22 18:13:00 +0000
committerAlexander Kornienko <alexfh@google.com>2015-12-22 18:13:00 +0000
commitef064f8aced4ce9594d4cb6b4602f27b535c2d61 (patch)
tree924a99a12f24c1f772ed92999a2a7bb740dd3c67
parentc6424ae46c093cf5de4b0eefcd64924621e1e6b7 (diff)
downloadbcm5719-llvm-ef064f8aced4ce9594d4cb6b4602f27b535c2d61.tar.gz
bcm5719-llvm-ef064f8aced4ce9594d4cb6b4602f27b535c2d61.zip
[clang-tidy] Added documentation for modernize-redundant-void-arg
llvm-svn: 256261
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/list.rst1
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/modernize-redundant-void-arg.rst18
2 files changed, 19 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/list.rst b/clang-tools-extra/docs/clang-tidy/checks/list.rst
index 60faead09ab..bd60a325f56 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/list.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/list.rst
@@ -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
diff --git a/clang-tools-extra/docs/clang-tidy/checks/modernize-redundant-void-arg.rst b/clang-tools-extra/docs/clang-tidy/checks/modernize-redundant-void-arg.rst
new file mode 100644
index 00000000000..d1a03e3fbb6
--- /dev/null
+++ b/clang-tools-extra/docs/clang-tidy/checks/modernize-redundant-void-arg.rst
@@ -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() {}``
+ =================================== ===========================
OpenPOWER on IntegriCloud