mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
refactor: Enable clang-tidy readability-identifier-naming check (#6571)
This commit is contained in:
@@ -58,13 +58,28 @@ public:
|
||||
|
||||
template <class... Args>
|
||||
void
|
||||
emplace_back(Args&&... args);
|
||||
emplaceBack(Args&&... args);
|
||||
|
||||
void
|
||||
push_back(STObject const& object);
|
||||
pushBack(STObject const& object);
|
||||
|
||||
void
|
||||
push_back(STObject&& object);
|
||||
pushBack(STObject&& object);
|
||||
|
||||
// STL-compatible alias required by std::back_insert_iterator
|
||||
void
|
||||
// NOLINTNEXTLINE(readability-identifier-naming)
|
||||
push_back(STObject const& object)
|
||||
{
|
||||
pushBack(object);
|
||||
}
|
||||
|
||||
void
|
||||
// NOLINTNEXTLINE(readability-identifier-naming)
|
||||
push_back(STObject&& object)
|
||||
{
|
||||
pushBack(std::move(object));
|
||||
}
|
||||
|
||||
iterator
|
||||
begin();
|
||||
@@ -99,7 +114,7 @@ public:
|
||||
[[nodiscard]] std::string
|
||||
getText() const override;
|
||||
|
||||
[[nodiscard]] Json::Value
|
||||
[[nodiscard]] json::Value
|
||||
getJson(JsonOptions index) const override;
|
||||
|
||||
void
|
||||
@@ -180,19 +195,19 @@ STArray::back() const
|
||||
|
||||
template <class... Args>
|
||||
inline void
|
||||
STArray::emplace_back(Args&&... args)
|
||||
STArray::emplaceBack(Args&&... args)
|
||||
{
|
||||
v_.emplace_back(std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
inline void
|
||||
STArray::push_back(STObject const& object)
|
||||
STArray::pushBack(STObject const& object)
|
||||
{
|
||||
v_.push_back(object);
|
||||
}
|
||||
|
||||
inline void
|
||||
STArray::push_back(STObject&& object)
|
||||
STArray::pushBack(STObject&& object)
|
||||
{
|
||||
v_.push_back(std::move(object));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user