[PATCH] D16259: Add clang-tidy readability-redundant-return check
Richard via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 17 09:16:32 PST 2016
LegalizeAdulthood updated this revision to Diff 45110.
LegalizeAdulthood added a comment.
Extend this check to handle redundant `continue` statements in loop bodies.
With this extension, I'm wondering if the check should be renamed redundant-control-flow instead of redundant-return.
Comments?
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.45110.patch
Type: text/x-patch
Size: 10666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160117/a26e12aa/attachment-0001.bin>
More information about the cfe-commits
mailing list