style: clang-format updated to 17.0.5 in pre-commit

This commit is contained in:
Mateusz Pusz
2023-11-28 14:19:04 +01:00
parent c98090f783
commit 683c49bef3
3 changed files with 14 additions and 14 deletions

View File

@ -11,7 +11,7 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.3
rev: v17.0.5
hooks:
- id: clang-format
- repo: https://github.com/cheshirekow/cmake-format-precommit

View File

@ -266,7 +266,7 @@ public:
}
template<typename Q>
friend constexpr decltype(auto) operator++(Q && q)
friend constexpr decltype(auto) operator++(Q&& q)
requires std::derived_from<std::remove_cvref_t<Q>, quantity> && requires(rep v) {
{
++v
@ -288,7 +288,7 @@ public:
}
template<typename Q>
friend constexpr decltype(auto) operator--(Q && q)
friend constexpr decltype(auto) operator--(Q&& q)
requires std::derived_from<std::remove_cvref_t<Q>, quantity> && requires(rep v) {
{
--v
@ -316,7 +316,7 @@ public:
a += b
} -> std::same_as<rep&>;
}
friend constexpr decltype(auto) operator+=(Q && lhs, const quantity & rhs)
friend constexpr decltype(auto) operator+=(Q&& lhs, const quantity& rhs)
{
lhs.numerical_value_is_an_implementation_detail_ += rhs.numerical_value_is_an_implementation_detail_;
return std::forward<Q>(lhs);
@ -328,7 +328,7 @@ public:
a -= b
} -> std::same_as<rep&>;
}
friend constexpr decltype(auto) operator-=(Q && lhs, const quantity & rhs)
friend constexpr decltype(auto) operator-=(Q&& lhs, const quantity& rhs)
{
lhs.numerical_value_is_an_implementation_detail_ -= rhs.numerical_value_is_an_implementation_detail_;
return std::forward<Q>(lhs);
@ -341,7 +341,7 @@ public:
a %= b
} -> std::same_as<rep&>;
}
friend constexpr decltype(auto) operator%=(Q && lhs, const quantity & rhs)
friend constexpr decltype(auto) operator%=(Q&& lhs, const quantity& rhs)
{
gsl_ExpectsAudit(rhs != zero());
@ -356,7 +356,7 @@ public:
a *= b
} -> std::same_as<rep&>;
}
friend constexpr decltype(auto) operator*=(Q && lhs, const Value & v)
friend constexpr decltype(auto) operator*=(Q&& lhs, const Value& v)
{
lhs.numerical_value_is_an_implementation_detail_ *= v;
return std::forward<Q>(lhs);
@ -369,7 +369,7 @@ public:
a *= b
} -> std::same_as<rep&>;
}
friend constexpr decltype(auto) operator*=(Q1 && lhs, const Q2 & rhs)
friend constexpr decltype(auto) operator*=(Q1&& lhs, const Q2& rhs)
{
lhs.numerical_value_is_an_implementation_detail_ *= rhs.numerical_value_is_an_implementation_detail_;
return std::forward<Q1>(lhs);
@ -382,7 +382,7 @@ public:
a /= b
} -> std::same_as<rep&>;
}
friend constexpr decltype(auto) operator/=(Q && lhs, const Value & v)
friend constexpr decltype(auto) operator/=(Q&& lhs, const Value& v)
{
gsl_ExpectsAudit(v != quantity_values<Value>::zero());
lhs.numerical_value_is_an_implementation_detail_ /= v;
@ -396,7 +396,7 @@ public:
a /= b
} -> std::same_as<rep&>;
}
friend constexpr decltype(auto) operator/=(Q1 && lhs, const Q2 & rhs)
friend constexpr decltype(auto) operator/=(Q1&& lhs, const Q2& rhs)
{
gsl_ExpectsAudit(rhs != rhs.zero());
lhs.numerical_value_is_an_implementation_detail_ /= rhs.numerical_value_is_an_implementation_detail_;

View File

@ -241,7 +241,7 @@ public:
// member unary operators
template<typename QP>
friend constexpr decltype(auto) operator++(QP && qp)
friend constexpr decltype(auto) operator++(QP&& qp)
requires std::derived_from<std::remove_cvref_t<QP>, quantity_point> &&
requires { ++qp.quantity_from_origin_is_an_implementation_detail_; }
{
@ -256,7 +256,7 @@ public:
}
template<typename QP>
friend constexpr decltype(auto) operator--(QP && qp)
friend constexpr decltype(auto) operator--(QP&& qp)
requires std::derived_from<std::remove_cvref_t<QP>, quantity_point> &&
requires { --qp.quantity_from_origin_is_an_implementation_detail_; }
{
@ -274,7 +274,7 @@ public:
template<typename QP>
requires std::derived_from<std::remove_cvref_t<QP>, quantity_point> &&
requires(quantity_type q) { quantity_from_origin_is_an_implementation_detail_ += q; }
friend constexpr decltype(auto) operator+=(QP && qp, const quantity_type & q)
friend constexpr decltype(auto) operator+=(QP&& qp, const quantity_type& q)
{
qp.quantity_from_origin_is_an_implementation_detail_ += q;
return std::forward<QP>(qp);
@ -283,7 +283,7 @@ public:
template<typename QP>
requires std::derived_from<std::remove_cvref_t<QP>, quantity_point> &&
requires(quantity_type q) { quantity_from_origin_is_an_implementation_detail_ -= q; }
friend constexpr decltype(auto) operator-=(QP && qp, const quantity_type & q)
friend constexpr decltype(auto) operator-=(QP&& qp, const quantity_type& q)
{
qp.quantity_from_origin_is_an_implementation_detail_ -= q;
return std::forward<QP>(qp);