From b724a4d90c2dcff0e800f7ab630b6ad0d5be1e58 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 11 Aug 2020 11:08:10 -0400 Subject: General: Tidy up clang-format warnings part 2 --- src/common/bit_field.h | 2 +- src/common/detached_tasks.cpp | 3 +-- src/common/math_util.h | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/common') diff --git a/src/common/bit_field.h b/src/common/bit_field.h index dfa38a357..26ae6c7fc 100644 --- a/src/common/bit_field.h +++ b/src/common/bit_field.h @@ -161,7 +161,7 @@ public: } } - /// This constructor and assignment operator might be considered ambiguous: + // This constructor and assignment operator might be considered ambiguous: // Would they initialize the storage or just the bitfield? // Hence, delete them. Use the Assign method to set bitfield values! BitField(T val) = delete; diff --git a/src/common/detached_tasks.cpp b/src/common/detached_tasks.cpp index f268d6021..f2b4939df 100644 --- a/src/common/detached_tasks.cpp +++ b/src/common/detached_tasks.cpp @@ -34,8 +34,7 @@ void DetachedTasks::AddTask(std::function task) { std::unique_lock lock{instance->mutex}; --instance->count; std::notify_all_at_thread_exit(instance->cv, std::move(lock)); - }) - .detach(); + }).detach(); } } // namespace Common diff --git a/src/common/math_util.h b/src/common/math_util.h index 83ef0201f..abca3177c 100644 --- a/src/common/math_util.h +++ b/src/common/math_util.h @@ -54,6 +54,6 @@ struct Rectangle { }; template -Rectangle(T, T, T, T)->Rectangle; +Rectangle(T, T, T, T) -> Rectangle; } // namespace Common -- cgit v1.2.3