Apply clang-tidy

This commit is contained in:
Victor Zverovich
2023-12-19 17:51:41 -08:00
parent 3a2c50d4ac
commit d5da9cc40e
12 changed files with 274 additions and 241 deletions

View File

@@ -176,7 +176,7 @@ struct formatter<std::bitset<N>, Char> : nested_formatter<string_view> {
const std::bitset<N>& bs;
template <typename OutputIt>
FMT_CONSTEXPR OutputIt operator()(OutputIt out) {
FMT_CONSTEXPR auto operator()(OutputIt out) -> OutputIt {
for (auto pos = N; pos > 0; --pos) {
out = detail::write<Char>(out, bs[pos - 1] ? Char('1') : Char('0'));
}