[PATCH] Enhance clang-tidy readability-simplify-boolean-expr to handle 'if (e) return true; return false; '
Richard
legalize at xmission.com
Sun May 24 17:50:01 PDT 2015
When the replacement text is already a negated rexpression, `!expr`, and we're negating it again, use `expr`, not `!!expr` as the replacement.
http://reviews.llvm.org/D9810
Files:
clang-tidy/readability/SimplifyBooleanExprCheck.cpp
clang-tidy/readability/SimplifyBooleanExprCheck.h
test/clang-tidy/readability-simplify-bool-expr.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9810.26390.patch
Type: text/x-patch
Size: 12951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150525/43fe1d25/attachment.bin>
More information about the cfe-commits
mailing list