[PATCH] D16259: Add clang-tidy readability-redundant-return check
Richard via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 15 22:50:25 PST 2016
LegalizeAdulthood created this revision.
LegalizeAdulthood added a reviewer: alexfh.
LegalizeAdulthood added a subscriber: cfe-commits.
This check looks for `return` statements at the end of a function returning `void`:
```
void f()
{
return;
}
```
becomes
```
void f()
{
}
```
http://reviews.llvm.org/D16259
Files:
clang-tidy/readability/CMakeLists.txt
clang-tidy/readability/ReadabilityTidyModule.cpp
clang-tidy/readability/RedundantReturnCheck.cpp
clang-tidy/readability/RedundantReturnCheck.h
docs/clang-tidy/checks/list.rst
docs/clang-tidy/checks/readability-redundant-return.rst
test/clang-tidy/readability-redundant-return.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16259.45073.patch
Type: text/x-patch
Size: 7218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160116/cfb76967/attachment-0001.bin>
More information about the cfe-commits
mailing list