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

@@ -9,19 +9,21 @@ namespace
{
// List of country names where mwm should be generated without speed cameras.
std::vector<std::string> kSpeedCamerasProhibitedCountries = {
"Macedonia", "Switzerland", "Turkey",
"Macedonia",
"Switzerland",
"Turkey",
};
// List of country names where an end user should be warned about speed cameras.
std::vector<std::string> kSpeedCamerasPartlyProhibitedCountries = {
"France", "Germany",
"France",
"Germany",
};
bool IsMwmContained(platform::CountryFile const & mwm, std::vector<std::string> const & countryList)
{
return std::any_of(countryList.cbegin(), countryList.cend(), [&mwm](auto const & country) {
return mwm.GetName().starts_with(country);
});
return std::any_of(countryList.cbegin(), countryList.cend(),
[&mwm](auto const & country) { return mwm.GetName().starts_with(country); });
}
} // namespace
@@ -36,4 +38,4 @@ bool AreSpeedCamerasPartlyProhibited(platform::CountryFile const & mwm)
{
return IsMwmContained(mwm, kSpeedCamerasPartlyProhibitedCountries);
}
} // namespace routing
} // namespace routing