diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-02 18:14:48 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-02 19:29:39 +0100 |
commit | 932f4cdc07c0d5894621f51ad45b286e6c2e4415 (patch) | |
tree | 4df22157a73c65baebbff849cfb02b9fecd7b466 | |
parent | Disable warnings on generated/wrapper code (diff) | |
download | ilt-932f4cdc07c0d5894621f51ad45b286e6c2e4415.tar.bz2 ilt-932f4cdc07c0d5894621f51ad45b286e6c2e4415.tar.xz ilt-932f4cdc07c0d5894621f51ad45b286e6c2e4415.zip |
Latest clang-formatting
-rw-r--r-- | game/network/network.h | 3 | ||||
-rw-r--r-- | lib/collection.hpp | 3 | ||||
-rw-r--r-- | lib/stream_support.hpp | 4 | ||||
-rw-r--r-- | lib/worker.h | 6 |
4 files changed, 10 insertions, 6 deletions
diff --git a/game/network/network.h b/game/network/network.h index 3be7943..2ce45f7 100644 --- a/game/network/network.h +++ b/game/network/network.h @@ -42,7 +42,8 @@ protected: public: template<typename L, typename... Params> std::shared_ptr<L> - addLink(glm::vec3 a, glm::vec3 b, Params &&... params) requires std::is_base_of_v<T, L> + addLink(glm::vec3 a, glm::vec3 b, Params &&... params) + requires std::is_base_of_v<T, L> { const auto node1 = nodeAt(a), node2 = nodeAt(b); auto l {links.template create<L>(node1, node2, std::forward<Params>(params)...)}; diff --git a/lib/collection.hpp b/lib/collection.hpp index 4a54124..65d72f3 100644 --- a/lib/collection.hpp +++ b/lib/collection.hpp @@ -16,7 +16,8 @@ public: template<typename T = Object, typename... Params> auto - create(Params &&... params) requires std::is_base_of_v<Object, T> + create(Params &&... params) + requires std::is_base_of_v<Object, T> { if constexpr (shared) { auto obj = std::make_shared<T>(std::forward<Params>(params)...); diff --git a/lib/stream_support.hpp b/lib/stream_support.hpp index 3f0165c..5238234 100644 --- a/lib/stream_support.hpp +++ b/lib/stream_support.hpp @@ -8,8 +8,8 @@ #include <type_traits> template<typename T> -concept spanable = std::is_constructible_v<std::span<const typename T::value_type>, T> && !std::is_same_v<char, - std::decay_t<typename T::value_type>>; +concept spanable = std::is_constructible_v<std::span<const typename T::value_type>, T> && ! +std::is_same_v<char, std::decay_t<typename T::value_type>>; namespace std { template<typename T, std::size_t L> diff --git a/lib/worker.h b/lib/worker.h index de7d973..7cd06f9 100644 --- a/lib/worker.h +++ b/lib/worker.h @@ -24,7 +24,8 @@ public: template<typename T, typename... Params> void - addWork(Params &&... params) requires std::is_base_of_v<Work, T> + addWork(Params &&... params) + requires std::is_base_of_v<Work, T> { addWork(std::make_unique<T>(std::forward<Params>(params)...)); } @@ -49,7 +50,8 @@ class Worker { public: template<typename T, typename... Params> void - addWork(Params &&... params) requires std::is_base_of_v<Work, T> + addWork(Params &&... params) + requires std::is_base_of_v<Work, T> { T(std::forward<Params>(params)...).doWork(); } |