aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chilbert/chilbert.hpp2
-rw-r--r--test/bench_bitvec.cpp11
-rw-r--r--test/bench_hilbert.cpp10
-rw-r--r--test/test_bitvec.cpp3
-rw-r--r--test/test_gray_code_rank.cpp4
-rw-r--r--test/test_hilbert.cpp9
6 files changed, 29 insertions, 10 deletions
diff --git a/chilbert/chilbert.hpp b/chilbert/chilbert.hpp
index e8d10f4..c55fc14 100644
--- a/chilbert/chilbert.hpp
+++ b/chilbert/chilbert.hpp
@@ -91,6 +91,6 @@ inline void compact_index_to_coords(P& p,
} // namespace chilbert
-#include "chilbert/chilbert.ipp"
+#include "chilbert/chilbert.ipp" // IWYU pragma: export
#endif
diff --git a/test/bench_bitvec.cpp b/test/bench_bitvec.cpp
index 741b2d2..3c7d7f6 100644
--- a/test/bench_bitvec.cpp
+++ b/test/bench_bitvec.cpp
@@ -16,13 +16,18 @@
*/
#include "bench_utils.hpp"
+#include "test_utils.hpp"
-#include "chilbert/BoundedBitVec.hpp"
-#include "chilbert/DynamicBitVec.hpp"
+#include "chilbert/BoundedBitVec.hpp" // IWYU pragma: keep
+#include "chilbert/DynamicBitVec.hpp" // IWYU pragma: keep
#include "chilbert/SmallBitVec.hpp"
-#include "chilbert/StaticBitVec.hpp"
+#include "chilbert/StaticBitVec.hpp" // IWYU pragma: keep
+#include <array>
+#include <cstddef>
#include <fstream>
+#include <string>
+#include <vector>
template <class T, size_t N>
struct BenchAnd
diff --git a/test/bench_hilbert.cpp b/test/bench_hilbert.cpp
index e216efe..52c12dc 100644
--- a/test/bench_hilbert.cpp
+++ b/test/bench_hilbert.cpp
@@ -16,14 +16,18 @@
*/
#include "bench_utils.hpp"
+#include "test_utils.hpp"
-#include "chilbert/BoundedBitVec.hpp"
-#include "chilbert/DynamicBitVec.hpp"
+#include "chilbert/BoundedBitVec.hpp" // IWYU pragma: keep
+#include "chilbert/DynamicBitVec.hpp" // IWYU pragma: keep
#include "chilbert/SmallBitVec.hpp"
-#include "chilbert/StaticBitVec.hpp"
+#include "chilbert/StaticBitVec.hpp" // IWYU pragma: keep
#include "chilbert/chilbert.hpp"
+#include <array>
+#include <cstddef>
#include <fstream>
+#include <string>
template <class H, size_t M, size_t D>
struct BenchCoordsToIndex
diff --git a/test/test_bitvec.cpp b/test/test_bitvec.cpp
index 7b8a55f..a0e8b5b 100644
--- a/test/test_bitvec.cpp
+++ b/test/test_bitvec.cpp
@@ -23,9 +23,12 @@
#include "chilbert/DynamicBitVec.hpp"
#include "chilbert/SmallBitVec.hpp"
#include "chilbert/StaticBitVec.hpp"
+#include "chilbert/detail/operations.hpp"
+#include "chilbert/operators.hpp"
#include <cassert>
#include <cstddef>
+#include <cstdlib>
template <class T, size_t N>
void
diff --git a/test/test_gray_code_rank.cpp b/test/test_gray_code_rank.cpp
index 9c903c1..05f1ae1 100644
--- a/test/test_gray_code_rank.cpp
+++ b/test/test_gray_code_rank.cpp
@@ -24,13 +24,13 @@
#include "chilbert/SmallBitVec.hpp"
#include "chilbert/StaticBitVec.hpp"
#include "chilbert/detail/gray_code_rank.hpp"
+#include "chilbert/detail/operations.hpp"
+#include "chilbert/operators.hpp"
#include <algorithm>
#include <array>
#include <cassert>
#include <cstddef>
-#include <cstdint>
-#include <iostream>
#include <iterator>
template <class T, size_t Max, size_t D>
diff --git a/test/test_hilbert.cpp b/test/test_hilbert.cpp
index 5d1f52a..ac4bba1 100644
--- a/test/test_hilbert.cpp
+++ b/test/test_hilbert.cpp
@@ -23,10 +23,17 @@
#include "chilbert/DynamicBitVec.hpp"
#include "chilbert/SmallBitVec.hpp"
#include "chilbert/StaticBitVec.hpp"
-#include "chilbert/chilbert.hpp"
+#include "chilbert/chilbert.ipp"
+#include <gmp.h>
#include <gmpxx.h>
+#include <array>
+#include <cassert>
+#include <climits>
+#include <cstddef>
+#include <cstdint>
+
/// Return a `D`-dimensional point within `ms` per-dimension precision
template <size_t D>
std::array<uint64_t, D>