Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change test to just define NULL instead of #including stddef.h. In some | Daniel Jasper | 2015-10-28 | 1 | -1/+1 |
| | | | | | | | test environments, even that builtin header isn't available. Also, this makes it more consistent with the C++ version of this test. llvm-svn: 251520 | ||||
* | clang-tools-extra/test/clang-tidy/modernize-redundant-void-arg.c: Use ↵ | NAKAMURA Takumi | 2015-10-28 | 1 | -1/+1 |
| | | | | | | <stddef.h> provided by clang, instead of <stdio.h>. llvm-svn: 251503 | ||||
* | Add modernize-redundant-void-arg check to clang-tidy | Alexander Kornienko | 2015-10-28 | 1 | -0/+58 |
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 |