summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-02-14 14:13:36 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-02-14 14:36:15 +0000
commit8a7c15a92c61c850dfc5f35b9a74c0fc8910afc7 (patch)
treefacd2bbead4a9e789a59667966e06095d4e9adc0
parentBump to C++20 for non-legacy CTF (diff)
downloadlibdbpp-8a7c15a92c61c850dfc5f35b9a74c0fc8910afc7.tar.bz2
libdbpp-8a7c15a92c61c850dfc5f35b9a74c0fc8910afc7.tar.xz
libdbpp-8a7c15a92c61c850dfc5f35b9a74c0fc8910afc7.zip
Tidy includes
-rw-r--r--libdbpp/command.h3
-rw-r--r--libdbpp/connection.h3
-rw-r--r--libdbpp/mockDatabase.h3
-rw-r--r--libdbpp/unittests/testUtils.cpp1
4 files changed, 6 insertions, 4 deletions
diff --git a/libdbpp/command.h b/libdbpp/command.h
index 2c3e9ee..eae7775 100644
--- a/libdbpp/command.h
+++ b/libdbpp/command.h
@@ -7,7 +7,7 @@
#include <boost/lexical_cast.hpp>
#include <c++11Helpers.h>
#include <cstddef>
-#include <factory.h>
+#include <factory.h> // IWYU pragma: keep
#include <optional>
#include <string>
#include <string_view>
@@ -21,6 +21,7 @@
#pragma GCC diagnostic pop
#include <type_traits>
#include <visibility.h>
+// IWYU pragma: no_include "factory.impl.h"
namespace DB {
class Blob;
diff --git a/libdbpp/connection.h b/libdbpp/connection.h
index 495c1c2..f14eec1 100644
--- a/libdbpp/connection.h
+++ b/libdbpp/connection.h
@@ -7,7 +7,7 @@
#include <cstdint>
#include <cstdio>
#include <exception.h>
-#include <factory.h>
+#include <factory.h> // IWYU pragma: keep
#include <filesystem>
#include <iosfwd>
#include <memory>
@@ -18,6 +18,7 @@
#include <sys/types.h>
#include <typeinfo>
#include <visibility.h>
+// IWYU pragma: no_include "factory.impl.h"
namespace DB {
class TablePatch;
diff --git a/libdbpp/mockDatabase.h b/libdbpp/mockDatabase.h
index 82de5e0..55c175f 100644
--- a/libdbpp/mockDatabase.h
+++ b/libdbpp/mockDatabase.h
@@ -3,13 +3,14 @@
#include "connection_fwd.h"
#include <c++11Helpers.h>
-#include <factory.impl.h>
+#include <factory.h> // IWYU pragma: keep
#include <filesystem>
#include <initializer_list>
#include <memory>
#include <string>
#include <vector>
#include <visibility.h>
+// IWYU pragma: no_include "factory.impl.h"
namespace DB {
class Connection;
diff --git a/libdbpp/unittests/testUtils.cpp b/libdbpp/unittests/testUtils.cpp
index e95b572..4b3f651 100644
--- a/libdbpp/unittests/testUtils.cpp
+++ b/libdbpp/unittests/testUtils.cpp
@@ -18,7 +18,6 @@
#include <filesystem>
#include <fstream> // IWYU pragma: keep
#include <glibmm/ustring.h>
-#include <iterator>
#include <memory>
#include <modifycommand.h>
#include <optional>