Skip to content

Commit 4964a70

Browse files
zertoshfacebook-github-bot
authored andcommitted
Apply clang-format 18
Summary: Previously this code conformed from clang-format 12. Reviewed By: igorsugak Differential Revision: D56065247 fbshipit-source-id: f5a985dd8f8b84f2f9e1818b3719b43c5a1b05b3
1 parent 36ef4de commit 4964a70

File tree

4 files changed

+17
-12
lines changed

4 files changed

+17
-12
lines changed

cachelib/allocator/memory/tests/MemoryAllocatorTest.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,13 @@ TEST_F(MemoryAllocatorTest, ResizePool) {
510510

511511
ASSERT_TRUE(m.resizePools(p1, p2, Slab::kSize));
512512

513-
ASSERT_THROW({ m.resizePools(invalidPoolId, p2, Slab::kSize); },
514-
std::invalid_argument);
513+
ASSERT_THROW(
514+
{ m.resizePools(invalidPoolId, p2, Slab::kSize); },
515+
std::invalid_argument);
515516

516-
ASSERT_THROW({ m.resizePools(p1, invalidPoolId, Slab::kSize); },
517-
std::invalid_argument);
517+
ASSERT_THROW(
518+
{ m.resizePools(p1, invalidPoolId, Slab::kSize); },
519+
std::invalid_argument);
518520
}
519521

520522
TEST_F(MemoryAllocatorTest, GrowShrinkPool) {

cachelib/allocator/nvmcache/tests/NavySetupTest.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,9 @@ TEST(NavySetupTest, EnginesSetup) {
261261
// Send the key by length
262262
cfg.setEnginesSelector([](HashedKey hk) { return hk.key().size() % 2; });
263263

264-
EXPECT_THROW({ createNavyCache(cfg, {}, {}, true, nullptr, false); },
265-
std::invalid_argument);
264+
EXPECT_THROW(
265+
{ createNavyCache(cfg, {}, {}, true, nullptr, false); },
266+
std::invalid_argument);
266267
}
267268

268269
{
@@ -277,8 +278,9 @@ TEST(NavySetupTest, EnginesSetup) {
277278
cfg.addEnginePair(std::move(pair1));
278279

279280
// Exception. No engine selector.
280-
EXPECT_THROW({ createNavyCache(cfg, {}, {}, true, nullptr, false); },
281-
std::invalid_argument);
281+
EXPECT_THROW(
282+
{ createNavyCache(cfg, {}, {}, true, nullptr, false); },
283+
std::invalid_argument);
282284
}
283285

284286
{
@@ -297,8 +299,9 @@ TEST(NavySetupTest, EnginesSetup) {
297299
cfg.setEnginesSelector([](HashedKey hk) { return hk.key().size() % 2; });
298300

299301
// Exception. The last block cache does not take the full psace.
300-
EXPECT_THROW({ createNavyCache(cfg, {}, {}, true, nullptr, false); },
301-
std::invalid_argument);
302+
EXPECT_THROW(
303+
{ createNavyCache(cfg, {}, {}, true, nullptr, false); },
304+
std::invalid_argument);
302305
}
303306
}
304307
} // namespace tests

cachelib/cachebench/runner/AsyncCacheStressor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ class AsyncCacheStressor : public Stressor {
442442
try {
443443
// at the end of every operation, throttle per the config.
444444
SCOPE_EXIT { throttleFn(); };
445-
// detect refcount leaks when run in debug mode.
445+
// detect refcount leaks when run in debug mode.
446446
#ifndef NDEBUG
447447
auto checkCnt = [](int cnt) {
448448
if (cnt != 0) {

cachelib/cachebench/runner/CacheStressor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class CacheStressor : public Stressor {
303303
try {
304304
// at the end of every operation, throttle per the config.
305305
SCOPE_EXIT { throttleFn(); };
306-
// detect refcount leaks when run in debug mode.
306+
// detect refcount leaks when run in debug mode.
307307
#ifndef NDEBUG
308308
auto checkCnt = [useCombinedLockForIterators =
309309
config_.useCombinedLockForIterators](int cnt) {

0 commit comments

Comments
 (0)