Style: Enforce braces around if blocks and loops
Using clang-tidy's `readability-braces-around-statements`. https://clang.llvm.org/extra/clang-tidy/checks/readability-braces-around-statements.html
This commit is contained in:
parent
07bc4e2f96
commit
0ee0fa42e6
683 changed files with 22803 additions and 12225 deletions
|
|
@ -38,8 +38,9 @@ Error (*Thread::set_name_func)(const String &) = nullptr;
|
|||
Thread::ID Thread::_main_thread_id = 0;
|
||||
|
||||
Thread::ID Thread::get_caller_id() {
|
||||
if (get_thread_id_func)
|
||||
if (get_thread_id_func) {
|
||||
return get_thread_id_func();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -51,13 +52,15 @@ Thread *Thread::create(ThreadCreateCallback p_callback, void *p_user, const Sett
|
|||
}
|
||||
|
||||
void Thread::wait_to_finish(Thread *p_thread) {
|
||||
if (wait_to_finish_func)
|
||||
if (wait_to_finish_func) {
|
||||
wait_to_finish_func(p_thread);
|
||||
}
|
||||
}
|
||||
|
||||
Error Thread::set_name(const String &p_name) {
|
||||
if (set_name_func)
|
||||
if (set_name_func) {
|
||||
return set_name_func(p_name);
|
||||
}
|
||||
|
||||
return ERR_UNAVAILABLE;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue