From 2d8fed40bd0d0f8144783b6b344dc79944291b72 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 23 Apr 2026 13:31:17 +0200 Subject: chore: organize includes --- libs/kstd/include/kstd/bits/format/context.hpp | 3 +-- libs/kstd/include/kstd/stack | 1 + libs/kstd/include/kstd/string | 7 +++---- libs/kstd/include/kstd/units | 5 ++--- libs/kstd/tests/src/flat_map.cpp | 1 + libs/kstd/tests/src/vector.cpp | 4 ++-- 6 files changed, 10 insertions(+), 11 deletions(-) (limited to 'libs/kstd') diff --git a/libs/kstd/include/kstd/bits/format/context.hpp b/libs/kstd/include/kstd/bits/format/context.hpp index 7f392a0..1883fc8 100644 --- a/libs/kstd/include/kstd/bits/format/context.hpp +++ b/libs/kstd/include/kstd/bits/format/context.hpp @@ -3,9 +3,8 @@ // IWYU pragma: private, include -#include "arg.hpp" +#include "kstd/bits/format/arg.hpp" #include "kstd/bits/format/output_buffer.hpp" - #include #include diff --git a/libs/kstd/include/kstd/stack b/libs/kstd/include/kstd/stack index 9750376..77e6bfd 100644 --- a/libs/kstd/include/kstd/stack +++ b/libs/kstd/include/kstd/stack @@ -2,6 +2,7 @@ #define KSTD_STACK_HPP #include "kstd/vector" + #include #include diff --git a/libs/kstd/include/kstd/string b/libs/kstd/include/kstd/string index 58c4a08..e228a04 100644 --- a/libs/kstd/include/kstd/string +++ b/libs/kstd/include/kstd/string @@ -1,10 +1,9 @@ #ifndef KSTD_STRING_HPP #define KSTD_STRING_HPP -#include "kstd/bits/format/context.hpp" -#include "kstd/bits/format/formatter.hpp" -#include "kstd/bits/format/formatter/string_view.hpp" - +#include +#include +#include #include #include #include diff --git a/libs/kstd/include/kstd/units b/libs/kstd/include/kstd/units index bc7e1b9..df5eb37 100644 --- a/libs/kstd/include/kstd/units +++ b/libs/kstd/include/kstd/units @@ -15,9 +15,8 @@ namespace kstd using value_type = ValueType; constexpr basic_unit() noexcept - : value{} - { - } + : value{} + {} explicit constexpr basic_unit(value_type value) noexcept : value{value} diff --git a/libs/kstd/tests/src/flat_map.cpp b/libs/kstd/tests/src/flat_map.cpp index eb599af..2b793d9 100644 --- a/libs/kstd/tests/src/flat_map.cpp +++ b/libs/kstd/tests/src/flat_map.cpp @@ -1,4 +1,5 @@ #include + #include #include diff --git a/libs/kstd/tests/src/vector.cpp b/libs/kstd/tests/src/vector.cpp index 97460b4..415ca8e 100644 --- a/libs/kstd/tests/src/vector.cpp +++ b/libs/kstd/tests/src/vector.cpp @@ -1,8 +1,8 @@ -#include "kstd/tests/os_panic.hpp" +#include +#include "kstd/tests/os_panic.hpp" #include #include -#include #include -- cgit v1.2.3