Skip to content

Commit

Permalink
IWYU fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Nov 8, 2024
1 parent dc9ac92 commit 4f6b8d4
Show file tree
Hide file tree
Showing 25 changed files with 20 additions and 11 deletions.
1 change: 1 addition & 0 deletions cpp/mrc/benchmarks/bench_baselines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <benchmark/benchmark.h>
#include <rxcpp/rx.hpp>

#include <algorithm>
#include <chrono>
#include <cstddef>
#include <iostream>
Expand Down
1 change: 1 addition & 0 deletions cpp/mrc/benchmarks/bench_segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <nlohmann/json.hpp>
#include <rxcpp/rx.hpp>

#include <algorithm>
#include <chrono>
#include <cstddef>
#include <iostream>
Expand Down
2 changes: 1 addition & 1 deletion cpp/mrc/include/mrc/benchmarking/tracer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <glog/logging.h>
#include <nlohmann/json.hpp>

#include <array>
#include <chrono>
#include <cstddef>
#include <map>
Expand All @@ -31,6 +30,7 @@
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include <vector>

// IWYU pragma: no_include <compare> (Issues with this header)
Expand Down
2 changes: 1 addition & 1 deletion cpp/mrc/include/mrc/channel/buffered_channel.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: Copyright (c) 2021-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-FileCopyrightText: Copyright (c) 2021-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
1 change: 1 addition & 0 deletions cpp/mrc/include/mrc/modules/module_registry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <nlohmann/json.hpp>

#include <algorithm>
#include <functional>
#include <map>
#include <memory>
Expand Down
3 changes: 2 additions & 1 deletion cpp/mrc/include/mrc/utils/type_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@

#include <boost/type_index.hpp>

#include <array>
#include <climits>
#include <cstddef>
#include <cstdint>
#include <string>
#include <type_traits>
#include <typeindex>
#include <utility>
#include <variant>

namespace mrc {
Expand Down
1 change: 1 addition & 0 deletions cpp/mrc/src/internal/codable/codable_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <glog/logging.h>
#include <google/protobuf/any.pb.h>

#include <algorithm>
#include <cstdint>
#include <optional>
#include <ostream>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <glog/logging.h>
#include <google/protobuf/any.pb.h>

#include <algorithm>
#include <sstream>
#include <utility>

Expand Down
1 change: 0 additions & 1 deletion cpp/mrc/src/internal/memory/device_resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@

#include <sstream>
#include <string>
#include <thread>
#include <utility>

namespace mrc::memory {
Expand Down
1 change: 0 additions & 1 deletion cpp/mrc/src/internal/memory/host_resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <memory>
#include <ostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions cpp/mrc/src/public/benchmarking/tracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

#include <nlohmann/json.hpp>

#include <algorithm>
#include <mutex>

namespace mrc::benchmarking {
Expand Down
2 changes: 2 additions & 0 deletions cpp/mrc/src/public/core/logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include "mrc/core/logging.hpp"

#include <glog/flags.h>

#include <atomic>

namespace {
Expand Down
1 change: 1 addition & 0 deletions cpp/mrc/src/tests/test_control_plane_components.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

#include <gtest/gtest.h>

#include <algorithm>
#include <atomic>
#include <cstddef>
#include <cstdint>
Expand Down
1 change: 0 additions & 1 deletion cpp/mrc/src/tests/test_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
#include <optional>
#include <ostream>
#include <string>
#include <thread>
#include <utility>
#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion cpp/mrc/src/tests/test_next.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
#include "mrc/channel/ingress.hpp"
#include "mrc/data/reusable_pool.hpp"
#include "mrc/edge/edge_builder.hpp"
#include "mrc/edge/edge_writable.hpp"
#include "mrc/node/generic_node.hpp"
#include "mrc/node/generic_sink.hpp"
#include "mrc/node/generic_source.hpp"
#include "mrc/node/operators/conditional.hpp"
#include "mrc/node/operators/router.hpp"
#include "mrc/node/readable_endpoint.hpp"
#include "mrc/node/rx_execute.hpp"
#include "mrc/node/rx_node.hpp"
Expand Down
1 change: 1 addition & 0 deletions cpp/mrc/src/tests/test_ranges.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <gtest/gtest.h>

#include <algorithm>
#include <utility>
#include <vector>

Expand Down
1 change: 1 addition & 0 deletions cpp/mrc/tests/logging/test_logging.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "mrc/core/logging.hpp"

#include <glog/flags.h>
#include <glog/logging.h>

namespace mrc {
Expand Down
1 change: 1 addition & 0 deletions python/mrc/_pymrc/include/pymrc/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "mrc/segment/object.hpp"

#include <nlohmann/json_fwd.hpp>
#include <pybind11/pytypes.h>
#include <rxcpp/rx.hpp>

#include <functional> // for function
Expand Down
1 change: 0 additions & 1 deletion python/mrc/_pymrc/include/pymrc/utilities/object_cache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

#include <cstddef>
#include <functional>
#include <map>
#include <memory>
#include <mutex>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#pragma once

#include <pybind11/cast.h>
#include <pybind11/detail/descr.h>
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>

Expand Down
1 change: 1 addition & 0 deletions python/mrc/_pymrc/src/utilities/object_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <pybind11/pytypes.h>
#include <pylifecycle.h>

#include <map>
#include <mutex>
#include <ostream>
#include <stdexcept>
Expand Down
1 change: 0 additions & 1 deletion python/mrc/_pymrc/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include <glog/logging.h>
#include <nlohmann/json.hpp>
#include <pybind11/cast.h>
#include <pybind11/detail/internals.h>
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>
#include <pyerrors.h>
Expand Down
1 change: 1 addition & 0 deletions python/mrc/_pymrc/tests/test_object_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "test_pymrc.hpp"

#include "pymrc/utilities/object_cache.hpp"
#include "pymrc/utilities/object_wrappers.hpp"

#include <gtest/gtest.h>
#include <pybind11/cast.h>
Expand Down
1 change: 0 additions & 1 deletion python/mrc/benchmarking/trace_statistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#include "pymrc/utils.hpp"

#include <nlohmann/json.hpp>
#include <pybind11/cast.h>
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>
Expand Down
1 change: 1 addition & 0 deletions python/mrc/tests/sample_modules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <pybind11/pybind11.h>
#include <pybind11/pytypes.h>

#include <algorithm>
#include <sstream>
#include <vector>

Expand Down

0 comments on commit 4f6b8d4

Please sign in to comment.