[PATCH] D16259: Add clang-tidy readability-redundant-return check

Richard via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 17 09:23:10 PST 2016

LegalizeAdulthood added a comment.

I didn't know about the bug reports.  I created this check because I have encountered such redundant control flow in real code bases.

This would close 21984 <https://llvm.org/bugs/show_bug.cgi?id=21984>, but not 22416 <https://llvm.org/bugs/show_bug.cgi?id=22416>.  22416 feels more like a check to eliminate redundant parenthesis, whereas this check is concerned with the entire control flow statement being redundant.


More information about the cfe-commits mailing list