🎨 clang-format affected files! (with the right clang-format 17.0.x, rather than 16.0.x)

This commit is contained in:
ThePhD 2023-12-15 20:27:49 -05:00
parent 4533970bfe
commit b528976178
No known key found for this signature in database
GPG Key ID: 1509DB1C0F702BFA
3 changed files with 36 additions and 33 deletions

View File

@ -643,7 +643,8 @@ OutputIt vformat_to(
fmt::emphasis::bold | fg(fmt::color::red), "{}", 42); fmt::emphasis::bold | fg(fmt::color::red), "{}", 42);
\endrst \endrst
*/ */
template <typename OutputIt, typename S, typename... Args, template <
typename OutputIt, typename S, typename... Args,
bool enable = detail::is_output_iterator<OutputIt, char_t<S>>::value && bool enable = detail::is_output_iterator<OutputIt, char_t<S>>::value &&
detail::is_string<S>::value> detail::is_string<S>::value>
inline auto format_to(OutputIt out, const text_style& ts, const S& format_str, inline auto format_to(OutputIt out, const text_style& ts, const S& format_str,

View File

@ -1162,9 +1162,9 @@ template <typename T>
using uint64_or_128_t = conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>; using uint64_or_128_t = conditional_t<num_bits<T>() <= 64, uint64_t, uint128_t>;
#define FMT_POWERS_OF_10(factor) \ #define FMT_POWERS_OF_10(factor) \
factor * 10, (factor)*100, (factor)*1000, (factor)*10000, (factor)*100000, \ factor * 10, (factor) * 100, (factor) * 1000, (factor) * 10000, \
(factor)*1000000, (factor)*10000000, (factor)*100000000, \ (factor) * 100000, (factor) * 1000000, (factor) * 10000000, \
(factor)*1000000000 (factor) * 100000000, (factor) * 1000000000
// Converts value in the range [0, 100) to a string. // Converts value in the range [0, 100) to a string.
constexpr const char* digits2(size_t value) { constexpr const char* digits2(size_t value) {

View File

@ -216,12 +216,13 @@ inline auto vformat_into(
return detail::get_iterator(buf, out); return detail::get_iterator(buf, out);
} }
template < template <typename Output, typename Locale, typename S, typename... T,
typename Output, typename Locale, typename S, typename... T,
typename Char = char_t<S>, typename Char = char_t<S>,
bool enable = (std::ranges::output_range<Output, Char> || bool enable =
std::output_iterator<remove_cvref_t<Output>, Char>)&&detail:: (std::ranges::output_range<Output, Char> ||
is_locale<Locale>::value&& detail::is_exotic_char<Char>::value, std::output_iterator<remove_cvref_t<Output>,
Char>)&&detail::is_locale<Locale>::value &&
detail::is_exotic_char<Char>::value,
FMT_ENABLE_IF(enable)> FMT_ENABLE_IF(enable)>
inline auto format_to(Output&& out, const Locale& loc, const S& format_str, inline auto format_to(Output&& out, const Locale& loc, const S& format_str,
T&&... args) { T&&... args) {
@ -230,12 +231,13 @@ inline auto format_to(Output&& out, const Locale& loc, const S& format_str,
fmt::make_format_args<buffer_context<Char>>(args...)); fmt::make_format_args<buffer_context<Char>>(args...));
} }
template < template <typename Output, typename Locale, typename S, typename... T,
typename Output, typename Locale, typename S, typename... T,
typename Char = char_t<S>, typename Char = char_t<S>,
bool enable = (std::ranges::output_range<Output, Char> || bool enable =
std::output_iterator<remove_cvref_t<Output>, Char>)&&detail:: (std::ranges::output_range<Output, Char> ||
is_locale<Locale>::value&& detail::is_exotic_char<Char>::value, std::output_iterator<remove_cvref_t<Output>,
Char>)&&detail::is_locale<Locale>::value &&
detail::is_exotic_char<Char>::value,
FMT_ENABLE_IF(enable)> FMT_ENABLE_IF(enable)>
inline auto format_into(Output&& out, const Locale& loc, const S& format_str, inline auto format_into(Output&& out, const Locale& loc, const S& format_str,
T&&... args) { T&&... args) {
@ -278,11 +280,11 @@ inline auto vformat_to(
return detail::get_iterator(buf, out); return detail::get_iterator(buf, out);
} }
template < template <typename OutputIt, typename Locale, typename S, typename... T,
typename OutputIt, typename Locale, typename S, typename... T,
typename Char = char_t<S>, typename Char = char_t<S>,
bool enable = detail::is_output_iterator<OutputIt, Char>::value && bool enable = detail::is_output_iterator<OutputIt, Char>::value &&
detail::is_locale<Locale>::value&& detail::is_exotic_char<Char>::value> detail::is_locale<Locale>::value &&
detail::is_exotic_char<Char>::value>
inline auto format_to(OutputIt out, const Locale& loc, const S& format_str, inline auto format_to(OutputIt out, const Locale& loc, const S& format_str,
T&&... args) -> T&&... args) ->
typename std::enable_if<enable, OutputIt>::type { typename std::enable_if<enable, OutputIt>::type {