Skip to content

Commit 877edd0

Browse files
committed
Further prepratory formatting
1 parent a7ef4a4 commit 877edd0

13 files changed

Lines changed: 24 additions & 29 deletions

File tree

libraries/core/src/morpheus/core/base/scoped_action.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class HoldReturnType;
2929
/// Specialisation for entry action with a void return type.
3030
template <>
3131
class HoldReturnType<void>
32-
{};
32+
{
33+
};
3334

3435
/// \class HoldReturnType
3536
/// Holding type to own the return value of an entry action to a scoped action.
@@ -84,7 +85,7 @@ class [[nodiscard, maybe_unused]] ScopedAction : public detail::HoldReturnType<s
8485
}
8586

8687
constexpr ScopedAction(ScopedAction const&) = delete;
87-
constexpr ScopedAction(ScopedAction &&) = delete;
88+
constexpr ScopedAction(ScopedAction&&) = delete;
8889

8990
constexpr ScopedAction operator=(ScopedAction const&) = delete;
9091
constexpr ScopedAction operator=(ScopedAction&&) = delete;

libraries/core/src/morpheus/core/conformance/unreachable.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ namespace morpheus
1818
#endif
1919
}
2020

21-
}
21+
} // namespace morpheus

libraries/core/src/morpheus/core/conversion/adapters/enum.hpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@ struct StringConverter<E>
2323
/// \param value The enum value to convert.
2424
/// \return A string representation of the enum value.
2525
/// \note The string representation is the name of the enum value as defined in the enum declaration.
26-
static std::string toString(E const value)
27-
{
28-
return std::string(magic_enum::enum_name(value));
29-
}
26+
static std::string toString(E const value) { return std::string(magic_enum::enum_name(value)); }
3027

3128
/// Convert a string representation to an enum value.
3229
/// \param value The string representation to convert.

libraries/core/src/morpheus/core/conversion/adapters/std/thread.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// IWYU pragma: always_keep
44
#include "morpheus/core/conformance/format.hpp"
5-
#include "morpheus/core/conformance/format.hpp"
65

76
#include <thread>
87

libraries/core/src/morpheus/core/functional/concepts/hash.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace morpheus::functional::concepts
1212
/// <a href="https://eel.is/c++draft/hash.requirements">[hash.requirements]</a>, details at
1313
/// <a href="https://en.cppreference.com/w/cpp/named_req/Hash">Hash</a>.
1414
template <typename T, typename Arg>
15-
concept Hash = requires(T t){
15+
concept Hash = requires(T t) {
1616
requires std::copy_constructible<T>;
1717
requires std::destructible<T>;
1818
requires Function<T, Arg>;

libraries/core/src/morpheus/core/serialisation/concepts/write_serialiser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ concept WriteSerialiser = requires(Serialiser s) {
1515
template <typename Serialiser>
1616
concept NotWriteSerialiser = not WriteSerialiser<Serialiser>;
1717

18-
} // morpheus::serialisation::concepts
18+
} // namespace morpheus::serialisation::concepts

libraries/core/src/morpheus/core/serialisation/concepts/writer.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#pragma once
22

3+
#include <concepts>
34
#include <cstddef>
45
#include <cstdint>
5-
#include <concepts>
66
#include <optional>
77
#include <span>
88
#include <string_view>
@@ -14,8 +14,7 @@ namespace morpheus::serialisation::concepts
1414
/// \concept Writer
1515
/// Constraints for a type capable of writing the fundamental serialisable types.
1616
template <typename T>
17-
concept Writer = requires(T t)
18-
{
17+
concept Writer = requires(T t) {
1918
{ t.isTextual() } -> std::same_as<bool>;
2019

2120
{ t.beginSequence(std::optional<std::size_t>{}) } -> std::same_as<void>;
@@ -28,7 +27,7 @@ concept Writer = requires(T t)
2827
{ t.endNullable() } -> std::same_as<void>;
2928

3029
{ t.write(bool{}) } -> std::same_as<void>;
31-
{ t.write(std::uint8_t{}) } ->std::same_as<void>;
30+
{ t.write(std::uint8_t{}) } -> std::same_as<void>;
3231
{ t.write(std::int8_t{}) } -> std::same_as<void>;
3332
{ t.write(std::uint16_t{}) } -> std::same_as<void>;
3433
{ t.write(std::int16_t{}) } -> std::same_as<void>;
@@ -42,4 +41,4 @@ concept Writer = requires(T t)
4241
{ t.write(std::span<std::byte>{}) } -> std::same_as<void>;
4342
};
4443

45-
} // morpheus::serialisation::concepts
44+
} // namespace morpheus::serialisation::concepts

libraries/core/src/morpheus/core/serialisation/concepts/writer_archetype.hpp

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

33
#include "morpheus/core/serialisation/write_serialiser_decl.hpp"
44

5+
#include <concepts>
56
#include <cstddef>
67
#include <cstdint>
7-
#include <concepts>
88
#include <optional>
99
#include <span>
1010
#include <string_view>
@@ -47,7 +47,8 @@ struct WriterArchetype
4747
consteval void endNullable();
4848

4949
/// Write any arithmetic type to the serialisation.
50-
template <typename T> requires std::is_arithmetic_v<T>
50+
template <typename T>
51+
requires std::is_arithmetic_v<T>
5152
consteval void write(T const value);
5253

5354
/// Write a string to the serialisation.
@@ -59,4 +60,4 @@ struct WriterArchetype
5960

6061
using WriteSerialiserArchtype = serialisation::WriteSerialiser<WriterArchetype>;
6162

62-
} // morpheus::serialisation::concepts
63+
} // namespace morpheus::serialisation::concepts

libraries/core/tests/containers/concepts/associative.tests.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
#include "morpheus/containers/concepts/archetypes/associative.hpp"
22
#include "morpheus/core/containers/concepts/associative.hpp"
33

4-
#include <catch2/catch_test_macros.hpp>
54
#include <catch2/catch_template_test_macros.hpp>
5+
#include <catch2/catch_test_macros.hpp>
66

77
#include <cstdint>
88
#include <deque>
99
#include <forward_list>
1010
#include <list>
1111
#include <map>
1212
#include <set>
13-
#include <unordered_set>
1413
#include <unordered_map>
14+
#include <unordered_set>
1515
#include <vector>
1616

1717
namespace morpheus::containers::concepts
1818
{
1919

20-
TEMPLATE_TEST_CASE("Verify associative containers concepts", "[morpheus.containers.concepts.associative]", bool, std::int8_t, std::uint8_t, std::int16_t, std::uint16_t, std::int32_t, std::uint32_t, std::int64_t, std::uint64_t, float, double)
20+
TEMPLATE_TEST_CASE("Verify associative containers concepts", "[morpheus.containers.concepts.associative]", bool, std::int8_t, std::uint8_t, std::int16_t,
21+
std::uint16_t, std::int32_t, std::uint32_t, std::int64_t, std::uint64_t, float, double)
2122
{
2223
SECTION("Archetype test")
2324
{

libraries/gfx/gl4/src/morpheus/gfx/gl4/wgl/adapter.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ namespace morpheus::gfx::gl4::wgl
1414
///
1515
using Adapter = gfx::Adapter<std::string>;
1616

17-
1817
concurrency::Generator<Adapter> enumerateAdapters();
1918

2019
} // namespace morpheus::gfx::gl4::wgl

0 commit comments

Comments
 (0)