You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
#include "core/os/memory.h"
|
||||
|
||||
Thread *ThreadUWP::create_func_uwp(ThreadCreateCallback p_callback, void *p_user, const Settings &) {
|
||||
|
||||
ThreadUWP *thread = memnew(ThreadUWP);
|
||||
|
||||
std::thread new_thread(p_callback, p_user);
|
||||
@@ -43,18 +42,15 @@ Thread *ThreadUWP::create_func_uwp(ThreadCreateCallback p_callback, void *p_user
|
||||
};
|
||||
|
||||
Thread::ID ThreadUWP::get_thread_id_func_uwp() {
|
||||
|
||||
return std::hash<std::thread::id>()(std::this_thread::get_id());
|
||||
};
|
||||
|
||||
void ThreadUWP::wait_to_finish_func_uwp(Thread *p_thread) {
|
||||
|
||||
ThreadUWP *tp = static_cast<ThreadUWP *>(p_thread);
|
||||
tp->thread.join();
|
||||
};
|
||||
|
||||
Thread::ID ThreadUWP::get_id() const {
|
||||
|
||||
return std::hash<std::thread::id>()(thread.get_id());
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user