You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +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:
@@ -99,7 +99,8 @@ class AudioEffectLowPassFilter : public AudioEffectFilter {
|
||||
GDCLASS(AudioEffectLowPassFilter, AudioEffectFilter);
|
||||
|
||||
void _validate_property(PropertyInfo &property) const {
|
||||
if (property.name == "gain") property.usage = 0;
|
||||
if (property.name == "gain")
|
||||
property.usage = 0;
|
||||
}
|
||||
|
||||
public:
|
||||
@@ -110,7 +111,8 @@ public:
|
||||
class AudioEffectHighPassFilter : public AudioEffectFilter {
|
||||
GDCLASS(AudioEffectHighPassFilter, AudioEffectFilter);
|
||||
void _validate_property(PropertyInfo &property) const {
|
||||
if (property.name == "gain") property.usage = 0;
|
||||
if (property.name == "gain")
|
||||
property.usage = 0;
|
||||
}
|
||||
|
||||
public:
|
||||
@@ -121,7 +123,8 @@ public:
|
||||
class AudioEffectBandPassFilter : public AudioEffectFilter {
|
||||
GDCLASS(AudioEffectBandPassFilter, AudioEffectFilter);
|
||||
void _validate_property(PropertyInfo &property) const {
|
||||
if (property.name == "gain") property.usage = 0;
|
||||
if (property.name == "gain")
|
||||
property.usage = 0;
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
@@ -50,7 +50,8 @@ static void smbFft(float *fftBuffer, long fftFrameSize, long sign)
|
||||
|
||||
for (i = 2; i < 2 * fftFrameSize - 2; i += 2) {
|
||||
for (bitm = 2, j = 0; bitm < 2 * fftFrameSize; bitm <<= 1) {
|
||||
if (i & bitm) j++;
|
||||
if (i & bitm)
|
||||
j++;
|
||||
j <<= 1;
|
||||
}
|
||||
if (i < j) {
|
||||
|
||||
Reference in New Issue
Block a user