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

@@ -67,11 +67,7 @@ UNIT_TEST(WritablePathForFile)
UNIT_TEST(GetReader)
{
char const * NON_EXISTING_FILE = "mgbwuerhsnmbui45efhdbn34.tmp";
char const * arr[] = {
"symbols/mdpi/light/symbols.sdf",
"classificator.txt",
"minsk-pass.mwm"
};
char const * arr[] = {"symbols/mdpi/light/symbols.sdf", "classificator.txt", "minsk-pass.mwm"};
Platform & p = GetPlatform();
for (size_t i = 0; i < ARRAY_SIZE(arr); ++i)
@@ -155,26 +151,26 @@ UNIT_TEST(GetFilesByType)
SCOPE_GUARD(removeTestFile, bind(FileWriter::DeleteFileX, testFile));
CheckFilesPresence(baseDir, Platform::EFileType::Directory,
{{
kTestDirBaseName, 1 /* present */
},
{
kTestFileBaseName, 0 /* not present */
}});
{{
kTestDirBaseName, 1 /* present */
},
{
kTestFileBaseName, 0 /* not present */
}});
CheckFilesPresence(baseDir, Platform::EFileType::Regular,
{{
kTestDirBaseName, 0 /* not present */
},
{
kTestFileBaseName, 1 /* present */
}});
{{
kTestDirBaseName, 0 /* not present */
},
{
kTestFileBaseName, 1 /* present */
}});
CheckFilesPresence(baseDir, Platform::EFileType::Directory | Platform::EFileType::Regular,
{{
kTestDirBaseName, 1 /* present */
},
{
kTestFileBaseName, 1 /* present */
}});
{{
kTestDirBaseName, 1 /* present */
},
{
kTestFileBaseName, 1 /* present */
}});
}
UNIT_TEST(GetFileSize)
@@ -261,9 +257,10 @@ UNIT_TEST(MkDirRecursively)
using namespace platform::tests_support;
auto const writablePath = GetPlatform().WritableDir();
auto const workPath = base::JoinPath(writablePath, "MkDirRecursively");
auto const resetDir = [](std::string const & path) {
auto const resetDir = [](std::string const & path)
{
if (Platform::IsFileExistsByFullPath(path) && !Platform::RmDirRecursively(path))
return false;
return false;
return Platform::MkDirChecked(path);
};