Eugene.Zelenko added a comment.

There is Clang-tidy's readability-implicit-bool-conversion 
<http://clang.llvm.org/extra/clang-tidy/checks/readability-implicit-bool-conversion.html>
 check.

It may be reasonable to check pointers to integers too, since integers are 
often implicitly converted to bools.

Please mention new warning in Release Notes.


https://reviews.llvm.org/D45601



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to