Style: Trim trailing whitespace and ensure newline at EOF

Found by apply the file_format checks again via #91597.
This commit is contained in:
Rémi Verschelde 2024-05-08 10:04:47 +02:00
parent 17a81260cb
commit 7d03b1de0b
No known key found for this signature in database
GPG key ID: C3336907360768E1
54 changed files with 54 additions and 66 deletions

View file

@ -43,4 +43,3 @@ CheckOptions:
- key: readability-braces-around-statements.ShortStatementLines - key: readability-braces-around-statements.ShortStatementLines
value: '0' value: '0'
... ...

View file

@ -21,4 +21,3 @@ runs:
with: with:
name: 'godot-api-dump' name: 'godot-api-dump'
path: './godot-api/*' path: './godot-api/*'

View file

@ -588,7 +588,7 @@ def build_gles3_header(
fd.write("\t}\n\n") fd.write("\t}\n\n")
fd.write("};\n\n") fd.write("};\n\n")
fd.write("#endif\n\n") fd.write("#endif\n")
def build_gles3_headers(target, source, env): def build_gles3_headers(target, source, env):

View file

@ -1,2 +1 @@
/* Localized versions of Info.plist keys */ /* Localized versions of Info.plist keys */

View file

@ -5,4 +5,3 @@ deadlock:tests/core/templates/test_command_queue.h
deadlock:modules/text_server_adv/text_server_adv.cpp deadlock:modules/text_server_adv/text_server_adv.cpp
deadlock:modules/text_server_fb/text_server_fb.cpp deadlock:modules/text_server_fb/text_server_fb.cpp
race:modules/navigation/nav_map.cpp race:modules/navigation/nav_map.cpp

View file

@ -6,4 +6,3 @@ func test():
var a := Foo.A var a := Foo.A
var b := a as int + 1 var b := a as int + 1
print(b) print(b)

View file

@ -3,4 +3,3 @@ const Constants = preload("gdscript_to_preload.notest.gd")
func test(): func test():
var a := Constants.A var a := Constants.A
print(a) print(a)

View file

@ -23,4 +23,3 @@ func test():
bar([3]) bar([3])
bar([4]) bar([4])
bar([5]) bar([5])

View file

@ -4,4 +4,3 @@ func test():
# Validated native static call without return value. # Validated native static call without return value.
Node.print_orphan_nodes() Node.print_orphan_nodes()

View file

@ -42,4 +42,3 @@ class GodotProjectManager : GodotEditor() {
// Nothing to do here.. we have yet to select a project to load. // Nothing to do here.. we have yet to select a project to load.
} }
} }

View file

@ -1955,4 +1955,3 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback
private int mEGLContextClientVersion; private int mEGLContextClientVersion;
private boolean mPreserveEGLContextOnPause; private boolean mPreserveEGLContextOnPause;
} }

View file

@ -36,4 +36,3 @@ nexusPublishing {
} }
} }
} }

View file

@ -382,7 +382,7 @@ TEST_CASE_TEMPLATE("[Math] remap", T, float, double) {
CHECK(Math::remap((T)-200.0, (T)-100.0, (T)-200.0, (T)0.0, (T)-1000.0) == doctest::Approx((T)-1000.0)); CHECK(Math::remap((T)-200.0, (T)-100.0, (T)-200.0, (T)0.0, (T)-1000.0) == doctest::Approx((T)-1000.0));
CHECK(Math::remap((T)-250.0, (T)-100.0, (T)-200.0, (T)0.0, (T)-1000.0) == doctest::Approx((T)-1500.0)); CHECK(Math::remap((T)-250.0, (T)-100.0, (T)-200.0, (T)0.0, (T)-1000.0) == doctest::Approx((T)-1500.0));
// Note: undefined behaviour can happen when `p_istart == p_istop`. We don't bother testing this as it will // Note: undefined behavior can happen when `p_istart == p_istop`. We don't bother testing this as it will
// vary between hardware and compilers properly implementing IEEE 754. // vary between hardware and compilers properly implementing IEEE 754.
} }

View file

@ -48,4 +48,3 @@ protected:
}; };
#endif #endif