You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +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:
@@ -41,7 +41,6 @@
|
||||
#include "scene/resources/visual_shader.h"
|
||||
|
||||
class VisualShaderNodePlugin : public Reference {
|
||||
|
||||
GDCLASS(VisualShaderNodePlugin, Reference);
|
||||
|
||||
protected:
|
||||
@@ -52,7 +51,6 @@ public:
|
||||
};
|
||||
|
||||
class VisualShaderEditor : public VBoxContainer {
|
||||
|
||||
GDCLASS(VisualShaderEditor, VBoxContainer);
|
||||
|
||||
CustomPropertyEditor *property_editor;
|
||||
@@ -157,7 +155,6 @@ class VisualShaderEditor : public VBoxContainer {
|
||||
}
|
||||
};
|
||||
struct _OptionComparator {
|
||||
|
||||
_FORCE_INLINE_ bool operator()(const AddOption &a, const AddOption &b) const {
|
||||
return a.category.count("/") > b.category.count("/") || (a.category + "/" + a.name).naturalnocasecmp_to(b.category + "/" + b.name) < 0;
|
||||
}
|
||||
@@ -290,7 +287,6 @@ public:
|
||||
};
|
||||
|
||||
class VisualShaderEditorPlugin : public EditorPlugin {
|
||||
|
||||
GDCLASS(VisualShaderEditorPlugin, EditorPlugin);
|
||||
|
||||
VisualShaderEditor *visual_shader_editor;
|
||||
@@ -309,7 +305,6 @@ public:
|
||||
};
|
||||
|
||||
class VisualShaderNodePluginDefault : public VisualShaderNodePlugin {
|
||||
|
||||
GDCLASS(VisualShaderNodePluginDefault, VisualShaderNodePlugin);
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user