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

@@ -38,8 +38,8 @@ public:
RoadGeometry(bool oneWay, double weightSpeedKMpH, double etaSpeedKMpH, Points const & points);
/// @param[in] altitudes May be nullptr.
void Load(VehicleModelInterface const & vehicleModel, FeatureType & feature,
geometry::Altitudes const * altitudes, RoadAttrsGetter & attrs);
void Load(VehicleModelInterface const & vehicleModel, FeatureType & feature, geometry::Altitudes const * altitudes,
RoadAttrsGetter & attrs);
SpeedKMpH const & GetSpeed(bool forward) const;
std::optional<HighwayType> GetHighwayType() const { return m_highwayType; }
@@ -72,10 +72,7 @@ public:
return pointId == 0 || pointId + 1 == GetPointsCount();
}
void SetPassThroughAllowedForTests(bool passThroughAllowed)
{
m_isPassThroughAllowed = passThroughAllowed;
}
void SetPassThroughAllowedForTests(bool passThroughAllowed) { m_isPassThroughAllowed = passThroughAllowed; }
bool SuitableForOptions(RoutingOptions avoidRoutingOptions) const
{
@@ -86,7 +83,7 @@ public:
private:
std::vector<LatLonWithAltitude> m_junctions;
mutable std::vector<double> m_distances; ///< as cache, @see GetDistance()
mutable std::vector<double> m_distances; ///< as cache, @see GetDistance()
SpeedKMpH m_forwardSpeed;
SpeedKMpH m_backwardSpeed;
@@ -111,14 +108,13 @@ public:
using VehicleModelPtrT = std::shared_ptr<VehicleModelInterface>;
/// @param[in] handle should be alive, its caller responsibility to check it.
static std::unique_ptr<GeometryLoader> Create(MwmSet::MwmHandle const & handle,
VehicleModelPtrT const & vehicleModel,
static std::unique_ptr<GeometryLoader> Create(MwmSet::MwmHandle const & handle, VehicleModelPtrT const & vehicleModel,
bool loadAltitudes);
/// This is for stand-alone work.
/// Use in generator_tool and unit tests.
static std::unique_ptr<GeometryLoader> CreateFromFile(
std::string const & filePath, VehicleModelPtrT const & vehicleModel);
static std::unique_ptr<GeometryLoader> CreateFromFile(std::string const & filePath,
VehicleModelPtrT const & vehicleModel);
};
/// \brief This class supports loading geometry of roads for routing.
@@ -143,10 +139,7 @@ public:
/// \note The reference returned by the method is valid until the next call of GetRoad()
/// of GetPoint() methods.
ms::LatLon const & GetPoint(RoadPoint const & rp)
{
return GetRoad(rp.GetFeatureId()).GetPoint(rp.GetPointId());
}
ms::LatLon const & GetPoint(RoadPoint const & rp) { return GetRoad(rp.GetFeatureId()).GetPoint(rp.GetPointId()); }
SpeedInUnits GetSavedMaxspeed(uint32_t featureId, bool forward)
{