mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +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:
parent
03b13e0c69
commit
e956e80c1f
130 changed files with 967 additions and 511 deletions
|
|
@ -423,7 +423,8 @@ String EditorExportPlatformIOS::_get_linker_flags() {
|
|||
String result;
|
||||
for (int i = 0; i < export_plugins.size(); ++i) {
|
||||
String flags = export_plugins[i]->get_ios_linker_flags();
|
||||
if (flags.length() == 0) continue;
|
||||
if (flags.length() == 0)
|
||||
continue;
|
||||
if (result.length() > 0) {
|
||||
result += ' ';
|
||||
}
|
||||
|
|
@ -456,8 +457,10 @@ void EditorExportPlatformIOS::_blend_and_rotate(Ref<Image> &p_dst, Ref<Image> &p
|
|||
int xs = (x_pos >= 0) ? 0 : -x_pos;
|
||||
int ys = (y_pos >= 0) ? 0 : -y_pos;
|
||||
|
||||
if (sw + x_pos > p_dst->get_width()) sw = p_dst->get_width() - x_pos;
|
||||
if (sh + y_pos > p_dst->get_height()) sh = p_dst->get_height() - y_pos;
|
||||
if (sw + x_pos > p_dst->get_width())
|
||||
sw = p_dst->get_width() - x_pos;
|
||||
if (sh + y_pos > p_dst->get_height())
|
||||
sh = p_dst->get_height() - y_pos;
|
||||
|
||||
for (int y = ys; y < sh; y++) {
|
||||
for (int x = xs; x < sw; x++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue