From 362fa4336e71dae5472e6a9f9ba06ff253ac5607 Mon Sep 17 00:00:00 2001 From: Stefan Boberg Date: Wed, 2 Feb 2022 10:48:51 +0100 Subject: clang-format --- zencore/include/zencore/refcount.h | 7 ++++--- zencore/include/zencore/zencore.h | 15 +++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'zencore/include') diff --git a/zencore/include/zencore/refcount.h b/zencore/include/zencore/refcount.h index 254a22db5..7befbb338 100644 --- a/zencore/include/zencore/refcount.h +++ b/zencore/include/zencore/refcount.h @@ -114,7 +114,7 @@ public: private: T* m_Ref = nullptr; - template + template friend class RefPtr; }; @@ -135,8 +135,9 @@ public: inline ~Ref() { m_Ref && m_Ref->Release(); } template - requires DerivedFrom - inline Ref(const Ref& Rhs) : Ref(Rhs.m_Ref) {} + requires DerivedFrom inline Ref(const Ref& Rhs) : Ref(Rhs.m_Ref) + { + } [[nodiscard]] inline bool IsNull() const { return m_Ref == nullptr; } inline explicit operator bool() const { return m_Ref != nullptr; } diff --git a/zencore/include/zencore/zencore.h b/zencore/include/zencore/zencore.h index 023b237cd..bd5e5a531 100644 --- a/zencore/include/zencore/zencore.h +++ b/zencore/include/zencore/zencore.h @@ -153,7 +153,7 @@ concept DerivedFrom = std::derived_from; template concept Integral = std::is_integral_v; template -concept SignedIntegral = Integral && std::is_signed_v; +concept SignedIntegral = Integral&& std::is_signed_v; template concept UnsignedIntegral = Integral && !std::is_signed_v; template @@ -162,7 +162,7 @@ concept Invocable = requires(F&& f, A&&... a) std::invoke(std::forward(f), std::forward(a)...); }; template -concept DerivedFrom = std::is_base_of_v && std::is_convertible_v; +concept DerivedFrom = std::is_base_of_v&& std::is_convertible_v; #endif #if defined(__cpp_lib_ranges) @@ -239,13 +239,12 @@ static_assert(sizeof(wchar_t) == 2, "wchar_t is expected to be two bytes in size # define ZEN_DEBUG_SECTION ZEN_CODE_SECTION(".zcold") #endif -namespace zen +namespace zen { +class AssertException : public std::logic_error { - class AssertException : public std::logic_error - { - public: - AssertException(const char* Msg) : std::logic_error(Msg) {} - }; +public: + AssertException(const char* Msg) : std::logic_error(Msg) {} +}; } // namespace zen -- cgit v1.2.3