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

@@ -42,8 +42,7 @@ void LoadPopularPlaces(std::string const & srcFilename, PopularPlaces & places)
if (popularityIndex > std::numeric_limits<PopularityIndex>::max())
{
LOG(LERROR, ("The popularity index value is higher than max supported value:", srcFilename,
"parsed row:", row));
LOG(LERROR, ("The popularity index value is higher than max supported value:", srcFilename, "parsed row:", row));
return;
}
@@ -60,7 +59,8 @@ void LoadPopularPlaces(std::string const & srcFilename, PopularPlaces & places)
namespace
{
template <class RankGetterT> void BuildPopularPlacesImpl(std::string const & mwmFile, RankGetterT && getter)
template <class RankGetterT>
void BuildPopularPlacesImpl(std::string const & mwmFile, RankGetterT && getter)
{
bool popularPlaceFound = false;
@@ -97,7 +97,7 @@ PopularityIndex CalcRank(std::string const & str)
return std::min(1.0, charsNum / 100000.0) * std::numeric_limits<PopularityIndex>::max();
}
} // namespace
} // namespace
void BuildPopularPlacesFromDescriptions(std::string const & mwmFile)
{
@@ -126,8 +126,8 @@ void BuildPopularPlacesFromDescriptions(std::string const & mwmFile)
});
}
void BuildPopularPlacesFromWikiDump(std::string const & mwmFile,
std::string const & wikipediaDir, std::string const & idToWikidataPath)
void BuildPopularPlacesFromWikiDump(std::string const & mwmFile, std::string const & wikipediaDir,
std::string const & idToWikidataPath)
{
LOG(LINFO, ("Build Popular Places section"));
@@ -152,7 +152,6 @@ void BuildPopularPlacesFromWikiDump(std::string const & mwmFile,
});
}
PopularPlaces const & GetOrLoadPopularPlaces(std::string const & filename)
{
static std::mutex m;