Format all C++ and Java code via clang-format

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-17 14:32:37 +07:00
parent 9f0290c0ec
commit bfffa1fff4
2169 changed files with 56441 additions and 64188 deletions

View File

@@ -23,9 +23,11 @@ public:
Segment() = default;
constexpr Segment(NumMwmId mwmId, uint32_t featureId, uint32_t segmentIdx, bool forward)
: m_featureId(featureId), m_segmentIdx(segmentIdx), m_mwmId(mwmId), m_forward(forward)
{
}
: m_featureId(featureId)
, m_segmentIdx(segmentIdx)
, m_mwmId(mwmId)
, m_forward(forward)
{}
Segment const & GetSegment(bool /* start */) const { return *this; }
NumMwmId GetMwmId() const { return m_mwmId; }
@@ -42,13 +44,10 @@ public:
bool operator<(Segment const & seg) const;
bool operator==(Segment const & seg) const;
bool operator!=(Segment const & seg) const
{
return !(*this == seg);
}
bool operator!=(Segment const & seg) const { return !(*this == seg); }
bool IsInverse(Segment const & seg) const;
Segment GetReversed() const { return { m_mwmId, m_featureId, m_segmentIdx, !m_forward }; }
Segment GetReversed() const { return {m_mwmId, m_featureId, m_segmentIdx, !m_forward}; }
/// @todo Logically, these functions should be equal, but keep existing logic,
/// and investigate possible enhancements in future.
@@ -70,10 +69,7 @@ class SegmentEdge final
{
public:
SegmentEdge() = default;
SegmentEdge(Segment const & target, RouteWeight const & weight)
: m_target(target), m_weight(weight)
{
}
SegmentEdge(Segment const & target, RouteWeight const & weight) : m_target(target), m_weight(weight) {}
Segment const & GetTarget() const { return m_target; }
RouteWeight const & GetWeight() const { return m_weight; }