You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Style: clang-format: Disable AllowShortIfStatementsOnASingleLine
Part of #33027, also discussed in #29848. Enforcing the use of brackets even on single line statements would be preferred, but `clang-format` doesn't have this functionality yet.
This commit is contained in:
@@ -1372,7 +1372,8 @@ void SceneTree::get_argument_options(const StringName &p_function, int p_idx, Li
|
||||
|
||||
SceneTree::SceneTree() {
|
||||
|
||||
if (singleton == nullptr) singleton = this;
|
||||
if (singleton == nullptr)
|
||||
singleton = this;
|
||||
_quit = false;
|
||||
accept_quit = true;
|
||||
quit_on_go_back = true;
|
||||
@@ -1478,5 +1479,6 @@ SceneTree::~SceneTree() {
|
||||
memdelete(root);
|
||||
}
|
||||
|
||||
if (singleton == this) singleton = nullptr;
|
||||
if (singleton == this)
|
||||
singleton = nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user