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

@@ -23,7 +23,8 @@ UNIT_TEST(ThreadPoolComputational_SomeThreads)
base::ComputationalThreadPool threadPool(threadCount);
for (size_t i = 0; i < threadCount; ++i)
{
threadPool.Submit([&]() {
threadPool.Submit([&]()
{
threads::Sleep(1);
++counter;
});
@@ -44,7 +45,8 @@ UNIT_TEST(ThreadPoolComputational_OneThread)
base::ComputationalThreadPool threadPool(threadCount);
for (size_t i = 0; i < threadCount; ++i)
{
threadPool.Submit([&]() {
threadPool.Submit([&]()
{
threads::Sleep(1);
++counter;
});
@@ -67,7 +69,8 @@ UNIT_TEST(ThreadPoolComputational_ManyThread)
base::ComputationalThreadPool threadPool(threadCount);
for (size_t i = 0; i < threadCount; ++i)
{
threadPool.Submit([&]() {
threadPool.Submit([&]()
{
threads::Sleep(1);
++counter;
});
@@ -87,7 +90,8 @@ UNIT_TEST(ThreadPoolComputational_ReturnValue)
std::vector<std::future<size_t>> futures;
for (size_t i = 0; i < threadCount; ++i)
{
auto f = threadPool.Submit([=]() {
auto f = threadPool.Submit([=]()
{
threads::Sleep(1);
return i;
});
@@ -110,7 +114,8 @@ UNIT_TEST(ThreadPoolComputational_ManyTasks)
base::ComputationalThreadPool threadPool(4);
for (size_t i = 0; i < taskCount; ++i)
{
threadPool.Submit([&]() {
threadPool.Submit([&]()
{
threads::Sleep(1);
++counter;
});