From 950cf865ba59b50f7ea0589b26391080d8974d25 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 1 Jun 2024 14:08:26 +0100 Subject: Reformat with new clang-format --- gfx/models/vertex.h | 4 ++-- lib/collections.h | 8 ++------ lib/enumDetails.h | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/gfx/models/vertex.h b/gfx/models/vertex.h index 3c6215f..5b858de 100644 --- a/gfx/models/vertex.h +++ b/gfx/models/vertex.h @@ -8,8 +8,8 @@ public: #ifndef __cpp_aggregate_paren_init constexpr Vertex( RelativePosition3D pos, TextureRelCoord texCoord, Normal3D normal, RGBA colour = {}, GLuint material = 0) : - pos {std::move(pos)}, - texCoord {std::move(texCoord)}, normal {std::move(normal)}, colour {std::move(colour)}, material {material} + pos {std::move(pos)}, texCoord {std::move(texCoord)}, normal {std::move(normal)}, colour {std::move(colour)}, + material {material} { } #endif diff --git a/lib/collections.h b/lib/collections.h index 5711fc3..ea5d5dc 100644 --- a/lib/collections.h +++ b/lib/collections.h @@ -10,12 +10,8 @@ template concept SequentialCollection = requires(T c) { - { - c.size() - } -> std::integral; - { - c.data() - } -> std::same_as; + { c.size() } -> std::integral; + { c.data() } -> std::same_as; }; template concept IterableCollection = std::is_same_v().begin()), decltype(std::declval().end())>; diff --git a/lib/enumDetails.h b/lib/enumDetails.h index b6ff046..c68f7e8 100644 --- a/lib/enumDetails.h +++ b/lib/enumDetails.h @@ -108,8 +108,8 @@ private: constexpr static auto valid_count {std::count_if(valid_flags.begin(), valid_flags.end(), std::identity {})}; constexpr static auto - lookup(const auto key, const auto & search, const auto & out) - -> std::optional::value_type> + lookup(const auto key, const auto & search, + const auto & out) -> std::optional::value_type> { if (const auto itr = std::find(search.begin(), search.end(), key); itr != search.end()) { return out[static_cast(std::distance(search.begin(), itr))]; -- cgit v1.2.3