Skip to content

Commit ce134bd

Browse files
style(iwyu): add all missing includes found by tool
Signed-off-by: Ingo Müller <ingomueller@google.com>
1 parent f6127e1 commit ce134bd

72 files changed

Lines changed: 557 additions & 111 deletions

File tree

Some content is hidden

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

export/planloader/planloader.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22

33
#include "planloader.h"
44

5+
#include <absl/status/status.h>
6+
#include <absl/status/statusor.h>
57
#include <substrait/common/Io.h>
8+
#include <substrait/proto/plan.pb.h>
9+
#include <cstring>
610
#include <limits>
11+
#include <string>
712

813
extern "C" {
914

export/planloader/planloader.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
/* SPDX-License-Identifier: Apache-2.0 */
22

3-
#include <substrait/common/Io.h>
3+
#include <stdint.h>
4+
5+
namespace io {
6+
namespace substrait {
7+
enum class PlanFileFormat;
8+
} // namespace substrait
9+
} // namespace io
410

511
extern "C" {
612

export/planloader/tests/PlanLoaderTest.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/* SPDX-License-Identifier: Apache-2.0 */
22

3-
#include <gmock/gmock-matchers.h>
4-
#include <gtest/gtest.h>
5-
#include <functional>
3+
#include <string>
64

75
#include "../planloader.h"
6+
#include "gmock/gmock.h"
7+
#include "gtest/gtest.h"
8+
#include "substrait/common/Io.h"
89
#include "substrait/proto/plan.pb.h"
910

1011
namespace io::substrait::textplan {

include/substrait/common/Exceptions.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
#pragma once
44

55
#include <fmt/format.h>
6-
#include <memory>
7-
#include <utility>
6+
#include <stddef.h>
7+
#include <exception>
8+
#include <string>
9+
10+
#include <fmt/core.h>
811

912
namespace io::substrait::common {
1013
namespace error_code {

include/substrait/common/Io.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#pragma once
44

5+
#include <absl/log/absl_check.h>
6+
#include <absl/status/status.h>
57
#include <string_view>
68

79
#include "absl/status/statusor.h"

include/substrait/expression/DecimalLiteral.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <cstdint>
66
#include <string>
7+
#include <utility>
78

89
namespace substrait::proto {
910
class Expression_Literal_Decimal;

include/substrait/function/Extension.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
#include <vector>
99

1010
#include "substrait/function/Function.h"
11-
#include "substrait/function/FunctionSignature.h"
12-
#include "substrait/type/Type.h"
1311

1412
namespace io::substrait {
1513

include/substrait/function/Function.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,19 @@
22

33
#pragma once
44

5+
#include <memory>
56
#include <optional>
7+
#include <string>
8+
#include <vector>
69

7-
#include "substrait/function/FunctionSignature.h"
810
#include "substrait/type/Type.h"
911

12+
namespace io {
13+
namespace substrait {
14+
struct FunctionSignature;
15+
} // namespace substrait
16+
} // namespace io
17+
1018
namespace io::substrait {
1119

1220
struct FunctionArgument {

include/substrait/function/FunctionLookup.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,18 @@
22

33
#pragma once
44

5+
#include <memory>
6+
#include <string>
7+
#include <utility>
8+
59
#include "substrait/function/Extension.h"
6-
#include "substrait/function/FunctionSignature.h"
10+
#include "substrait/function/Function.h"
11+
12+
namespace io {
13+
namespace substrait {
14+
struct FunctionSignature;
15+
} // namespace substrait
16+
} // namespace io
717

818
namespace io::substrait {
919

include/substrait/type/Type.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
#pragma once
44

5-
#include <iostream>
5+
#include <stdint.h>
66
#include <memory>
7-
#include <unordered_map>
7+
#include <string>
88
#include <utility>
99
#include <vector>
1010

0 commit comments

Comments
 (0)