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

@@ -28,10 +28,7 @@ struct UnzipMemDelegate : public ZipFileReader::Delegate
}
// ZipFileReader::Delegate overrides:
void OnBlockUnzipped(size_t size, char const * data) override
{
m_buffer.insert(m_buffer.end(), data, data + size);
}
void OnBlockUnzipped(size_t size, char const * data) override { m_buffer.insert(m_buffer.end(), data, data + size); }
void OnStarted() override
{
@@ -116,7 +113,7 @@ ms::LatLon SrtmTile::GetCoordInSeconds(ms::LatLon const & coord)
lt += 1;
lt = 1 - lt; // from North to South
return { kArcSecondsInDegree * lt, kArcSecondsInDegree * ln };
return {kArcSecondsInDegree * lt, kArcSecondsInDegree * ln};
}
geometry::Altitude SrtmTile::GetHeight(ms::LatLon const & coord) const
@@ -205,7 +202,8 @@ double SrtmTile::GetBilinearHeight(ms::LatLon const & coord) const
return (GetHeightRC(p1.y, p1.x) * (p2.x - ll.m_lon) * (p2.y - ll.m_lat) +
GetHeightRC(p1.y, p2.x) * (ll.m_lon - p1.x) * (p2.y - ll.m_lat) +
GetHeightRC(p2.y, p1.x) * (p2.x - ll.m_lon) * (ll.m_lat - p1.y) +
GetHeightRC(p2.y, p2.x) * (ll.m_lon - p1.x) * (ll.m_lat - p1.y)) / denom;
GetHeightRC(p2.y, p2.x) * (ll.m_lon - p1.x) * (ll.m_lat - p1.y)) /
denom;
}
// static