[PATCH] Add readability-simplify-boolean-expr check to clang-tidy

Richard legalize at xmission.com
Sun Mar 22 11:46:22 PDT 2015


Prefer explicit declarations over auto when initializing expression doesn't mention the type explicitly.
Prefer `const auto *` declaration when declaring a node type from `getNodeAs<T>`.
Unwrap parenthesis around replacement expression where possible.


http://reviews.llvm.org/D7648

Files:
  clang-tidy/readability/CMakeLists.txt
  clang-tidy/readability/ReadabilityTidyModule.cpp
  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: D7648.22423.patch
Type: text/x-patch
Size: 38337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150322/808bd69d/attachment.bin>


More information about the cfe-commits mailing list