From 0be6d925dc3c6413bce7a3ccb49631b8e4a6e67a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= <rverschelde@gmail.com> Date: Thu, 14 May 2020 13:23:58 +0200 Subject: 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. --- drivers/gles2/rasterizer_scene_gles2.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'drivers/gles2/rasterizer_scene_gles2.h') diff --git a/drivers/gles2/rasterizer_scene_gles2.h b/drivers/gles2/rasterizer_scene_gles2.h index 56c0e632c2..d017fc49a2 100644 --- a/drivers/gles2/rasterizer_scene_gles2.h +++ b/drivers/gles2/rasterizer_scene_gles2.h @@ -77,7 +77,6 @@ public: RasterizerStorageGLES2 *storage; struct State { - bool texscreen_copied; int current_blend_mode; float current_line_width; @@ -195,7 +194,6 @@ public: /* REFLECTION PROBE INSTANCE */ struct ReflectionProbeInstance { - RasterizerStorageGLES2::ReflectionProbe *probe_ptr; RID probe; RID self; @@ -387,7 +385,6 @@ public: /* LIGHT INSTANCE */ struct LightInstance { - struct ShadowTransform { CameraMatrix camera; Transform transform; @@ -449,7 +446,6 @@ public: }; struct RenderList { - enum { MAX_LIGHTS = 255, MAX_REFLECTION_PROBES = 255, @@ -534,7 +530,6 @@ public: } struct SortByDepth { - _FORCE_INLINE_ bool operator()(const Element *A, const Element *B) const { return A->instance->depth < B->instance->depth; } @@ -551,7 +546,6 @@ public: } struct SortByReverseDepthAndPriority { - _FORCE_INLINE_ bool operator()(const Element *A, const Element *B) const { if (A->priority == B->priority) { return A->instance->depth > B->instance->depth; -- cgit v1.2.3