[PATCH] D18420: [sancov] adding leading zeros to coverage pct.

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 24 10:36:09 PDT 2016


vitalybuka accepted this revision.

================
Comment at: tools/sancov/sancov.cc:497
@@ +496,3 @@
+static std::string formatHtmlPct(size_t Pct) {
+  Pct = std::max(std::size_t{0}, std::min(std::size_t{100}, Pct));
+
----------------
probably std::size_t{0} ->0u  is enough


http://reviews.llvm.org/D18420





More information about the llvm-commits mailing list