Author: alexfh Date: Tue Dec 22 12:13:00 2015 New Revision: 256261 URL: http://llvm.org/viewvc/llvm-project?rev=256261&view=rev Log: [clang-tidy] Added documentation for modernize-redundant-void-arg
Added: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-redundant-void-arg.rst Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst Modified: clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst?rev=256261&r1=256260&r2=256261&view=diff ============================================================================== --- clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst (original) +++ clang-tools-extra/trunk/docs/clang-tidy/checks/list.rst Tue Dec 22 12:13:00 2015 @@ -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 Added: clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-redundant-void-arg.rst URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-redundant-void-arg.rst?rev=256261&view=auto ============================================================================== --- clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-redundant-void-arg.rst (added) +++ clang-tools-extra/trunk/docs/clang-tidy/checks/modernize-redundant-void-arg.rst Tue Dec 22 12:13:00 2015 @@ -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() {}`` + =================================== =========================== _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits