From 706fecea3044e5151d1f684007d1bc161bda6d11 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 22 Nov 2025 06:45:50 -0800 Subject: [PATCH] Apply clang-format --- include/fmt/format.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 8c6d0451..0f38f30e 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -493,8 +493,8 @@ template = 307 && !FMT_ICC_VERSION __attribute__((no_sanitize("undefined"))) #endif -FMT_CONSTEXPR20 inline auto -reserve(OutputIt it, size_t n) -> typename OutputIt::value_type* { +FMT_CONSTEXPR20 inline auto reserve(OutputIt it, size_t n) -> + typename OutputIt::value_type* { auto& c = get_container(it); size_t size = c.size(); c.resize(size + n); @@ -1360,14 +1360,11 @@ template class to_utf8 { ++p; if (p == s.end() || (c & 0xfc00) != 0xd800 || (*p & 0xfc00) != 0xdc00) { switch (policy) { - case to_utf8_error_policy::abort: - return false; + case to_utf8_error_policy::abort: return false; case to_utf8_error_policy::replace: buf.append(string_view("\xEF\xBF\xBD")); break; - case to_utf8_error_policy::wtf: - to_utf8_3bytes(buf, c); - break; + case to_utf8_error_policy::wtf: to_utf8_3bytes(buf, c); break; } --p; continue;