Go to file
Alexander Kornienko c3ceb27690 Add modernize-redundant-void-arg check to clang-tidy
This check for clang-tidy looks for function with zero arguments declared as (void) and removes the unnecessary void token.

  int foo(void);

becomes

  int foo();

The check performs no formatting of the surrounding context but uses the lexer to look for the token sequence "(", "void", ")" in the prototype text. If this sequence of tokens is found, a removal is issued for the void token only.


Patch by Richard Thomson!

(+fixed tests, moved the check to the modernize module)

Differential revision: http://reviews.llvm.org/D7639

llvm-svn: 251475
2015-10-28 01:36:20 +00:00
clang clang-format: When a line is formatted, also format subsequence lines if their indent is off. 2015-10-28 01:08:22 +00:00
clang-tools-extra Add modernize-redundant-void-arg check to clang-tidy 2015-10-28 01:36:20 +00:00
compiler-rt Revert "[asan] On OS X, log reports to syslog and os_trace" 2015-10-27 23:15:05 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc integer: remove explicit casts from _MIN definitions 2015-10-06 19:12:12 +00:00
libcxx Fix test suite configuration. Sorry Marshall 2015-10-26 19:08:53 +00:00
libcxxabi Fix LIBCXXABI_HAS_NO_THREADS configuration. 2015-10-14 19:21:38 +00:00
libunwind Add FreeBSD _Unwind_Ptr typedef 2015-10-16 19:40:09 +00:00
lld ELF2: Move some code from MarkLive.cpp to InputSection.cpp. 2015-10-27 21:51:13 +00:00
lldb Fix Clang-tidy modernize-use-nullptr warnings in some files in include/lldb/Core; other minor fixes. 2015-10-28 00:18:41 +00:00
llgo [llgo] irgen: always use TargetMachine's data layout 2015-09-25 06:28:14 +00:00
llvm [Orc] Revert the C bindngs commit, r251472, while I debug some builder failures. 2015-10-28 01:03:09 +00:00
openmp Removed zeroing th.th_task_state for master thread at start of nested parallel. 2015-10-20 19:21:04 +00:00
polly RegionGenerator: Clear local maps after statement construction 2015-10-26 20:41:53 +00:00