mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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
|
|
@ -138,10 +138,11 @@ public:
|
|||
void set_initial_value(const StringName &p_setting, const Variant &p_value, bool p_update_current = false);
|
||||
void set_restart_if_changed(const StringName &p_setting, bool p_restart);
|
||||
void set_manually(const StringName &p_setting, const Variant &p_value, bool p_emit_signal = false) {
|
||||
if (p_emit_signal)
|
||||
if (p_emit_signal) {
|
||||
_set(p_setting, p_value);
|
||||
else
|
||||
} else {
|
||||
_set_only(p_setting, p_value);
|
||||
}
|
||||
}
|
||||
bool property_can_revert(const String &p_setting);
|
||||
Variant property_get_revert(const String &p_setting);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue