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

6
libs/drape_frontend/tile_utils.cpp Executable file → Normal file
View File

@@ -34,8 +34,7 @@ CoverageResult CalcTilesCoverage(m2::RectD const & rect, int targetZoom,
bool IsNeighbours(TileKey const & tileKey1, TileKey const & tileKey2)
{
return !((tileKey1.m_x == tileKey2.m_x) && (tileKey1.m_y == tileKey2.m_y)) &&
(abs(tileKey1.m_x - tileKey2.m_x) < 2) &&
(abs(tileKey1.m_y - tileKey2.m_y) < 2);
(abs(tileKey1.m_x - tileKey2.m_x) < 2) && (abs(tileKey1.m_y - tileKey2.m_y) < 2);
}
int ClipTileZoomByMaxDataZoom(int zoom)
@@ -47,7 +46,6 @@ TileKey GetTileKeyByPoint(m2::PointD const & pt, int zoom)
{
ASSERT_GREATER(zoom, 0, ());
double const rectSize = mercator::Bounds::kRangeX / (1 << (zoom - 1));
return TileKey(static_cast<int>(floor(pt.x / rectSize)),
static_cast<int>(floor(pt.y / rectSize)), zoom);
return TileKey(static_cast<int>(floor(pt.x / rectSize)), static_cast<int>(floor(pt.y / rectSize)), zoom);
}
} // namespace df