Skip to content

Commit 2918f45

Browse files
include-what-you-use 0.25 fixes
1 parent c2a15c5 commit 2918f45

49 files changed

Lines changed: 92 additions & 118 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

art.hpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
#define UNODB_DETAIL_ART_HPP
44

55
// Should be the first include
6-
#include "global.hpp" // IWYU pragma: keep
6+
#include "global.hpp"
77

8-
// IWYU pragma: no_include <__ostream/basic_ostream.h>
98

109
#include <cstddef>
1110
#include <cstdint>
1211
#include <iostream>
13-
#include <limits>
1412
#include <optional>
1513
#include <stack>
1614
#include <type_traits>
@@ -27,7 +25,7 @@ namespace unodb {
2725
namespace detail {
2826

2927
template <typename Key, typename Value>
30-
class inode; // IWYU pragma: keep
28+
class inode;
3129

3230
template <typename Key, typename Value>
3331
class inode_4;

art_common.hpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,13 @@
33
#define UNODB_DETAIL_ART_COMMON_HPP
44

55
// Should be the first include
6-
#include "global.hpp" // IWYU pragma: keep
6+
#include "global.hpp"
77

8-
// IWYU pragma: no_include <__fwd/ostream.h>
9-
// IWYU pragma: no_include <ostream>
10-
// IWYU pragma: no_include <ostream.h>
11-
12-
#include <cmath>
138
#include <cstddef>
149
#include <cstdint>
1510
#include <cstring>
1611
#include <iomanip>
17-
#include <iosfwd> // IWYU pragma: keep
12+
#include <iosfwd>
1813
#include <iostream>
1914
#include <span>
2015
#include <string_view>

art_internal.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// Copyright 2021-2025 UnoDB contributors
22

33
// Should be the first include
4-
#include "global.hpp" // IWYU pragma: keep
4+
#include "global.hpp"
55

66
// IWYU pragma: no_include <__ostream/basic_ostream.h>
7-
// IWYU pragma: no_include <span>
87

98
#include "art_internal.hpp" // IWYU pragma: keep
109

art_internal.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
#define UNODB_DETAIL_ART_INTERNAL_HPP
44

55
// Should be the first include
6-
#include "global.hpp" // IWYU pragma: keep
6+
#include "global.hpp"
77

8+
// IWYU pragma: no_include <__cstddef/byte.h>
89
// IWYU pragma: no_include <_string.h>
910

1011
#include <algorithm>

art_internal_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#define UNODB_DETAIL_ART_INTERNAL_IMPL_HPP
44

55
// Should be the first include
6-
#include "global.hpp" // IWYU pragma: keep
6+
#include "global.hpp"
77

88
#include <algorithm>
99
#include <array>

benchmark/micro_benchmark.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,13 @@
33
// Should be the first include
44
#include "global.hpp" // IWYU pragma: keep
55

6+
// IWYU pragma: no_include <__vector/vector.h>
7+
// IWYU pragma: no_include <array>
68
// IWYU pragma: no_include <string>
7-
// IWYU pragma: no_include <tuple>
8-
// IWYU pragma: no_include <vector>
9-
// IWYU pragma: no_forward_declare unodb::visitor
109

11-
#include <array>
1210
#include <cstddef>
1311
#include <cstdint>
14-
#include <utility> // IWYU pragma: keep
12+
#include <tuple>
1513

1614
#include <benchmark/benchmark.h>
1715

benchmark/micro_benchmark_concurrency.hpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33
#define UNODB_DETAIL_MICRO_BENCHMARK_CONCURRENCY_HPP
44

55
// Should be the first include
6-
#include "global.hpp" // IWYU pragma: keep
7-
8-
#include <memory>
9-
#include <thread>
10-
#include <vector>
6+
#include "global.hpp"
117

128
#include <benchmark/benchmark.h>
139

benchmark/micro_benchmark_key_prefix.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// Should be the first include
44
#include "global.hpp" // IWYU pragma: keep
55

6-
// IWYU pragma: no_include <string>
6+
// IWYU pragma: no_include <__vector/vector.h>
77

88
#include <algorithm>
99
#include <cstdint>
10-
#include <vector>
10+
#include <vector> // IWYU pragma: keep
1111

1212
#include <benchmark/benchmark.h>
1313

benchmark/micro_benchmark_mutex.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// Should be the first include
44
#include "global.hpp" // IWYU pragma: keep
55

6-
// IWYU pragma: no_include <string>
7-
86
#include <thread>
97

108
#include <benchmark/benchmark.h>

benchmark/micro_benchmark_n16.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// Should be the first include
44
#include "global.hpp" // IWYU pragma: keep
55

6-
// IWYU pragma: no_include <string>
7-
86
#include <benchmark/benchmark.h>
97

108
#include "micro_benchmark_node_utils.hpp"

0 commit comments

Comments
 (0)