Skip to content

Commit

Permalink
trying to have clang-tidy and clang-format agree
Browse files Browse the repository at this point in the history
  • Loading branch information
yobeonline committed Feb 7, 2024
1 parent 10f9364 commit d9a002e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/io1/money.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ namespace io1
std::numeric_limits<value_type>::max() >=
9'223'372'036'854'775'807 && // NOLINT(cppcoreguidelines-avoid-magic-numbers, readability-magic-numbers)
std::numeric_limits<value_type>::lowest() <=
-9'223'372'036'854'775'807 -
1, // NOLINT(cppcoreguidelines-avoid-magic-numbers, readability-magic-numbers)
-9'223'372'036'854'775'807 - // NOLINT(cppcoreguidelines-avoid-magic-numbers, readability-magic-numbers)
1,
"Type too short to hold the advertised value range.");

money() noexcept = default;
Expand Down Expand Up @@ -105,7 +105,7 @@ namespace io1

struct [[nodiscard]] InexactDivision : public std::runtime_error
{
explicit InexactDivision(value_type dividend,
explicit InexactDivision(value_type dividend, // NOLINT(bugprone-easily-swappable-parameters)
value_type divisor) noexcept // NOLINT(bugprone-easily-swappable-parameters)
: std::runtime_error("Cannot perform an inexact division!"), dividend(dividend), divisor(divisor)
{
Expand Down

0 comments on commit d9a002e

Please sign in to comment.