Skip to content

Commit

Permalink
Further include fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Twon committed Nov 3, 2024
1 parent 7ac6c87 commit be6d769
Show file tree
Hide file tree
Showing 29 changed files with 63 additions and 8 deletions.
1 change: 1 addition & 0 deletions .iwyu.imp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[
{ include: ["<__fwd/sstream.h>", "private", "<sstream>", "public"] },
{ include: ["<__fwd/string_view.h>", "private", "<string_view>", "public"] },
{ include: ["<bits/chrono.h>", "private", "<chrono>", "public"] },
{ include: ["<boost/program_options/detail/parsers.hpp>", "private", "<boost/program_options/parsers.hpp>", "public"] },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <chrono>
#include <functional>
#include <optional>
#include <ostream>
#include <string_view>
#include <string>

Expand Down
8 changes: 7 additions & 1 deletion libraries/application/tests/po/options.tests.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
#include "morpheus/application/po/options.hpp"
#include "morpheus/application/version.hpp"
#include "morpheus/core/conformance/ranges.hpp"
#include "morpheus/logging.hpp"
#include "morpheus/redirect_stream.hpp"

#include <boost/program_options/options_description.hpp>

#include <boost/program_options/value_semantic.hpp>
#include <catch2/catch_test_macros.hpp>

#include <array>
#include <iostream>
#include <optional>
#include <string>
#include <utility>

namespace morpheus::application::po
{
Expand Down
1 change: 1 addition & 0 deletions libraries/core/src/morpheus/core/base/prerequisites.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include <morpheus/core/base/platform.hpp>

#if (MORPHEUS_BUILD_PLATFORM == MORPHEUS_TARGET_PLATFORM_PC_WINDOWS)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/meta/concepts/aggregate.hpp"
#include "morpheus/core/serialisation/concepts/write_serialiser.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/serialisation/adapters/std/ranges.hpp"

#include <array>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/conformance/date.hpp"
#include "morpheus/core/conversion/adapters/std/chrono.hpp"
#include "morpheus/core/meta/is_specialisation.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/serialisation/adapters/std/ranges.hpp"

#include <deque>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/conformance/expected.hpp"
#include "morpheus/core/meta/is_specialisation.hpp"
#include "morpheus/core/serialisation/concepts/read_serialisable.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/serialisation/adapters/std/ranges.hpp"

#include <forward_list>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/serialisation/adapters/std/ranges.hpp"

#include <list>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/serialisation/adapters/std/ranges.hpp"

#include <map>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/serialisation/concepts/read_serialisable.hpp"
#include "morpheus/core/serialisation/concepts/read_serialiser.hpp"
#include "morpheus/core/serialisation/concepts/write_serialisable.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/meta/is_specialisation.hpp"
#include "morpheus/core/serialisation/concepts/read_serialiser.hpp"
#include "morpheus/core/serialisation/concepts/read_serialisable.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/meta/is_specialisation.hpp"
#include "morpheus/core/serialisation/concepts/read_serialiser.hpp"
#include "morpheus/core/serialisation/concepts/read_serialisable.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/conformance/ranges.hpp"
#include "morpheus/core/meta/concepts/string.hpp"
#include "morpheus/core/serialisation/concepts/read_serialisable.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/serialisation/adapters/std/ranges.hpp"

#include <set>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/conformance/source_location.hpp"
#include "morpheus/core/serialisation/concepts/write_serialiser.hpp"
#include "morpheus/core/serialisation/concepts/write_serialisable.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/meta/is_specialisation.hpp"
#include "morpheus/core/serialisation/concepts/read_serialiser.hpp"
#include "morpheus/core/serialisation/concepts/read_serialisable.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/meta/is_specialisation.hpp"
#include "morpheus/core/serialisation/concepts/read_serialiser.hpp"
#include "morpheus/core/serialisation/concepts/read_serialisable.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/serialisation/adapters/std/ranges.hpp"

#include <unordered_map>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/serialisation/adapters/std/ranges.hpp"

#include <unordered_set>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/base/assert.hpp"
#include "morpheus/core/conformance/format.hpp"
#include "morpheus/core/conformance/ranges.hpp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#pragma once

// IWYU pragma: always_keep
#include "morpheus/core/serialisation/adapters/std/ranges.hpp"

#include <vector>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#include "morpheus/core/base/platform.hpp"
#include "morpheus/core/base/export.hpp"

#include <rapidjson/writer.h>
#include <rapidjson/ostreamwrapper.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@

#include "morpheus/serialisation/helpers.hpp"

#include <catch2/catch_all.hpp>
#include <catch2/catch_test_macros.hpp>

#include <chrono>
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <variant>

using namespace Catch;

Expand Down
13 changes: 9 additions & 4 deletions libraries/core/tests/serialisation/binary_writer.tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,18 @@
#include "morpheus/core/serialisation/adapters/std/unique_ptr.hpp"
#include "morpheus/core/serialisation/adapters/std/variant.hpp"
#include "morpheus/core/serialisation/adapters/std/vector.hpp"
#include "morpheus/core/serialisation/write_serialiser.hpp"
#include "morpheus/core/serialisation/exceptions.hpp"
#include "morpheus/core/serialisation/serialisers.hpp"

#include "morpheus/serialisation/helpers.hpp"

#include <catch2/catch_all.hpp>
#include <catch2/catch_test_macros.hpp>

#include <array>
#include <cstddef>
#include <cstdint>
#include <ios>
#include <span>
#include <string_view>
#include <vector>

using namespace Catch;

Expand Down
14 changes: 13 additions & 1 deletion libraries/core/tests/serialisation/json_writer.tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,23 @@
#include "morpheus/core/serialisation/serialisers.hpp"
#include "morpheus/core/serialisation/write_serialiser.hpp"

#include <catch2/catch_all.hpp>
#include <catch2/catch_template_test_macros.hpp>
#include <catch2/catch_test_macros.hpp>
#include <catch2/catch_tostring.hpp>

#include <charconv>
#include <chrono>
#include <cstdint>
#include <limits>
#include <memory>
#include <optional>
#include <sstream>
#include <string>
#include <system_error>
#include <tuple>
#include <utility>
#include <variant>
#include <vector>

using namespace Catch;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include <morpheus/gfx/platform/render_target.hpp>

#include <boost/program_options/options_description.hpp>

#include <cstdint>
#include <string>

namespace morpheus::gfx
Expand Down

0 comments on commit be6d769

Please sign in to comment.