[PATCH] D18821: Add modernize-bool-to-integer-conversion
Marek SokoĊowski via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 6 12:24:22 PDT 2016
mnbvmar added a comment.
This check throws a warning also on the conversion to floats (probably very rare ones):
double number = true;
Even though this behavior is correct, the code warns about the implicit conversion to **integers**.
================
Comment at: docs/ReleaseNotes.rst:119
@@ +118,3 @@
+
+ Replaces implicit cast from bool literals to integers to int literals.
+
----------------
**with** int literals
http://reviews.llvm.org/D18821
More information about the cfe-commits
mailing list