Reapply r260096.
authorAaron Ballman <aaron@aaronballman.com>
Fri, 12 Feb 2016 15:09:05 +0000 (15:09 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Fri, 12 Feb 2016 15:09:05 +0000 (15:09 +0000)
commitf034a8c7d7719d9be6c775bb74afc97a88238ba4
treed408ca68558947eb48894f0033a9d2725085cd84
parent8e57697cfd75ec590307267128456a30707156af
Reapply r260096.

Expand the simplify boolean expression check to handle implicit conversion of integral types to bool and improve the handling of implicit conversion of member pointers to bool.

Implicit conversion of member pointers are replaced with explicit comparisons to nullptr.

Implicit conversions of integral types are replaced with explicit comparisons to 0.

Patch by Richard Thomson.

llvm-svn: 260681
clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.h
clang-tools-extra/docs/clang-tidy/checks/readability-simplify-boolean-expr.rst
clang-tools-extra/test/clang-tidy/readability-simplify-bool-expr.cpp