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

@@ -15,14 +15,12 @@ namespace platform
// Note. The the maps are deleted from writable dir/|dataDir|/|version| directory.
// If |dataDir| is empty (or is not set) the function deletes maps from writable dir.
void DeleteDownloaderFilesForCountry(int64_t version, CountryFile const & countryFile);
void DeleteDownloaderFilesForCountry(int64_t version, std::string const & dataDir,
CountryFile const & countryFile);
void DeleteDownloaderFilesForCountry(int64_t version, std::string const & dataDir, CountryFile const & countryFile);
// Finds all local map files in |directory|. Version of these files is
// passed as an argument. Also, performs cleanup described in comment
// for FindAllLocalMapsAndCleanup().
size_t FindAllLocalMapsInDirectoryAndCleanup(std::string const & directory, int64_t version,
int64_t latestVersion,
size_t FindAllLocalMapsInDirectoryAndCleanup(std::string const & directory, int64_t version, int64_t latestVersion,
std::vector<LocalCountryFile> & localFiles);
// Finds all local map files in resources and writable directory. For
@@ -74,13 +72,13 @@ std::string PrepareDirToDownloadCountry(int64_t version, std::string const & dat
/// If |dataDir| is empty (or is not set) the function assumes that maps are in writable dir.
/// @{
/// @param[in] countryName Actually, same as storage::CountryId, like "Abkhazia".
std::string GetFilePath(int64_t version, std::string const & dataDir,
std::string const & countryName, MapFileType type);
std::string GetFileDownloadPath(int64_t version, std::string const & dataDir,
std::string const & countryName, MapFileType type);
std::string GetFilePath(int64_t version, std::string const & dataDir, std::string const & countryName,
MapFileType type);
std::string GetFileDownloadPath(int64_t version, std::string const & dataDir, std::string const & countryName,
MapFileType type);
inline std::string GetFileDownloadPath(int64_t version, std::string const & dataDir,
CountryFile const & countryFile, MapFileType type)
inline std::string GetFileDownloadPath(int64_t version, std::string const & dataDir, CountryFile const & countryFile,
MapFileType type)
{
return GetFileDownloadPath(version, dataDir, countryFile.GetName(), type);
}