[Bf-blender-cvs] [65bbac6692a] master: Cleanup: clang-format

Campbell Barton noreply at git.blender.org
Tue Nov 9 14:55:59 CET 2021


Commit: 65bbac6692af373e943fceeb26f6db9fc45c10cb
Author: Campbell Barton
Date:   Wed Nov 10 00:55:05 2021 +1100
Branches: master
https://developer.blender.org/rB65bbac6692af373e943fceeb26f6db9fc45c10cb

Cleanup: clang-format

===================================================================

M	source/blender/blenloader/intern/versioning_common.cc
M	source/blender/draw/engines/basic/basic_engine.c
M	source/blender/draw/engines/image/image_drawing_mode.hh
M	source/blender/draw/engines/image/image_engine.h
M	source/blender/draw/engines/image/image_private.hh
M	source/blender/draw/engines/image/image_space_image.hh
M	source/blender/draw/engines/image/image_space_node.hh
M	source/blender/draw/tests/shaders_test.cc
M	source/blender/editors/armature/armature_relations.c
M	source/blender/makesrna/intern/rna_object_force.c
M	source/blender/makesrna/intern/rna_ui.c
M	source/blender/nodes/geometry/nodes/node_geo_collection_info.cc
M	source/blender/nodes/geometry/nodes/node_geo_curve_primitive_spiral.cc
M	source/blender/nodes/geometry/nodes/node_geo_object_info.cc

===================================================================

diff --git a/source/blender/blenloader/intern/versioning_common.cc b/source/blender/blenloader/intern/versioning_common.cc
index c7ff496fa20..61119b80fdd 100644
--- a/source/blender/blenloader/intern/versioning_common.cc
+++ b/source/blender/blenloader/intern/versioning_common.cc
@@ -127,9 +127,9 @@ void version_node_input_socket_name(bNodeTree *ntree,
 }
 
 void version_node_output_socket_name(bNodeTree *ntree,
-                                    const int node_type,
-                                    const char *old_name,
-                                    const char *new_name)
+                                     const int node_type,
+                                     const char *old_name,
+                                     const char *new_name)
 {
   LISTBASE_FOREACH (bNode *, node, &ntree->nodes) {
     if (node->type == node_type) {
diff --git a/source/blender/draw/engines/basic/basic_engine.c b/source/blender/draw/engines/basic/basic_engine.c
index ec149c6cffa..8a825a7c81f 100644
--- a/source/blender/draw/engines/basic/basic_engine.c
+++ b/source/blender/draw/engines/basic/basic_engine.c
@@ -38,7 +38,6 @@
 #include "basic_engine.h"
 #include "basic_private.h"
 
-
 #define BASIC_ENGINE "BLENDER_BASIC"
 
 /* *********** LISTS *********** */
@@ -107,14 +106,14 @@ static void basic_cache_init(void *vedata)
              BASIC_shaders_pointcloud_depth_conservative_sh_get(draw_ctx->sh_cfg) :
              BASIC_shaders_pointcloud_depth_sh_get(draw_ctx->sh_cfg);
     DRW_PASS_CREATE(psl->depth_pass_pointcloud[i], state | clip_state | infront_state);
-    stl->g_data->depth_pointcloud_shgrp[i] = grp = DRW_shgroup_create(sh, psl->depth_pass_pointcloud[i]);
+    stl->g_data->depth_pointcloud_shgrp[i] = grp = DRW_shgroup_create(
+        sh, psl->depth_pass_pointcloud[i]);
     DRW_shgroup_uniform_vec2(grp, "sizeViewport", DRW_viewport_size_get(), 1);
     DRW_shgroup_uniform_vec2(grp, "sizeViewportInv", DRW_viewport_invert_size_get(), 1);
 
     stl->g_data->depth_hair_shgrp[i] = grp = DRW_shgroup_create(
         BASIC_shaders_depth_sh_get(draw_ctx->sh_cfg), psl->depth_pass[i]);
 
-
     sh = DRW_state_is_select() ? BASIC_shaders_depth_conservative_sh_get(draw_ctx->sh_cfg) :
                                  BASIC_shaders_depth_sh_get(draw_ctx->sh_cfg);
     state |= DRW_STATE_CULL_BACK;
diff --git a/source/blender/draw/engines/image/image_drawing_mode.hh b/source/blender/draw/engines/image/image_drawing_mode.hh
index f2f5bbe554c..d81b0971982 100644
--- a/source/blender/draw/engines/image/image_drawing_mode.hh
+++ b/source/blender/draw/engines/image/image_drawing_mode.hh
@@ -151,4 +151,3 @@ class DefaultDrawingMode : public AbstractDrawingMode {
 };
 
 }  // namespace blender::draw::image_engine
-
diff --git a/source/blender/draw/engines/image/image_engine.h b/source/blender/draw/engines/image/image_engine.h
index feee599971e..f7e2f53d41b 100644
--- a/source/blender/draw/engines/image/image_engine.h
+++ b/source/blender/draw/engines/image/image_engine.h
@@ -31,4 +31,3 @@ extern DrawEngineType draw_engine_image_type;
 #ifdef __cplusplus
 }
 #endif
-
diff --git a/source/blender/draw/engines/image/image_private.hh b/source/blender/draw/engines/image/image_private.hh
index 2b3ae7dc3bd..a62cd882e40 100644
--- a/source/blender/draw/engines/image/image_private.hh
+++ b/source/blender/draw/engines/image/image_private.hh
@@ -194,4 +194,3 @@ void IMAGE_shader_library_ensure(void);
 void IMAGE_shader_free(void);
 
 }  // namespace blender::draw::image_engine
-
diff --git a/source/blender/draw/engines/image/image_space_image.hh b/source/blender/draw/engines/image/image_space_image.hh
index 9c868dbcd1a..7728a963254 100644
--- a/source/blender/draw/engines/image/image_space_image.hh
+++ b/source/blender/draw/engines/image/image_space_image.hh
@@ -180,4 +180,3 @@ class SpaceImageAccessor : public AbstractSpaceAccessor {
 };
 
 }  // namespace blender::draw::image_engine
-
diff --git a/source/blender/draw/engines/image/image_space_node.hh b/source/blender/draw/engines/image/image_space_node.hh
index e70aaaebf84..3ca18eec742 100644
--- a/source/blender/draw/engines/image/image_space_node.hh
+++ b/source/blender/draw/engines/image/image_space_node.hh
@@ -136,4 +136,3 @@ class SpaceNodeAccessor : public AbstractSpaceAccessor {
 };
 
 }  // namespace blender::draw::image_engine
-
diff --git a/source/blender/draw/tests/shaders_test.cc b/source/blender/draw/tests/shaders_test.cc
index 3826e8a6e6c..ef702821a59 100644
--- a/source/blender/draw/tests/shaders_test.cc
+++ b/source/blender/draw/tests/shaders_test.cc
@@ -13,12 +13,12 @@
 
 #include "intern/draw_manager_testing.h"
 
+#include "engines/basic/basic_private.h"
 #include "engines/eevee/eevee_private.h"
 #include "engines/gpencil/gpencil_engine.h"
 #include "engines/image/image_private.hh"
 #include "engines/overlay/overlay_private.h"
 #include "engines/workbench/workbench_private.h"
-#include "engines/basic/basic_private.h"
 #include "intern/draw_shader.h"
 
 namespace blender::draw {
diff --git a/source/blender/editors/armature/armature_relations.c b/source/blender/editors/armature/armature_relations.c
index 0b96aec1d41..ac1c9418af9 100644
--- a/source/blender/editors/armature/armature_relations.c
+++ b/source/blender/editors/armature/armature_relations.c
@@ -1030,8 +1030,8 @@ static int armature_parent_clear_exec(bContext *C, wmOperator *op)
 }
 
 static int armature_parent_clear_invoke(bContext *C,
-                                      wmOperator *UNUSED(op),
-                                      const wmEvent *UNUSED(event))
+                                        wmOperator *UNUSED(op),
+                                        const wmEvent *UNUSED(event))
 {
   // False when no selected bones are connected to the active bone.
   bool enable_disconnect = false;
@@ -1066,7 +1066,8 @@ static int armature_parent_clear_invoke(bContext *C,
 
   uiLayout *row_disconnect = uiLayoutRow(layout, false);
   uiLayoutSetEnabled(row_disconnect, enable_disconnect);
-  uiItemEnumO(row_disconnect, "ARMATURE_OT_parent_clear", NULL, 0, "type", ARM_PAR_CLEAR_DISCONNECT);
+  uiItemEnumO(
+      row_disconnect, "ARMATURE_OT_parent_clear", NULL, 0, "type", ARM_PAR_CLEAR_DISCONNECT);
 
   UI_popup_menu_end(C, pup);
 
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c
index 186222d2ca0..2fca9f0af7a 100644
--- a/source/blender/makesrna/intern/rna_object_force.c
+++ b/source/blender/makesrna/intern/rna_object_force.c
@@ -1006,8 +1006,7 @@ static void rna_def_pointcache_common(StructRNA *srna)
   prop = RNA_def_property(srna, "is_frame_skip", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "flag", PTCACHE_FRAMES_SKIPPED);
   RNA_def_property_clear_flag(prop, PROP_EDITABLE);
-  RNA_def_property_ui_text(
-      prop, "", "Some frames were skipped while baking/saving that cache");
+  RNA_def_property_ui_text(prop, "", "Some frames were skipped while baking/saving that cache");
 
   prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
   RNA_def_property_string_sdna(prop, NULL, "name");
diff --git a/source/blender/makesrna/intern/rna_ui.c b/source/blender/makesrna/intern/rna_ui.c
index c73599c19ac..05ed5e096d8 100644
--- a/source/blender/makesrna/intern/rna_ui.c
+++ b/source/blender/makesrna/intern/rna_ui.c
@@ -1471,15 +1471,12 @@ static void rna_def_panel(BlenderRNA *brna)
   RNA_def_property_string_sdna(prop, NULL, "type->category");
   RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
   RNA_def_property_ui_text(
-      prop,
-      "",
-      "The category (tab) in which the panel will be displayed, when applicable");
+      prop, "", "The category (tab) in which the panel will be displayed, when applicable");
 
   prop = RNA_def_property(srna, "bl_owner_id", PROP_STRING, PROP_NONE);
   RNA_def_property_string_sdna(prop, NULL, "type->owner_id");
   RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
-  RNA_def_property_ui_text(
-      prop, "", "The ID owning the data displayed in the panel, if any");
+  RNA_def_property_ui_text(prop, "", "The ID owning the data displayed in the panel, if any");
 
   prop = RNA_def_property(srna, "bl_space_type", PROP_ENUM, PROP_NONE);
   RNA_def_property_enum_sdna(prop, NULL, "type->space_type");
diff --git a/source/blender/nodes/geometry/nodes/node_geo_collection_info.cc b/source/blender/nodes/geometry/nodes/node_geo_collection_info.cc
index f068e621596..503711fedfe 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_collection_info.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_collection_info.cc
@@ -38,7 +38,7 @@ static void geo_node_collection_info_declare(NodeDeclarationBuilder &b)
   b.add_input<decl::Bool>(N_("Reset Children"))
       .description(
           N_("Reset the transforms of every child instance in the output. Only used when Separate "
-          "Children is enabled"));
+             "Children is enabled"));
   b.add_output<decl::Geometry>(N_("Geometry"));
 }
 
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_spiral.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_spiral.cc
index 2a872fd82cb..1384165e520 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_spiral.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_spiral.cc
@@ -35,13 +35,11 @@ static void geo_node_curve_primitive_spiral_declare(NodeDeclarationBuilder &b)
   b.add_input<decl::Float>(N_("Start Radius"))
       .default_value(1.0f)
       .subtype(PROP_DISTANCE)
-      .description(
-          N_("Horizontal Distance from the Z axis at the start of the spiral"));
+      .description(N_("Horizontal Distance from the Z axis at the start of the spiral"));
   b.add_input<decl::Float>(N_("End Radius"))
       .default_value(2.0f)
       .subtype(PROP_DISTANCE)
-      .description(
-          N_("Horizontal Distance from the Z axis at the end of the spiral"));
+      .description(N_("Horizontal Distance from the Z axis at the end of the spiral"));
   b.add_input<decl::Float>(N_("Height"))
       .default_value(2.0f)
       .subtype(PROP_DISTANCE)
diff --git a/source/blender/nodes/geometry/nodes/node_geo_object_info.cc

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list