You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks
Which means that reduz' beloved style which we all became used to will now be changed automatically to remove the first empty line. This makes us lean closer to 1TBS (the one true brace style) instead of hybridating it with some Allman-inspired spacing. There's still the case of braces around single-statement blocks that needs to be addressed (but clang-format can't help with that, but clang-tidy may if we agree about it). Part of #33027.
This commit is contained in:
@@ -43,7 +43,6 @@ class JavaObject;
|
||||
#endif
|
||||
|
||||
class JavaClass : public Reference {
|
||||
|
||||
GDCLASS(JavaClass, Reference);
|
||||
|
||||
#ifdef ANDROID_ENABLED
|
||||
@@ -68,7 +67,6 @@ class JavaClass : public Reference {
|
||||
Map<StringName, Variant> constant_map;
|
||||
|
||||
struct MethodInfo {
|
||||
|
||||
bool _static;
|
||||
Vector<uint32_t> param_types;
|
||||
Vector<StringName> param_sigs;
|
||||
@@ -77,12 +75,10 @@ class JavaClass : public Reference {
|
||||
};
|
||||
|
||||
_FORCE_INLINE_ static void _convert_to_variant_type(int p_sig, Variant::Type &r_type, float &likelihood) {
|
||||
|
||||
likelihood = 1.0;
|
||||
r_type = Variant::NIL;
|
||||
|
||||
switch (p_sig) {
|
||||
|
||||
case ARG_TYPE_VOID:
|
||||
r_type = Variant::NIL;
|
||||
break;
|
||||
@@ -190,7 +186,6 @@ public:
|
||||
};
|
||||
|
||||
class JavaObject : public Reference {
|
||||
|
||||
GDCLASS(JavaObject, Reference);
|
||||
|
||||
#ifdef ANDROID_ENABLED
|
||||
@@ -210,7 +205,6 @@ public:
|
||||
};
|
||||
|
||||
class JavaClassWrapper : public Object {
|
||||
|
||||
GDCLASS(JavaClassWrapper, Object);
|
||||
|
||||
#ifdef ANDROID_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user