Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MISC] IWYU #150

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions include/hibf/misc/divide_and_ceil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@

#pragma once

#include <cassert>
#include <concepts>
#include <cstddef> // for size_t
#include <limits>
#include <cassert> // for assert
#include <concepts> // for unsigned_integral
#include <cstddef> // for size_t

#include <hibf/platform.hpp>

Expand Down
3 changes: 2 additions & 1 deletion src/build/construct_ibf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

#include <cassert> // for assert
#include <cinttypes> // for uint64_t
#include <cmath> // for ceil
#include <cstddef> // for size_t
Expand All @@ -14,7 +15,7 @@
#include <hibf/build/update_parent_kmers.hpp> // for update_parent_kmers
#include <hibf/config.hpp> // for config
#include <hibf/contrib/robin_hood.hpp> // for unordered_flat_set
#include <hibf/interleaved_bloom_filter.hpp> // for interleaved_bloom_filter, bin_count, bin_size, hash_fun...
#include <hibf/interleaved_bloom_filter.hpp> // for interleaved_bloom_filter, bin_count, bin_size, hash_function_c...
#include <hibf/layout/graph.hpp> // for graph
#include <hibf/misc/divide_and_ceil.hpp> // for divide_and_ceil
#include <hibf/misc/timer.hpp> // for concurrent, timer
Expand Down
13 changes: 7 additions & 6 deletions src/layout/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
// SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

#include <algorithm> // for max, copy
#include <cassert> // for assert
#include <cstddef> // for size_t
#include <optional> // for nullopt, optional
#include <ranges> // for __prev_fn, prev
#include <vector> // for vector
#include <algorithm> // for max, copy
#include <cassert> // for assert
#include <cstddef> // for size_t
#include <initializer_list> // for initializer_list
#include <optional> // for optional, nullopt
#include <ranges> // for __prev_fn, prev
#include <vector> // for vector

#include <hibf/layout/graph.hpp> // for graph
#include <hibf/layout/layout.hpp> // for layout
Expand Down
9 changes: 5 additions & 4 deletions test/performance/example/example_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
// SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

#include <benchmark/benchmark.h>
#include <benchmark/benchmark.h> // for State, Benchmark, Counter, BENCHMARK, BENCHMARK_MAIN

#include <algorithm>
#include <cstring>
#include <vector>
#include <algorithm> // for copy, fill_n, copy_n
#include <cstring> // for memset, size_t
#include <string> // for basic_string
#include <vector> // for allocator, vector

inline benchmark::Counter bytes_per_second(size_t bytes)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
#include <ranges> // for _Size, size
#include <span> // for span
#include <stdexcept> // for invalid_argument
#include <string> // for basic_string
#include <tuple> // for make_tuple
#include <vector> // for allocator, vector

#include <hibf/config.hpp> // for config, insert_iterator
#include <hibf/config.hpp> // for insert_iterator, config
#include <hibf/hierarchical_interleaved_bloom_filter.hpp> // for hierarchical_interleaved_bloom_filter

inline benchmark::Counter hashes_per_second(size_t const count)
Expand Down
4 changes: 2 additions & 2 deletions test/performance/ibf/binning_bitvector_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#include <cinttypes> // for uint64_t
#include <cstddef> // for size_t
#include <functional> // for identity
#include <memory> // for allocator
#include <vector> // for allocator, vector

#include <hibf/interleaved_bloom_filter.hpp> // for interleaved_bloom_filter
#include <hibf/interleaved_bloom_filter.hpp> // for binning_bitvector

#include <sdsl/int_vector.hpp> // for operator-

Expand Down
3 changes: 2 additions & 1 deletion test/performance/ibf/interleaved_bloom_filter_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
#include <limits> // for numeric_limits
#include <random> // for uniform_int_distribution, mt19937_64
#include <ranges> // for transform_view, all_t, iota_view, _Partial, _Transform
#include <string> // for basic_string
#include <tuple> // for make_tuple
#include <vector> // for vector, allocator

#include <hibf/contrib/std/detail/adaptor_base.hpp> // for operator|
#include <hibf/contrib/std/pair.hpp> // for operator==
#include <hibf/contrib/std/pair.hpp> // for operator==, pair
#include <hibf/contrib/std/to.hpp> // for to
#include <hibf/contrib/std/zip_view.hpp> // for zip_view, operator==, zip, zip_fn
#include <hibf/interleaved_bloom_filter.hpp> // for bin_index, interleaved_bloom_filter, bin_count, bin_size
Expand Down
8 changes: 3 additions & 5 deletions test/unit/hibf/build/bin_size_in_bits_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
// SPDX-FileCopyrightText: 2016-2023, Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause

#include <gtest/gtest.h> // for Message, TestPartResult, EXPECT_EQ, Test, ASSERT_EQ, TestInfo, TEST
#include <gtest/gtest.h> // for Test, TestInfo, EXPECT_EQ, Message, TEST, TestPartResult

#include <cstddef> // for size_t
#include <optional> // for optional
#include <vector> // for vector, allocator
#include <vector> // for allocator

#include <hibf/build/bin_size_in_bits.hpp> // for graph
#include <hibf/build/bin_size_in_bits.hpp> // for bin_size_in_bits

TEST(bin_size_in_bits_test, general)
{
Expand Down