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 Bart
parent 4ed8178584
commit dab0ceaf8b
699 changed files with 4626 additions and 5292 deletions

View File

@@ -62,7 +62,7 @@ class STObject : public STBase, public CountedObject<STObject>
public:
using iterator = boost::transform_iterator<Transform, STObject::list_type::const_iterator>;
virtual ~STObject() = default;
~STObject() override = default;
STObject(STObject const&) = default;
template <typename F>
@@ -436,8 +436,7 @@ private:
// by value.
template <
typename T,
typename V = typename std::remove_cv<
typename std::remove_reference<decltype(std::declval<T>().value())>::type>::type>
typename V = std::remove_cv_t<std::remove_reference_t<decltype(std::declval<T>().value())>>>
V
getFieldByValue(SField const& field) const;
@@ -579,7 +578,7 @@ class STObject::OptionalProxy : public Proxy<T>
private:
using value_type = typename T::value_type;
using optional_type = std::optional<typename std::decay<value_type>::type>;
using optional_type = std::optional<std::decay_t<value_type>>;
public:
OptionalProxy(OptionalProxy const&) = default;
@@ -1228,7 +1227,7 @@ template <typename T, typename V>
void
STObject::setFieldUsingSetValue(SField const& field, V value)
{
static_assert(!std::is_lvalue_reference<V>::value, "");
static_assert(!std::is_lvalue_reference_v<V>, "");
STBase* rf = getPField(field, true);