Update clang-format (pre-commit) (#2312)

This commit is contained in:
Bart Louwers
2024-04-24 06:56:10 +02:00
committed by GitHub
parent 3454fda628
commit 54a07f4b9c
9 changed files with 14 additions and 13 deletions

View File

@@ -27,7 +27,7 @@ TEST(Actor, Construction) {
TEST(Actor, Destruction) {
struct TestActor {
TestActor(ActorRef<TestActor>, bool& destructed_)
: destructed(destructed_){};
: destructed(destructed_) {};
~TestActor() { destructed = true; }
bool& destructed;
@@ -136,7 +136,7 @@ TEST(Actor, DestructionAllowedInReceiveOnSameThread) {
// allows for self-closing actors
struct TestActor {
TestActor(ActorRef<TestActor>){};
TestActor(ActorRef<TestActor>) {};
void callMeBack(std::function<void()> callback) { callback(); }
};
@@ -162,7 +162,7 @@ TEST(Actor, SelfDestructionDoesntCrashWaitingReceivingThreads) {
// callback
struct TestActor {
TestActor(ActorRef<TestActor>){};
TestActor(ActorRef<TestActor>) {};
void callMeBack(std::function<void()> callback) { callback(); }
};
@@ -334,7 +334,7 @@ TEST(Actor, TwoPhaseConstruction) {
struct TestActor {
TestActor(ActorRef<TestActor>, std::shared_ptr<bool> destroyed_)
: destroyed(std::move(destroyed_)){};
: destroyed(std::move(destroyed_)) {};
~TestActor() { *destroyed = true; }