Apply clang-format

This commit is contained in:
Victor Zverovich
2025-11-22 06:45:50 -08:00
parent e00fd756cc
commit 706fecea30

View File

@@ -493,8 +493,8 @@ template <typename OutputIt,
#if FMT_CLANG_VERSION >= 307 && !FMT_ICC_VERSION #if FMT_CLANG_VERSION >= 307 && !FMT_ICC_VERSION
__attribute__((no_sanitize("undefined"))) __attribute__((no_sanitize("undefined")))
#endif #endif
FMT_CONSTEXPR20 inline auto FMT_CONSTEXPR20 inline auto reserve(OutputIt it, size_t n) ->
reserve(OutputIt it, size_t n) -> typename OutputIt::value_type* { typename OutputIt::value_type* {
auto& c = get_container(it); auto& c = get_container(it);
size_t size = c.size(); size_t size = c.size();
c.resize(size + n); c.resize(size + n);
@@ -1360,14 +1360,11 @@ template <typename WChar, typename Buffer = memory_buffer> class to_utf8 {
++p; ++p;
if (p == s.end() || (c & 0xfc00) != 0xd800 || (*p & 0xfc00) != 0xdc00) { if (p == s.end() || (c & 0xfc00) != 0xd800 || (*p & 0xfc00) != 0xdc00) {
switch (policy) { switch (policy) {
case to_utf8_error_policy::abort: case to_utf8_error_policy::abort: return false;
return false;
case to_utf8_error_policy::replace: case to_utf8_error_policy::replace:
buf.append(string_view("\xEF\xBF\xBD")); buf.append(string_view("\xEF\xBF\xBD"));
break; break;
case to_utf8_error_policy::wtf: case to_utf8_error_policy::wtf: to_utf8_3bytes(buf, c); break;
to_utf8_3bytes(buf, c);
break;
} }
--p; --p;
continue; continue;