]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Use #include "third_party/..." consistently to include third party code
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 13 Oct 2019 14:44:30 +0000 (16:44 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 19 Oct 2019 10:45:09 +0000 (12:45 +0200)
18 files changed:
Makefile.in
src/AtomicFile.cpp
src/CacheEntryReader.cpp
src/CacheFile.hpp
src/Checksum.hpp
src/Config.hpp
src/ProgressBar.cpp
src/ccache.cpp
src/compress.cpp
src/legacy_util.cpp
unittest/catch2_tests.cpp
unittest/test_AtomicFile.cpp
unittest/test_Checksum.cpp
unittest/test_Compression.cpp
unittest/test_Config.cpp
unittest/test_NullCompression.cpp
unittest/test_Util.cpp
unittest/test_ZstdCompression.cpp

index 360a894a80d0680c70040ee3d554ed60936179f2..225396dd08a962543e5e565250f5b4517d82cefc 100644 (file)
@@ -22,7 +22,7 @@ LIBS = @LIBS@
 
 all_cflags = $(CFLAGS)
 all_cxxflags = $(CXXFLAGS)
-all_cppflags = @DEFS@ -DSYSCONFDIR=$(sysconfdir) -I. -I$(srcdir)/src -I$(srcdir)/src/third_party -I$(builddir)/unittest $(CPPFLAGS)
+all_cppflags = @DEFS@ -DSYSCONFDIR=$(sysconfdir) -I. -I$(srcdir)/src -I$(builddir)/unittest $(CPPFLAGS)
 extra_libs = @extra_libs@
 
 v_at_0 = yes
index ab63e0b2ab3d257959127334b30dd588c56560f9..6661c022d6b6271a1868ea004e2c40c3a1d137c4 100644 (file)
 #include "Util.hpp"
 #include "ccache.hpp"
 
+#include "third_party/fmt/core.h"
+
 #include <cassert>
 #include <cerrno>
-#include <fmt/core.h>
 #include <unistd.h>
 
 AtomicFile::AtomicFile(const std::string& path, Mode mode) : m_path(path)
index 59da8562c1c1c1c9ee5d6d64dd8a2256cf2e87fe..2670ed13c210587a76146e064738150cb6d283b9 100644 (file)
@@ -22,7 +22,7 @@
 #include "Error.hpp"
 #include "ccache.hpp"
 
-#include <fmt/core.h>
+#include "third_party/fmt/core.h"
 
 CacheEntryReader::CacheEntryReader(FILE* stream,
                                    const uint8_t expected_magic[4],
index 04d4ba3ba72788718079e113b437f2d3661d6a53..bcf8bf2c6b25a079995c0d2440e5a9f8908e159f 100644 (file)
 
 #include "Error.hpp"
 
+#include "third_party/fmt/core.h"
+
 #include <cerrno>
 #include <cstring>
-#include <fmt/core.h>
 #include <string>
 #include <sys/stat.h>
 #include <sys/types.h>
index adc0b0bada6ab216dcbe02d7629d3944b1124b3e..7ffee2c8a779f4f53e09d3cb14e2e22e4cb011e9 100644 (file)
@@ -20,7 +20,7 @@
 
 #include "system.hpp"
 
-#include <third_party/xxhash.h>
+#include "third_party/xxhash.h"
 
 class Checksum
 {
index a05ba4f0ba7863f9f9804e96158023a8ccd045a4..bf8dbfaa48c86f8965c3b3db4356baa394326b27 100644 (file)
@@ -22,7 +22,8 @@
 
 #include "ccache.hpp"
 
-#include <fmt/core.h>
+#include "third_party/fmt/core.h"
+
 #include <functional>
 #include <limits>
 #include <string>
index df430529c9f2b18e12952ed63cc11910e0213d5b..55db6a6bb9326e0c89dd6293de64581c279da4bf 100644 (file)
@@ -18,8 +18,9 @@
 
 #include "ProgressBar.hpp"
 
+#include "third_party/fmt/core.h"
+
 #include <cstdio>
-#include <fmt/core.h>
 #include <unistd.h>
 
 #ifdef _WIN32
index fc60c5e8ec9eaf4a0dbe8027016d401c7f9fb3a9..7b27aa5f1332ec7ee4871153c8b317e47cc0a724 100644 (file)
 #include "Util.hpp"
 #include "cleanup.hpp"
 #include "compopt.hpp"
-
-#include <fmt/core.h>
-#include <limits>
-
-#ifdef HAVE_GETOPT_LONG
-#  include <getopt.h>
-#else
-#  include "third_party/getopt_long.h"
-#endif
 #include "compress.hpp"
 #include "hash.hpp"
 #include "hashutil.hpp"
 #include "result.hpp"
 #include "unify.hpp"
 
+#include "third_party/fmt/core.h"
+
+#ifdef HAVE_GETOPT_LONG
+#  include <getopt.h>
+#else
+#  include "third_party/getopt_long.h"
+#endif
+
 #include <fstream>
+#include <limits>
 
 // Global variables used by other compilation units.
 extern char* primary_config_path;
index 5704d3e86c95f329b63d735928900b275db44a02..240d7ed985425c89a477204c954aa2fab0cf2d20 100644 (file)
@@ -28,7 +28,8 @@
 #include "manifest.hpp"
 #include "result.hpp"
 
-#include <fmt/core.h>
+#include "third_party/fmt/core.h"
+
 #include <string>
 #include <thread>
 
index 1c5171c5004f9b874a9782b15279be6b121b40a1..37874cde8d3cc10fa8e59bd4088fc50ef23d7df6 100644 (file)
@@ -22,7 +22,8 @@
 #include "Util.hpp"
 #include "ccache.hpp"
 
-#include <fmt/core.h>
+#include "third_party/fmt/core.h"
+
 #include <string>
 
 #ifdef HAVE_PWD_H
index 9d3b33646144be294ec9c8f57f9c1ceb02fb5f05..e6743edb345535925158cb1a06d932ce4ae136ac 100644 (file)
@@ -19,7 +19,7 @@
 #include "catch2_tests.hpp"
 
 #define CATCH_CONFIG_RUNNER
-#include <catch.hpp>
+#include "third_party/catch.hpp"
 
 int
 run_catch2_tests(int argc, char** argv)
index a45f2f3be33e0009f3d69fed9b957dfd47f0c8a6..3e07e1955ffce8cd749a78cfeea9532dba211ea1 100644 (file)
@@ -19,7 +19,7 @@
 #include "../src/AtomicFile.hpp"
 #include "../src/Util.hpp"
 
-#include <catch.hpp>
+#include "third_party/catch.hpp"
 
 using Catch::Equals;
 
index 0c535936799a6a4cadc18296446143ee0ebbd450..9b107de41fbfe9dacdd265921b69428185fb8e55 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "../src/Checksum.hpp"
 
-#include <catch.hpp>
+#include "third_party/catch.hpp"
 
 TEST_CASE("Checksums")
 {
index 97c2b0514c9f95a3a1f4475776e26b100e6b912b..e2ccf7085bc38a260d15dc9ee49374a4c64fedcb 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "../src/Compression.hpp"
 
-#include <catch.hpp>
+#include "third_party/catch.hpp"
 
 using Catch::Equals;
 
index f32ceabd6efb5db2d70622f74e9a25f87a884d6e..a956899f6f32c849984a54e32fc7eadd79985382 100644 (file)
@@ -21,8 +21,9 @@
 #include "../src/Util.hpp"
 #include "../src/ccache.hpp"
 
-#include <catch.hpp>
-#include <fmt/core.h>
+#include "third_party/catch.hpp"
+#include "third_party/fmt/core.h"
+
 #include <limits>
 #include <string>
 #include <vector>
index 43e0c19866d55467191c64f059bfe796e747f7f5..0d767545aab3ca452787417d599aa696f7714a9f 100644 (file)
@@ -21,7 +21,7 @@
 #include "../src/Decompressor.hpp"
 #include "../src/File.hpp"
 
-#include <catch.hpp>
+#include "third_party/catch.hpp"
 
 using Catch::Equals;
 
index 9d55a826bd4dd1f7120b9210c5f5b038607e8522..eaec54f345c396b034c3ac325ccddf6a6e7fc5ff 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "../src/Util.hpp"
 
-#include <catch.hpp>
+#include "third_party/catch.hpp"
 
 using Catch::Equals;
 
index d9973d92f48051f0230713ebe7fe385bb7bc2d35..b978b5f885a3affb65a54d361ac005273abaa8df 100644 (file)
@@ -21,7 +21,7 @@
 #include "../src/Decompressor.hpp"
 #include "../src/File.hpp"
 
-#include <catch.hpp>
+#include "third_party/catch.hpp"
 
 using Catch::Equals;