summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-10-28 01:36:20 +0000
committerAlexander Kornienko <alexfh@google.com>2015-10-28 01:36:20 +0000
commitc3ceb2769005f8f027daf82db00a084bc80c0229 (patch)
tree9d2f83f65d5ebddde7c8179d3c65520d5e3a29ca /clang/lib/CodeGen/CGObjC.cpp
parenta1036e5d081dd800c71bdbdf858908b99eed03a4 (diff)
downloadbcm5719-llvm-c3ceb2769005f8f027daf82db00a084bc80c0229.tar.gz
bcm5719-llvm-c3ceb2769005f8f027daf82db00a084bc80c0229.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud