[PATCH] D45601: Warn on bool* to bool conversion
Eugene Zelenko via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 12 16:39:12 PDT 2018
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
More information about the cfe-commits
mailing list