From 8eec2d2f5bd0549b3254e1aa881c85f0d4ebdc89 Mon Sep 17 00:00:00 2001 From: offa Date: Wed, 15 Mar 2017 14:38:59 +0100 Subject: [PATCH 1/3] Clang 4.0 clang build added. --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index 799b1999..8b3d2c2b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,8 @@ matrix: - llvm-toolchain-precise-3.8 - llvm-toolchain-precise-3.7 - llvm-toolchain-precise-3.6 + - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main' + key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key' - env: CXX=g++-5 CC=gcc-5 addons: apt: @@ -50,6 +52,14 @@ matrix: - g++-4.7 - valgrind sources: *sources + - env: CXX=clang++-4.0 CC=clang-4.0 + addons: + apt: + packages: + - clang-4.0 + - libc++-dev + - valgrind + sources: *sources - env: CXX=clang++-3.9 CC=clang-3.9 addons: apt: From a3b1373206b288a6a86af1cc6cab0bb814055b49 Mon Sep 17 00:00:00 2001 From: offa Date: Wed, 15 Mar 2017 14:53:05 +0100 Subject: [PATCH 2/3] Fix wrong compiler used. --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8b3d2c2b..a604fc51 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ -language: cpp +language: generic + sudo: false dist: trusty From 9a286447ba164e7ecb7011dcb677f23dd7b9e955 Mon Sep 17 00:00:00 2001 From: offa Date: Wed, 15 Mar 2017 14:59:58 +0100 Subject: [PATCH 3/3] Missing override added. --- src/test/c/MockServerImpl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/c/MockServerImpl.h b/src/test/c/MockServerImpl.h index f41ff17c..d64c859e 100644 --- a/src/test/c/MockServerImpl.h +++ b/src/test/c/MockServerImpl.h @@ -53,7 +53,7 @@ class MockServerImpl : public ServerImpl { std::string getStatsDocument() const override { return ""; } void checkThread() const override { } Server &server() override { throw std::runtime_error("not supported"); }; - size_t clientBufferSize() const { return 512 * 1024; } + size_t clientBufferSize() const override { return 512 * 1024; } }; }