From 041d7b307b0aa3b41b4b843ef239274fbb43a996 Mon Sep 17 00:00:00 2001 From: "seqan-actions[bot]" Date: Tue, 31 Oct 2023 10:11:20 +0100 Subject: [PATCH] [MISC] IWYU --- include/hibf/interleaved_bloom_filter.hpp | 11 +++--- include/hibf/misc/bit_vector.hpp | 34 ++++++++++++++----- include/hibf/misc/print.hpp | 3 +- src/interleaved_bloom_filter.cpp | 1 + src/misc/print.cpp | 3 +- .../hibf/test/iterator_test_template.hpp | 14 +++++--- test/performance/ibf/bit_vector_benchmark.cpp | 12 +++++-- test/unit/hibf/bit_vector_test.cpp | 21 ++++++++---- .../hibf/interleaved_bloom_filter_test.cpp | 23 +++++++------ test/unit/hibf/print_test.cpp | 3 +- 10 files changed, 83 insertions(+), 42 deletions(-) diff --git a/include/hibf/interleaved_bloom_filter.hpp b/include/hibf/interleaved_bloom_filter.hpp index e7a28f91..ea6faad7 100644 --- a/include/hibf/interleaved_bloom_filter.hpp +++ b/include/hibf/interleaved_bloom_filter.hpp @@ -18,16 +18,17 @@ #include // for size_t #include // for plus #include // for range, forward_range, input_range, range_reference_t, range_value_t -#include // for tie, operator==, tuple #include // for remove_cvref_t #include // for addressof #include // for vector -#include // for cereal_archive -#include // for config -#include +#include // for cereal_archive +#include // for config +#include // for aligned_allocator +#include // for bit_vector -#include // for CEREAL_SERIALIZE_FUNCTION_NAME +#include // for CEREAL_SERIALIZE_FUNCTION_NAME +#include // for base_class namespace seqan::hibf { diff --git a/include/hibf/misc/bit_vector.hpp b/include/hibf/misc/bit_vector.hpp index 51ef3173..dad1e7a3 100644 --- a/include/hibf/misc/bit_vector.hpp +++ b/include/hibf/misc/bit_vector.hpp @@ -21,15 +21,31 @@ #pragma once -#include -#include -#include -#include - -#include -#include - -#include +#include // for max, __for_each_fn, for_each, __all_of_fn, __any_of_fn, __fill_fn +#include // for countr_zero +#include // for assert +#include // for uint64_t +#include // for CHAR_BIT +#include // for strong_ordering, operator== +#include // for assignable_from +#include // for size_t, ptrdiff_t +#include // for identity +#include // for initializer_list +#include // for back_inserter, iter_reference_t, random_access_iterator_tag +#include // for assume_aligned, allocator_traits +#include // for __next_fn, distance, next, _Begin, _End, __distance_fn, begin +#include // for out_of_range +#include // for operator+, char_traits, to_string, operator""s +#include // for conditional_t +#include // for swap +#include // for allocator, vector + +#include // for cereal_archive +#include // for aligned_allocator +#include // for HIBF_CONSTEXPR_VECTOR + +#include // for CEREAL_SERIALIZE_FUNCTION_NAME +#include // for base_class namespace seqan::hibf { diff --git a/include/hibf/misc/print.hpp b/include/hibf/misc/print.hpp index e3e045b8..2aec7cbe 100644 --- a/include/hibf/misc/print.hpp +++ b/include/hibf/misc/print.hpp @@ -8,7 +8,8 @@ #include // for cout, ostream #include // for vector -#include // for counting_vector, bit_vector +#include // for counting_vector +#include // for bit_vector namespace seqan::hibf { diff --git a/src/interleaved_bloom_filter.cpp b/src/interleaved_bloom_filter.cpp index 9c60e426..0bc4d4a0 100644 --- a/src/interleaved_bloom_filter.cpp +++ b/src/interleaved_bloom_filter.cpp @@ -15,6 +15,7 @@ #include // for config, insert_iterator #include // for unordered_flat_set #include // for interleaved_bloom_filter, bin_count, bin_index, bin_size, hash_... +#include // for bit_vector #include // for divide_and_ceil #include // for HIBF_COMPILER_IS_GCC diff --git a/src/misc/print.cpp b/src/misc/print.cpp index 9dde501f..24b94a5e 100644 --- a/src/misc/print.cpp +++ b/src/misc/print.cpp @@ -8,7 +8,8 @@ #include // for range_value_t, empty #include // for vector -#include // for counting_vector, bit_vector +#include // for counting_vector +#include // for bit_vector #include // for print_t namespace seqan::hibf diff --git a/test/include/hibf/test/iterator_test_template.hpp b/test/include/hibf/test/iterator_test_template.hpp index 2171a0c8..6331b448 100644 --- a/test/include/hibf/test/iterator_test_template.hpp +++ b/test/include/hibf/test/iterator_test_template.hpp @@ -6,11 +6,15 @@ #pragma once -#include - -#include -#include -#include +#include // for AssertionResult, Message, TestPartResult, EXPECT_TRUE, EXPECT_EQ, EXPECT_FALSE, Typ... + +#include // for derived_from, same_as, copy_constructible, equality_comparable_with +#include // for size_t +#include // for random_access_iterator_tag, forward_iterator_tag, bidirectional_iterator_tag, input... +#include // for to_address +#include // for begin, cbegin, next, end, cend, distance, iterator_t, range_difference_t +#include // for remove_reference_t, conditional_t +#include // for as_const, addressof, pair #include diff --git a/test/performance/ibf/bit_vector_benchmark.cpp b/test/performance/ibf/bit_vector_benchmark.cpp index 76a05ac8..142ce34e 100644 --- a/test/performance/ibf/bit_vector_benchmark.cpp +++ b/test/performance/ibf/bit_vector_benchmark.cpp @@ -4,11 +4,17 @@ // Authored by: Rene Rahn -#include +#include // for Benchmark, State, BENCHMARK_CAPTURE, DoNotOptimize, BENCHMARK_MAIN -#include +#include // for __generate_fn, generate +#include // for int32_t, uint8_t +#include // for size_t +#include // for allocator +#include // for uniform_int_distribution, mt19937_64 +#include // for invoke_result_t +#include // for move, pair -#include +#include // for bit_vector seqan::hibf::bit_vector generate_bit_vector(size_t const size, size_t const seed) { diff --git a/test/unit/hibf/bit_vector_test.cpp b/test/unit/hibf/bit_vector_test.cpp index 17728802..3bc580aa 100644 --- a/test/unit/hibf/bit_vector_test.cpp +++ b/test/unit/hibf/bit_vector_test.cpp @@ -4,13 +4,20 @@ // Authored by: Rene Rahn -#include - -#include -#include - -#include -#include +#include // for AssertionResult, Message, TestPartResult, Test, EXPECT_TRUE + +#include // for for_each +#include // for convertible_to, same_as, integral +#include // for size_t +#include // for initializer_list +#include // for output_iterator, random_access_iterator_tag +#include // for _CBegin, _CEnd, cbegin, cend +#include // for out_of_range +#include // for as_const, move +#include // for allocator, vector + +#include // for bit_vector, operator&, operator^, operator| +#include // for iterator_fixture, gtest_registered_test_names_iterator_fixture_ // ---------------------------------------------------------------------------- // associated types diff --git a/test/unit/hibf/interleaved_bloom_filter_test.cpp b/test/unit/hibf/interleaved_bloom_filter_test.cpp index f3fce4a9..8688e216 100644 --- a/test/unit/hibf/interleaved_bloom_filter_test.cpp +++ b/test/unit/hibf/interleaved_bloom_filter_test.cpp @@ -2,18 +2,21 @@ // SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik // SPDX-License-Identifier: BSD-3-Clause -#include // for Message, TestPartResult, AssertionResult, EXPECT_EQ, TEST - -#include // for for_each -#include // for array -#include // for size_t -#include // for function -#include // for iota_view, operator==, _Iota, iota -#include // for logic_error, invalid_argument -#include // for vector, allocator +#include // for Test, Message, TestPartResult, AssertionResult, EXPECT_EQ, Test... + +#include // for __for_each_fn, for_each +#include // for array +#include // for operator<, strong_ordering +#include // for size_t +#include // for identity, function +#include // for iota_view, operator==, _Iota, iota, views +#include // for logic_error, invalid_argument +#include // for is_copy_assignable_v, is_copy_constructible_v, is_default_const... +#include // for vector, allocator #include // for insert_iterator, config -#include // for bin_index, interleaved_bloom_filter, bin_count, bin_size, hash_... +#include // for interleaved_bloom_filter, bin_index, bin_count, bin_size, hash_... +#include // for bit_vector #include // for expect_range_eq, EXPECT_RANGE_EQ TEST(ibf_test, construction) diff --git a/test/unit/hibf/print_test.cpp b/test/unit/hibf/print_test.cpp index 5a70343d..533e1b36 100644 --- a/test/unit/hibf/print_test.cpp +++ b/test/unit/hibf/print_test.cpp @@ -10,7 +10,8 @@ #include // for range_value_t #include // for allocator, vector -#include // for counting_vector, bit_vector +#include // for counting_vector +#include // for bit_vector #include // for print template