[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


More information about the cfe-commits mailing list