|
@@ -1,34 +1,7 @@
|
|
|
-Index: tools/sancov/sancov.cc
|
|
|
|
|
---- tools/sancov/sancov.cc.orig 2016-07-14 04:24:01.000000000 +0200
|
|
|
|
|
-+++ tools/sancov/sancov.cc 2016-12-17 14:54:31.177544000 +0100
|
|
|
|
|
-@@ -53,6 +53,14 @@
|
|
|
|
|
- #include <utility>
|
|
|
|
|
- #include <vector>
|
|
|
|
|
-
|
|
|
|
|
-+#include <sstream>
|
|
|
|
|
-+
|
|
|
|
|
-+template <typename T> std::string my_to_string(const T& n) {
|
|
|
|
|
-+ std::ostringstream stm;
|
|
|
|
|
-+ stm << n;
|
|
|
|
|
-+ return stm.str();
|
|
|
|
|
-+}
|
|
|
|
|
-+
|
|
|
|
|
- using namespace llvm;
|
|
|
|
|
-
|
|
|
|
|
- namespace {
|
|
|
|
|
-@@ -512,7 +520,7 @@
|
|
|
|
|
- static std::string formatHtmlPct(size_t Pct) {
|
|
|
|
|
- Pct = std::max(std::size_t{0}, std::min(std::size_t{100}, Pct));
|
|
|
|
|
-
|
|
|
|
|
-- std::string Num = std::to_string(Pct);
|
|
|
|
|
-+ std::string Num = my_to_string(Pct);
|
|
|
|
|
- std::string Zeroes(3 - Num.size(), '0');
|
|
|
|
|
- if (!Zeroes.empty())
|
|
|
|
|
- Zeroes = "<span class='lz'>" + Zeroes + "</span>";
|
|
|
|
|
Index: tools/clang/CMakeLists.txt
|
|
Index: tools/clang/CMakeLists.txt
|
|
|
---- tools/clang/CMakeLists.txt.orig 2016-07-10 03:44:00.000000000 +0200
|
|
|
|
|
-+++ tools/clang/CMakeLists.txt 2016-12-17 18:02:15.192976000 +0100
|
|
|
|
|
-@@ -172,11 +172,6 @@
|
|
|
|
|
|
|
+--- tools/clang/CMakeLists.txt.orig 2017-02-21 20:55:46.000000000 +0100
|
|
|
|
|
++++ tools/clang/CMakeLists.txt 2017-03-13 19:11:51.757856000 +0100
|
|
|
|
|
+@@ -180,11 +180,6 @@
|
|
|
# we can include cmake files from this directory.
|
|
# we can include cmake files from this directory.
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
|
|
|
|
|
|
|
@@ -37,6 +10,6 @@ Index: tools/clang/CMakeLists.txt
|
|
|
- set(CLANG_HAVE_LIBXML 1)
|
|
- set(CLANG_HAVE_LIBXML 1)
|
|
|
-endif()
|
|
-endif()
|
|
|
-
|
|
-
|
|
|
- set(CLANG_RESOURCE_DIR "" CACHE STRING
|
|
|
|
|
- "Relative directory from the Clang binary to its resource files.")
|
|
|
|
|
|
|
+ include(CheckIncludeFile)
|
|
|
|
|
+ check_include_file(sys/resource.h CLANG_HAVE_RLIMITS)
|
|
|
|
|
|