clang-format

This commit is contained in:
gabime 2020-03-15 17:16:28 +02:00
parent 683080be53
commit f31a834613

View File

@ -14,7 +14,7 @@
// {:s} - don't separate each byte with space. // {:s} - don't separate each byte with space.
// {:p} - don't print the position on each line start. // {:p} - don't print the position on each line start.
// {:n} - don't split the output to lines. // {:n} - don't split the output to lines.
// {:a} - show ASCII if :n is not set // {:a} - show ASCII if :n is not set
// //
// Examples: // Examples:
@ -155,10 +155,9 @@ struct formatter<spdlog::details::dump_info<T>>
auto pc = static_cast<unsigned char>(*j); auto pc = static_cast<unsigned char>(*j);
*inserter++ = std::isprint(pc) ? static_cast<char>(*j) : '.'; *inserter++ = std::isprint(pc) ? static_cast<char>(*j) : '.';
} }
} }
put_newline(inserter, static_cast<size_t >(i - the_range.begin())); put_newline(inserter, static_cast<size_t>(i - the_range.begin()));
// put first byte without delimiter in front of it // put first byte without delimiter in front of it
*inserter++ = hex_chars[(ch >> 4) & 0x0f]; *inserter++ = hex_chars[(ch >> 4) & 0x0f];