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

@@ -14,8 +14,7 @@ using namespace indexer;
UNIT_TEST(CitiesBoundariesChecker_Square)
{
auto const checker =
CitiesBoundariesChecker({CityBoundary({{0.0, 0.0}, {1.0, 0.0}, {1.0, 1.0}, {0.0, 1.0}})});
auto const checker = CitiesBoundariesChecker({CityBoundary({{0.0, 0.0}, {1.0, 0.0}, {1.0, 1.0}, {0.0, 1.0}})});
TEST(checker.InCity({0.5, 0.5}), ());
TEST(checker.InCity({0.0001, 0.0001}), ());
@@ -42,9 +41,9 @@ UNIT_TEST(CitiesBoundariesChecker_NotConvexPolygon)
UNIT_TEST(CitiesBoundariesChecker_IntersectedPolygons)
{
auto const checker = CitiesBoundariesChecker(
{CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}}),
CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}})});
auto const checker =
CitiesBoundariesChecker({CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}}),
CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}})});
TEST(checker.InCity({0.3, 0.3}), ());
TEST(checker.InCity({0.0001, 0.0001}), ());
@@ -57,10 +56,10 @@ UNIT_TEST(CitiesBoundariesChecker_IntersectedPolygons)
UNIT_TEST(CitiesBoundariesChecker_SeveralPolygons)
{
auto const checker = CitiesBoundariesChecker(
{CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}}),
CityBoundary({{10.0, 0.0}, {11.0, -1.0}, {10.5, 0.0}, {11.0, 1.0}, {10.0, 1.0}}),
CityBoundary({{0.0, 10.0}, {1.0, -11.0}, {0.5, 10.0}, {1.0, 11.0}, {0.0, 11.0}})});
auto const checker =
CitiesBoundariesChecker({CityBoundary({{0.0, 0.0}, {1.0, -1.0}, {0.5, 0.0}, {1.0, 1.0}, {0.0, 1.0}}),
CityBoundary({{10.0, 0.0}, {11.0, -1.0}, {10.5, 0.0}, {11.0, 1.0}, {10.0, 1.0}}),
CityBoundary({{0.0, 10.0}, {1.0, -11.0}, {0.5, 10.0}, {1.0, 11.0}, {0.0, 11.0}})});
TEST(checker.InCity({0.3, 0.3}), ());
TEST(checker.InCity({0.0001, 0.0001}), ());