refactor: use east const convention (#5409)

This change refactors the codebase to use the "east const convention", and adds a clang-format rule to follow this convention.
This commit is contained in:
Vito Tumas
2025-05-08 13:00:42 +02:00
committed by GitHub
parent 2db2791805
commit 3e152fec74
212 changed files with 812 additions and 795 deletions

View File

@@ -181,9 +181,9 @@ STArray::getSType() const
}
bool
STArray::isEquivalent(const STBase& t) const
STArray::isEquivalent(STBase const& t) const
{
auto v = dynamic_cast<const STArray*>(&t);
auto v = dynamic_cast<STArray const*>(&t);
return v != nullptr && v_ == v->v_;
}
@@ -194,7 +194,7 @@ STArray::isDefault() const
}
void
STArray::sort(bool (*compare)(const STObject&, const STObject&))
STArray::sort(bool (*compare)(STObject const&, STObject const&))
{
std::sort(v_.begin(), v_.end(), compare);
}