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:
@ -37,7 +37,6 @@
|
||||
#include "servers/audio_server.h"
|
||||
|
||||
class AudioStreamPlayback : public Reference {
|
||||
|
||||
GDCLASS(AudioStreamPlayback, Reference);
|
||||
|
||||
public:
|
||||
@ -54,7 +53,6 @@ public:
|
||||
};
|
||||
|
||||
class AudioStreamPlaybackResampled : public AudioStreamPlayback {
|
||||
|
||||
GDCLASS(AudioStreamPlaybackResampled, AudioStreamPlayback);
|
||||
|
||||
enum {
|
||||
@ -80,7 +78,6 @@ public:
|
||||
};
|
||||
|
||||
class AudioStream : public Resource {
|
||||
|
||||
GDCLASS(AudioStream, Resource);
|
||||
OBJ_SAVE_TYPE(AudioStream); // Saves derived classes with common type so they can be interchanged.
|
||||
|
||||
@ -99,7 +96,6 @@ public:
|
||||
class AudioStreamPlaybackMicrophone;
|
||||
|
||||
class AudioStreamMicrophone : public AudioStream {
|
||||
|
||||
GDCLASS(AudioStreamMicrophone, AudioStream);
|
||||
friend class AudioStreamPlaybackMicrophone;
|
||||
|
||||
@ -118,7 +114,6 @@ public:
|
||||
};
|
||||
|
||||
class AudioStreamPlaybackMicrophone : public AudioStreamPlaybackResampled {
|
||||
|
||||
GDCLASS(AudioStreamPlaybackMicrophone, AudioStreamPlaybackResampled);
|
||||
friend class AudioStreamMicrophone;
|
||||
|
||||
@ -152,7 +147,6 @@ public:
|
||||
class AudioStreamPlaybackRandomPitch;
|
||||
|
||||
class AudioStreamRandomPitch : public AudioStream {
|
||||
|
||||
GDCLASS(AudioStreamRandomPitch, AudioStream);
|
||||
friend class AudioStreamPlaybackRandomPitch;
|
||||
|
||||
@ -179,7 +173,6 @@ public:
|
||||
};
|
||||
|
||||
class AudioStreamPlaybackRandomPitch : public AudioStreamPlayback {
|
||||
|
||||
GDCLASS(AudioStreamPlaybackRandomPitch, AudioStreamPlayback);
|
||||
friend class AudioStreamRandomPitch;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user