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

@@ -22,7 +22,7 @@ void TestStringCodingT(T const * arr, size_t count, size_t maxSize)
s.Set(ethalon);
std::vector<char> buffer;
MemWriter<std::vector<char> > w(buffer);
MemWriter<std::vector<char>> w(buffer);
s.Write(w);
@@ -38,7 +38,7 @@ void TestStringCodingT(T const * arr, size_t count, size_t maxSize)
}
}
} // namespace
} // namespace
UNIT_TEST(StringNumericOptimal_Zero)
{
@@ -51,19 +51,19 @@ UNIT_TEST(StringNumericOptimal_Zero)
UNIT_TEST(StringNumericOptimal_IntCoding1)
{
int arr[] = { 0, 1, 2, 666, 0x0FFFFFFF, 0x7FFFFFFF-1, 0x7FFFFFFF };
int arr[] = {0, 1, 2, 666, 0x0FFFFFFF, 0x7FFFFFFF - 1, 0x7FFFFFFF};
TestStringCodingT(arr, ARRAY_SIZE(arr), 5); // should be coded as VarUint
}
UNIT_TEST(StringNumericOptimal_IntCoding2)
{
int arr[] = { -1, -2, -666666, static_cast<int>(0xFFFFFFFE), static_cast<int>(0xFFFFFFFF) };
int arr[] = {-1, -2, -666666, static_cast<int>(0xFFFFFFFE), static_cast<int>(0xFFFFFFFF)};
TestStringCodingT(arr, ARRAY_SIZE(arr), 12); // should be coded as String
}
UNIT_TEST(StringNumericOptimal_StringCoding)
{
char const * arr[] = { "xxx", "yyy", "a", "0xFFFFFF", "123456UL" };
char const * arr[] = {"xxx", "yyy", "a", "0xFFFFFF", "123456UL"};
TestStringCodingT(arr, ARRAY_SIZE(arr), 12); // should be coded as String
}