@@ -190,7 +190,7 @@ constexpr auto to_chars_nonfinite(char* first, char* last, const TargetDecimalTy
190190 }
191191 }
192192
193- return {last, std::errc::value_too_large}; // LCOV_EXCL_LINE : Should be unreachable
193+ return {last, std::errc::value_too_large};
194194 case FP_NAN:
195195 if (issignaling (value) && buffer_len >= 9 )
196196 {
@@ -238,7 +238,7 @@ constexpr auto to_chars_scientific_impl(char* first, char* last, const TargetDec
238238 // Dummy check the bounds
239239 if (BOOST_DECIMAL_UNLIKELY (buffer_size < real_precision))
240240 {
241- return {last, std::errc::value_too_large}; // LCOV_EXCL_LINE
241+ return {last, std::errc::value_too_large};
242242 }
243243
244244 using uint_type = std::conditional_t <(std::numeric_limits<typename TargetDecimalType::significand_type>::digits >
@@ -253,7 +253,7 @@ constexpr auto to_chars_scientific_impl(char* first, char* last, const TargetDec
253253 // which we have already checked for
254254 if (BOOST_DECIMAL_UNLIKELY (!r))
255255 {
256- return r; // LCOV_EXCL_LINE
256+ return r;
257257 }
258258
259259 auto current_digits {r.ptr - (first + 1 )};
@@ -273,7 +273,7 @@ constexpr auto to_chars_scientific_impl(char* first, char* last, const TargetDec
273273 const auto total_length {total_buffer_length<TargetDecimalType>(static_cast <int >(current_digits), exp, is_neg)};
274274 if (BOOST_DECIMAL_UNLIKELY (total_length > buffer_size))
275275 {
276- return {last, std::errc::value_too_large}; // LCOV_EXCL_LINE
276+ return {last, std::errc::value_too_large};
277277 }
278278
279279 // Insert our decimal point (or don't in the 1 digit case)
@@ -309,7 +309,7 @@ constexpr auto to_chars_scientific_impl(char* first, char* last, const TargetDec
309309
310310 if (BOOST_DECIMAL_UNLIKELY (!exp_r))
311311 {
312- return exp_r; // LCOV_EXCL_LINE
312+ return exp_r;
313313 }
314314
315315 return {exp_r.ptr , std::errc{}};
@@ -374,7 +374,7 @@ constexpr auto to_chars_scientific_impl(char* first, char* last, const TargetDec
374374 }
375375 else if (significand_digits > local_precision + 1 )
376376 {
377- const auto original_sig = significand; // LCOV_EXCL_LINE : False negative
377+ const auto original_sig = significand;
378378 fenv_round<TargetDecimalType>(significand);
379379 if (remove_trailing_zeros (original_sig + 1U ).trimmed_number == 1U )
380380 {
@@ -406,7 +406,7 @@ constexpr auto to_chars_scientific_impl(char* first, char* last, const TargetDec
406406 // Only real reason we will hit this is a buffer overflow
407407 if (BOOST_DECIMAL_UNLIKELY (!r))
408408 {
409- return r; // LCOV_EXCL_LINE
409+ return r;
410410 }
411411
412412 const auto current_digits = r.ptr - (first + 1 ) - 1 ;
@@ -478,7 +478,7 @@ constexpr auto to_chars_scientific_impl(char* first, char* last, const TargetDec
478478 r = to_chars_integer_impl<int >(first, last, abs_exp);
479479 if (BOOST_DECIMAL_UNLIKELY (!r))
480480 {
481- return r; // LCOV_EXCL_LINE
481+ return r;
482482 }
483483
484484 return {r.ptr , std::errc ()};
@@ -520,7 +520,7 @@ constexpr auto to_chars_fixed_impl(char* first, char* last, const TargetDecimalT
520520
521521 if (BOOST_DECIMAL_UNLIKELY (!r))
522522 {
523- return r; // LCOV_EXCL_LINE
523+ return r;
524524 }
525525
526526 const auto num_digits {r.ptr - current};
@@ -536,7 +536,7 @@ constexpr auto to_chars_fixed_impl(char* first, char* last, const TargetDecimalT
536536 {
537537 if (BOOST_DECIMAL_UNLIKELY (buffer_size < (current - first) + num_digits + exp))
538538 {
539- return {last, std::errc::value_too_large}; // LCOV_EXCL_LINE
539+ return {last, std::errc::value_too_large};
540540 }
541541
542542 detail::memset (r.ptr , ' 0' , static_cast <std::size_t >(exp));
@@ -546,7 +546,7 @@ constexpr auto to_chars_fixed_impl(char* first, char* last, const TargetDecimalT
546546 {
547547 if (BOOST_DECIMAL_UNLIKELY (buffer_size < (current - first) + num_digits + 1 ))
548548 {
549- return {last, std::errc::value_too_large}; // LCOV_EXCL_LINE
549+ return {last, std::errc::value_too_large};
550550 }
551551
552552 const auto decimal_pos {num_digits - abs_exp};
@@ -560,7 +560,7 @@ constexpr auto to_chars_fixed_impl(char* first, char* last, const TargetDecimalT
560560 const auto leading_zeros {abs_exp - num_digits};
561561 if (BOOST_DECIMAL_UNLIKELY (buffer_size < (current - first) + 2 + leading_zeros + num_digits))
562562 {
563- return {last, std::errc::value_too_large}; // LCOV_EXCL_LINE
563+ return {last, std::errc::value_too_large};
564564 }
565565
566566 detail::memmove (current + 2 + leading_zeros, current, static_cast <std::size_t >(num_digits));
0 commit comments