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

@@ -18,10 +18,9 @@ namespace
{
platform::LocalCountryFile MakeFile(std::string name, int64_t version)
{
return { GetPlatform().WritableDir() + std::to_string(version),
platform::CountryFile(std::move(name)), version };
return {GetPlatform().WritableDir() + std::to_string(version), platform::CountryFile(std::move(name)), version};
}
} // namespace
} // namespace
UNIT_TEST(CrossMwmWeights)
{
@@ -43,7 +42,7 @@ UNIT_TEST(CrossMwmWeights)
builder.DeserializeTransitions(VehicleType::Car, reader);
builder.DeserializeWeights(reader);
//std::vector<connector::Weight> weights(connector.GetNumEnters() * connector.GetNumExits());
// std::vector<connector::Weight> weights(connector.GetNumEnters() * connector.GetNumExits());
using IdxWeightT = std::pair<uint32_t, uint32_t>;
std::vector<IdxWeightT> idx2weight;
@@ -54,7 +53,7 @@ UNIT_TEST(CrossMwmWeights)
{
uint32_t const idx = connector.GetWeightIndex(enterIdx, exitIdx);
uint32_t const weight = connector.GetWeight(enterIdx, exitIdx);
//weights[idx] = weight;
// weights[idx] = weight;
if (weight > 0)
idx2weight.emplace_back(idx, weight);