Apply clang-format
This commit is contained in:
@@ -725,7 +725,8 @@ struct type_constant : std::integral_constant<type, type::custom_type> {};
|
||||
|
||||
#define FMT_TYPE_CONSTANT(Type, constant) \
|
||||
template <typename Char> \
|
||||
struct type_constant<Type, Char> : std::integral_constant<type, type::constant> {}
|
||||
struct type_constant<Type, Char> \
|
||||
: std::integral_constant<type, type::constant> {}
|
||||
|
||||
FMT_TYPE_CONSTANT(const named_arg_base<Char>&, named_arg_type);
|
||||
FMT_TYPE_CONSTANT(int, int_type);
|
||||
|
||||
@@ -406,8 +406,9 @@ basic_printf_context<OutputIt, Char>::get_arg(int arg_index) {
|
||||
}
|
||||
|
||||
template <typename OutputIt, typename Char>
|
||||
int basic_printf_context<OutputIt, Char>::parse_header(
|
||||
const Char*& it, const Char* end, format_specs& specs) {
|
||||
int basic_printf_context<OutputIt, Char>::parse_header(const Char*& it,
|
||||
const Char* end,
|
||||
format_specs& specs) {
|
||||
int arg_index = -1;
|
||||
char_type c = *it;
|
||||
if (c >= '0' && c <= '9') {
|
||||
@@ -476,8 +477,8 @@ OutputIt basic_printf_context<OutputIt, Char>::format() {
|
||||
specs.precision = parse_nonnegative_int(it, end, eh);
|
||||
} else if (c == '*') {
|
||||
++it;
|
||||
specs.precision =
|
||||
static_cast<int>(visit_format_arg(internal::printf_precision_handler(), get_arg()));
|
||||
specs.precision = static_cast<int>(
|
||||
visit_format_arg(internal::printf_precision_handler(), get_arg()));
|
||||
} else {
|
||||
specs.precision = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user