From 03eadbd6bb42ede37524998d303d509d48e863c0 Mon Sep 17 00:00:00 2001 From: Barry Revzin Date: Fri, 24 Dec 2021 12:54:40 -0600 Subject: [PATCH] clang-format --- include/fmt/core.h | 3 ++- include/fmt/format.h | 17 ++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 60fb4b0a..14df573a 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2792,7 +2792,8 @@ FMT_CONSTEXPR auto check_cstring_type_spec(presentation_type type, template FMT_CONSTEXPR void check_string_type_spec(presentation_type type, ErrorHandler&& eh = {}) { - if (type != presentation_type::none && type != presentation_type::string && type != presentation_type::debug) + if (type != presentation_type::none && type != presentation_type::string && + type != presentation_type::debug) eh.on_error("invalid type specifier"); } diff --git a/include/fmt/format.h b/include/fmt/format.h index 8d9e98df..9d792acc 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1567,11 +1567,10 @@ template struct find_escape_result { }; template -using make_unsigned_char = typename conditional_t< - std::is_integral::value, - std::make_unsigned, - type_identity - >::type; +using make_unsigned_char = + typename conditional_t::value, + std::make_unsigned, + type_identity>::type; template auto find_escape(const Char* begin, const Char* end) @@ -1600,7 +1599,8 @@ inline auto find_escape(const char* begin, const char* end) } template -auto write_escaped_string(OutputIt out, basic_string_view str, Char bracket = '"') -> OutputIt { +auto write_escaped_string(OutputIt out, basic_string_view str, + Char bracket = '"') -> OutputIt { *out++ = bracket; auto begin = str.begin(), end = str.end(); do { @@ -1644,9 +1644,8 @@ auto write_escaped_string(OutputIt out, basic_string_view str, Char bracke } for (Char escape_char : basic_string_view( escape.begin, to_unsigned(escape.end - escape.begin))) { - out = format_to( - out, "\\x{:02x}", - static_cast>(escape_char)); + out = format_to(out, "\\x{:02x}", + static_cast>(escape_char)); } continue; }