From 6a814bd17757ee4196576197de8169a1cf25270b Mon Sep 17 00:00:00 2001 From: light7734 Date: Fri, 25 Jul 2025 15:07:13 +0330 Subject: [PATCH] style: minor fixes --- modules/debug/public/assertions.hpp | 1 - modules/test/public/test.hpp | 11 +++-------- modules/time/private/timer.test.cpp | 2 +- modules/window/public/window.hpp | 1 - 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/modules/debug/public/assertions.hpp b/modules/debug/public/assertions.hpp index 1ef8eee..7c49594 100644 --- a/modules/debug/public/assertions.hpp +++ b/modules/debug/public/assertions.hpp @@ -12,7 +12,6 @@ struct FailedAssertion: std::exception } }; - template constexpr void ensure(Expression_T &&expression, std::format_string fmt, Args &&...args) { diff --git a/modules/test/public/test.hpp b/modules/test/public/test.hpp index 7282202..8c8e59e 100644 --- a/modules/test/public/test.hpp +++ b/modules/test/public/test.hpp @@ -12,23 +12,18 @@ concept printable = requires(std::ostream &os, T t) { { os << t } -> std::same_as; }; -template< - class T, - auto expr = - [] { - }> +// clang-format off +template concept test = requires(T test) { { test.name } -> printable; - { test = expr } -> std::same_as; }; +// clang-format on } // namespace concepts - namespace details { - class Registry { public: diff --git a/modules/time/private/timer.test.cpp b/modules/time/private/timer.test.cpp index 0c84bfe..bc774fc 100644 --- a/modules/time/private/timer.test.cpp +++ b/modules/time/private/timer.test.cpp @@ -23,7 +23,7 @@ lt::test::Suite raii = [] { }; lt::test::Case { "plenty" } = [] { - for (auto i : std::views::iota(0, 100'001)) + for (auto idx : std::views::iota(0, 100'001)) { Timer {}; } diff --git a/modules/window/public/window.hpp b/modules/window/public/window.hpp index 0790fdb..e9989c5 100644 --- a/modules/window/public/window.hpp +++ b/modules/window/public/window.hpp @@ -6,7 +6,6 @@ namespace lt { class Event; - class Window { public: