chore: Enable clang-tidy modernize checks (#6975)

Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
Co-authored-by: Bart <bthomee@users.noreply.github.com>
This commit is contained in:
Alex Kremer
2026-04-21 16:32:51 +01:00
committed by GitHub
parent ab887f5049
commit ce3951bbb3
699 changed files with 4626 additions and 5292 deletions

View File

@@ -22,17 +22,17 @@ public:
template <class Integer>
static STAmount
amount(Integer integer, std::enable_if_t<std::is_signed<Integer>::value>* = 0)
amount(Integer integer, std::enable_if_t<std::is_signed_v<Integer>>* = 0)
{
static_assert(std::is_integral<Integer>::value, "");
static_assert(std::is_integral_v<Integer>, "");
return STAmount(integer, false);
}
template <class Integer>
static STAmount
amount(Integer integer, std::enable_if_t<!std::is_signed<Integer>::value>* = 0)
amount(Integer integer, std::enable_if_t<!std::is_signed_v<Integer>>* = 0)
{
static_assert(std::is_integral<Integer>::value, "");
static_assert(std::is_integral_v<Integer>, "");
if (integer < 0)
return STAmount(-integer, true);
return STAmount(integer, false);