Cleanup: add trailing commas to avoid right shift
authorCampbell Barton <ideasman42@gmail.com>
Thu, 18 Apr 2019 15:17:32 +0000 (17:17 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 18 Apr 2019 15:19:44 +0000 (17:19 +0200)
43 files changed:
intern/ghost/intern/GHOST_NDOFManager.cpp
intern/ghost/intern/GHOST_SystemX11.cpp
intern/ghost/intern/GHOST_WindowSDL.cpp
intern/opensubdiv/internal/opensubdiv_device_context_opencl.cc
source/blender/blenkernel/intern/colortools.c
source/blender/blenkernel/intern/smoke.c
source/blender/blenkernel/intern/subdiv_mesh.c
source/blender/blenkernel/intern/tracking.c
source/blender/blenkernel/intern/tracking_util.c
source/blender/blenlib/intern/expr_pylike_eval.c
source/blender/bmesh/intern/bmesh_log.c
source/blender/bmesh/operators/bmo_fill_grid.c
source/blender/bmesh/operators/bmo_hull.c
source/blender/compositor/intern/COM_OpenCLDevice.cpp
source/blender/compositor/operations/COM_MaskOperation.cpp
source/blender/compositor/operations/COM_PlaneCornerPinOperation.cpp
source/blender/compositor/operations/COM_VariableSizeBokehBlurOperation.cpp
source/blender/draw/engines/gpencil/gpencil_render.c
source/blender/draw/intern/draw_cache.c
source/blender/draw/modes/object_mode.c
source/blender/editors/gizmo_library/gizmo_types/cage2d_gizmo.c
source/blender/editors/interface/interface.c
source/blender/editors/interface/interface_draw.c
source/blender/editors/physics/particle_object.c
source/blender/editors/screen/area.c
source/blender/editors/screen/screen_context.c
source/blender/editors/space_clip/tracking_ops_orient.c
source/blender/editors/transform/transform_orientations.c
source/blender/editors/util/ed_util.c
source/blender/freestyle/intern/python/StrokeShader/BPy_IncreasingColorShader.cpp
source/blender/freestyle/intern/python/StrokeShader/BPy_SmoothingShader.cpp
source/blender/imbuf/intern/indexer.c
source/blender/makesrna/intern/rna_scene.c
source/blender/modifiers/intern/MOD_skin.c
source/blender/nodes/composite/nodes/node_composite_bilateralblur.c
source/blender/nodes/composite/nodes/node_composite_sepcombYCCA.c
source/blender/nodes/composite/nodes/node_composite_sepcombYUVA.c
source/blender/nodes/shader/nodes/node_shader_vectTransform.c
source/blender/python/intern/bpy.c
source/blender/python/intern/bpy_rna_id_collection.c
source/blender/windowmanager/intern/wm_cursors.c
source/blender/windowmanager/intern/wm_operators.c
tests/gtests/blenlib/BLI_polyfill_2d_test.cc

index b407d12..9999bfd 100644 (file)
@@ -96,21 +96,23 @@ static const NDOF_ButtonT Modern3Dx_HID_map[] = {
     NDOF_BUTTON_SHIFT,    NDOF_BUTTON_CTRL,     NDOF_BUTTON_ROTATE, NDOF_BUTTON_PANZOOM,
     NDOF_BUTTON_DOMINANT, NDOF_BUTTON_PLUS,     NDOF_BUTTON_MINUS};
 
-static const NDOF_ButtonT SpaceExplorer_HID_map[] = {NDOF_BUTTON_1,
-                                                     NDOF_BUTTON_2,
-                                                     NDOF_BUTTON_TOP,
-                                                     NDOF_BUTTON_LEFT,
-                                                     NDOF_BUTTON_RIGHT,
-                                                     NDOF_BUTTON_FRONT,
-                                                     NDOF_BUTTON_ESC,
-                                                     NDOF_BUTTON_ALT,
-                                                     NDOF_BUTTON_SHIFT,
-                                                     NDOF_BUTTON_CTRL,
-                                                     NDOF_BUTTON_FIT,
-                                                     NDOF_BUTTON_MENU,
-                                                     NDOF_BUTTON_PLUS,
-                                                     NDOF_BUTTON_MINUS,
-                                                     NDOF_BUTTON_ROTATE};
+static const NDOF_ButtonT SpaceExplorer_HID_map[] = {
+    NDOF_BUTTON_1,
+    NDOF_BUTTON_2,
+    NDOF_BUTTON_TOP,
+    NDOF_BUTTON_LEFT,
+    NDOF_BUTTON_RIGHT,
+    NDOF_BUTTON_FRONT,
+    NDOF_BUTTON_ESC,
+    NDOF_BUTTON_ALT,
+    NDOF_BUTTON_SHIFT,
+    NDOF_BUTTON_CTRL,
+    NDOF_BUTTON_FIT,
+    NDOF_BUTTON_MENU,
+    NDOF_BUTTON_PLUS,
+    NDOF_BUTTON_MINUS,
+    NDOF_BUTTON_ROTATE,
+};
 
 // this is the older SpacePilot (sans Pro)
 // thanks to polosson for info about this device
@@ -123,18 +125,20 @@ static const NDOF_ButtonT SpacePilot_HID_map[] = {
     NDOF_BUTTON_NONE  // the CONFIG button -- what does it do?
 };
 
-static const NDOF_ButtonT Generic_HID_map[] = {NDOF_BUTTON_1,
-                                               NDOF_BUTTON_2,
-                                               NDOF_BUTTON_3,
-                                               NDOF_BUTTON_4,
-                                               NDOF_BUTTON_5,
-                                               NDOF_BUTTON_6,
-                                               NDOF_BUTTON_7,
-                                               NDOF_BUTTON_8,
-                                               NDOF_BUTTON_9,
-                                               NDOF_BUTTON_A,
-                                               NDOF_BUTTON_B,
-                                               NDOF_BUTTON_C};
+static const NDOF_ButtonT Generic_HID_map[] = {
+    NDOF_BUTTON_1,
+    NDOF_BUTTON_2,
+    NDOF_BUTTON_3,
+    NDOF_BUTTON_4,
+    NDOF_BUTTON_5,
+    NDOF_BUTTON_6,
+    NDOF_BUTTON_7,
+    NDOF_BUTTON_8,
+    NDOF_BUTTON_9,
+    NDOF_BUTTON_A,
+    NDOF_BUTTON_B,
+    NDOF_BUTTON_C,
+};
 
 static const int genericButtonCount = sizeof(Generic_HID_map) / sizeof(NDOF_ButtonT);
 
index 4d467f3..b850619 100644 (file)
@@ -692,14 +692,16 @@ bool GHOST_SystemX11::processEvents(bool waitForEvent)
 
             if (xev_next.type == KeyPress || xev_next.type == KeyRelease) {
               /* XK_Hyper_L/R currently unused */
-              const static KeySym modifiers[8] = {XK_Shift_L,
-                                                  XK_Shift_R,
-                                                  XK_Control_L,
-                                                  XK_Control_R,
-                                                  XK_Alt_L,
-                                                  XK_Alt_R,
-                                                  XK_Super_L,
-                                                  XK_Super_R};
+              const static KeySym modifiers[8] = {
+                  XK_Shift_L,
+                  XK_Shift_R,
+                  XK_Control_L,
+                  XK_Control_R,
+                  XK_Alt_L,
+                  XK_Alt_R,
+                  XK_Super_L,
+                  XK_Super_R,
+              };
 
               for (int i = 0; i < (sizeof(modifiers) / sizeof(*modifiers)); i++) {
                 KeyCode kc = XKeysymToKeycode(m_display, modifiers[i]);
index d40377a..89efdf1 100644 (file)
@@ -349,24 +349,26 @@ static unsigned char sdl_std_cursor_mask_sb_h_double_arrow[] = {
     0x18,
     0x0c,
 };
-static unsigned char sdl_std_cursor_sb_h_double_arrow[] = {0x00,
-                                                           0x00,
-                                                           0x08,
-                                                           0x08,
-                                                           0x0c,
-                                                           0x18,
-                                                           0xfe,
-                                                           0x3f,
-                                                           0x0f,
-                                                           0x78,
-                                                           0xfe,
-                                                           0x3f,
-                                                           0x0c,
-                                                           0x18,
-                                                           0x08,
-                                                           0x08,
-                                                           0x00,
-                                                           0x00};
+static unsigned char sdl_std_cursor_sb_h_double_arrow[] = {
+    0x00,
+    0x00,
+    0x08,
+    0x08,
+    0x0c,
+    0x18,
+    0xfe,
+    0x3f,
+    0x0f,
+    0x78,
+    0xfe,
+    0x3f,
+    0x0c,
+    0x18,
+    0x08,
+    0x08,
+    0x00,
+    0x00,
+};
 #define sdl_std_cursor_WIDTH_sb_h_double_arrow 15
 #define sdl_std_cursor_HEIGHT_sb_h_double_arrow 9
 #define sdl_std_cursor_HOT_X_sb_h_double_arrow -7
index 12f6ced..7228593 100644 (file)
@@ -155,26 +155,30 @@ bool CLDeviceContext::Initialize()
   cl_platform_id cp_platform = findPlatform();
 
 #  if defined(_WIN32)
-  cl_context_properties props[] = {CL_GL_CONTEXT_KHR,
-                                   (cl_context_properties)wglGetCurrentContext(),
-                                   CL_WGL_HDC_KHR,
-                                   (cl_context_properties)wglGetCurrentDC(),
-                                   CL_CONTEXT_PLATFORM,
-                                   (cl_context_properties)cp_platform,
-                                   0};
+  cl_context_properties props[] = {
+      CL_GL_CONTEXT_KHR,
+      (cl_context_properties)wglGetCurrentContext(),
+      CL_WGL_HDC_KHR,
+      (cl_context_properties)wglGetCurrentDC(),
+      CL_CONTEXT_PLATFORM,
+      (cl_context_properties)cp_platform,
+      0,
+  };
 #  elif defined(__APPLE__)
   CGLContextObj kCGLContext = CGLGetCurrentContext();
   CGLShareGroupObj kCGLShareGroup = CGLGetShareGroup(kCGLContext);
   cl_context_properties props[] = {
       CL_CONTEXT_PROPERTY_USE_CGL_SHAREGROUP_APPLE, (cl_context_properties)kCGLShareGroup, 0};
 #  else
-  cl_context_properties props[] = {CL_GL_CONTEXT_KHR,
-                                   (cl_context_properties)glXGetCurrentContext(),
-                                   CL_GLX_DISPLAY_KHR,
-                                   (cl_context_properties)glXGetCurrentDisplay(),
-                                   CL_CONTEXT_PLATFORM,
-                                   (cl_context_properties)cp_platform,
-                                   0};
+  cl_context_properties props[] = {
+      CL_GL_CONTEXT_KHR,
+      (cl_context_properties)glXGetCurrentContext(),
+      CL_GLX_DISPLAY_KHR,
+      (cl_context_properties)glXGetCurrentDisplay(),
+      CL_CONTEXT_PLATFORM,
+      (cl_context_properties)cp_platform,
+      0,
+  };
 #  endif
 
 #  if defined(__APPLE__)
index 96c098b..6d3aea9 100644 (file)
@@ -1456,8 +1456,7 @@ void scopes_update(Scopes *scopes,
   unsigned int nl, na, nr, ng, nb;
   double divl, diva, divr, divg, divb;
   const unsigned char *display_buffer = NULL;
-  unsigned int bin_lum[256] = {0}, bin_r[256] = {0}, bin_g[256] = {0}, bin_b[256] = {0},
-               bin_a[256] = {0};
+  uint bin_lum[256] = {0}, bin_r[256] = {0}, bin_g[256] = {0}, bin_b[256] = {0}, bin_a[256] = {0};
   int ycc_mode = -1;
   void *cache_handle = NULL;
   struct ColormanageProcessor *cm_processor = NULL;
index 50c72f5..acb0fd3 100644 (file)
@@ -1777,7 +1777,10 @@ static void emit_from_mesh_task_cb(void *__restrict userdata,
         const int index = smoke_get_index(
             x - data->min[0], data->res[0], y - data->min[1], data->res[1], z - data->min[2]);
         const float ray_start[3] = {
-            lx + 0.5f * data->hr, ly + 0.5f * data->hr, lz + 0.5f * data->hr};
+            lx + 0.5f * data->hr,
+            ly + 0.5f * data->hr,
+            lz + 0.5f * data->hr,
+        };
 
         sample_mesh(data->sfs,
                     data->mvert,
index d461394..885898d 100644 (file)
@@ -267,8 +267,10 @@ static void vertex_interpolation_from_corner(const SubdivMeshContext *ctx,
         coarse_mloop[coarse_poly->loopstart +
                      (first_loop_index - coarse_poly->loopstart + 1) % coarse_poly->totloop]
             .v};
-    const int last_indices[2] = {coarse_mloop[first_loop_index].v,
-                                 coarse_mloop[last_loop_index].v};
+    const int last_indices[2] = {
+        coarse_mloop[first_loop_index].v,
+        coarse_mloop[last_loop_index].v,
+    };
     CustomData_interp(vertex_data,
                       &vertex_interpolation->vertex_data_storage,
                       first_indices,
@@ -393,8 +395,10 @@ static void loop_interpolation_from_corner(const SubdivMeshContext *ctx,
     const int second_loop_index = base_loop_index +
                                   (first_loop_index - base_loop_index + 1) % coarse_poly->totloop;
     const int first_indices[2] = {first_loop_index, second_loop_index};
-    const int last_indices[2] = {loops_of_ptex.last_loop - coarse_mloop,
-                                 loops_of_ptex.first_loop - coarse_mloop};
+    const int last_indices[2] = {
+        loops_of_ptex.last_loop - coarse_mloop,
+        loops_of_ptex.first_loop - coarse_mloop,
+    };
     CustomData_interp(
         loop_data, &loop_interpolation->loop_data_storage, first_indices, weights, NULL, 2, 1);
     CustomData_interp(
index c478ce2..f176d7e 100644 (file)
@@ -1084,10 +1084,14 @@ float *BKE_tracking_track_get_mask(int frame_width,
                                    MovieTrackingMarker *marker)
 {
   /* Convert normalized space marker's search area to pixel-space region. */
-  const float region_min[2] = {marker->search_min[0] * frame_width,
-                               marker->search_min[1] * frame_height};
-  const float region_max[2] = {marker->search_max[0] * frame_width,
-                               marker->search_max[1] * frame_height};
+  const float region_min[2] = {
+      marker->search_min[0] * frame_width,
+      marker->search_min[1] * frame_height,
+  };
+  const float region_max[2] = {
+      marker->search_max[0] * frame_width,
+      marker->search_max[1] * frame_height,
+  };
   return tracking_track_get_mask_for_region(
       frame_width, frame_height, region_min, region_max, track);
 }
index 4de10ac..644e03a 100644 (file)
@@ -927,10 +927,14 @@ static libmv_CacheKey accessor_get_mask_for_track_callback(libmv_FrameAccessorUs
   BKE_movieclip_get_size(clip, &user, &frame_width, &frame_height);
   /* Actual mask sampling. */
   MovieTrackingMarker *marker = BKE_tracking_marker_get_exact(track, frame);
-  const float region_min[2] = {region->min[0] - marker->pos[0] * frame_width,
-                               region->min[1] - marker->pos[1] * frame_height};
-  const float region_max[2] = {region->max[0] - marker->pos[0] * frame_width,
-                               region->max[1] - marker->pos[1] * frame_height};
+  const float region_min[2] = {
+      region->min[0] - marker->pos[0] * frame_width,
+      region->min[1] - marker->pos[1] * frame_height,
+  };
+  const float region_max[2] = {
+      region->max[0] - marker->pos[0] * frame_width,
+      region->max[1] - marker->pos[1] * frame_height,
+  };
   *r_destination = tracking_track_get_mask_for_region(
       frame_width, frame_height, region_min, region_max, track);
   *r_width = region->max[0] - region->min[0];
index 40df971..6dc0203 100644 (file)
@@ -356,27 +356,29 @@ typedef struct BuiltinOpDef {
   void *funcptr;
 } BuiltinOpDef;
 
-static BuiltinOpDef builtin_ops[] = {{"radians", OPCODE_FUNC1, op_radians},
-                                     {"degrees", OPCODE_FUNC1, op_degrees},
-                                     {"abs", OPCODE_FUNC1, fabs},
-                                     {"fabs", OPCODE_FUNC1, fabs},
-                                     {"floor", OPCODE_FUNC1, floor},
-                                     {"ceil", OPCODE_FUNC1, ceil},
-                                     {"trunc", OPCODE_FUNC1, trunc},
-                                     {"int", OPCODE_FUNC1, trunc},
-                                     {"sin", OPCODE_FUNC1, sin},
-                                     {"cos", OPCODE_FUNC1, cos},
-                                     {"tan", OPCODE_FUNC1, tan},
-                                     {"asin", OPCODE_FUNC1, asin},
-                                     {"acos", OPCODE_FUNC1, acos},
-                                     {"atan", OPCODE_FUNC1, atan},
-                                     {"atan2", OPCODE_FUNC2, atan2},
-                                     {"exp", OPCODE_FUNC1, exp},
-                                     {"log", OPCODE_FUNC1, log},
-                                     {"sqrt", OPCODE_FUNC1, sqrt},
-                                     {"pow", OPCODE_FUNC2, pow},
-                                     {"fmod", OPCODE_FUNC2, fmod},
-                                     {NULL, OPCODE_CONST, NULL}};
+static BuiltinOpDef builtin_ops[] = {
+    {"radians", OPCODE_FUNC1, op_radians},
+    {"degrees", OPCODE_FUNC1, op_degrees},
+    {"abs", OPCODE_FUNC1, fabs},
+    {"fabs", OPCODE_FUNC1, fabs},
+    {"floor", OPCODE_FUNC1, floor},
+    {"ceil", OPCODE_FUNC1, ceil},
+    {"trunc", OPCODE_FUNC1, trunc},
+    {"int", OPCODE_FUNC1, trunc},
+    {"sin", OPCODE_FUNC1, sin},
+    {"cos", OPCODE_FUNC1, cos},
+    {"tan", OPCODE_FUNC1, tan},
+    {"asin", OPCODE_FUNC1, asin},
+    {"acos", OPCODE_FUNC1, acos},
+    {"atan", OPCODE_FUNC1, atan},
+    {"atan2", OPCODE_FUNC2, atan2},
+    {"exp", OPCODE_FUNC1, exp},
+    {"log", OPCODE_FUNC1, log},
+    {"sqrt", OPCODE_FUNC1, sqrt},
+    {"pow", OPCODE_FUNC2, pow},
+    {"fmod", OPCODE_FUNC2, fmod},
+    {NULL, OPCODE_CONST, NULL},
+};
 
 /** \} */
 
@@ -413,12 +415,14 @@ typedef struct KeywordTokenDef {
   short token;
 } KeywordTokenDef;
 
-static KeywordTokenDef keyword_list[] = {{"and", TOKEN_AND},
-                                         {"or", TOKEN_OR},
-                                         {"not", TOKEN_NOT},
-                                         {"if", TOKEN_IF},
-                                         {"else", TOKEN_ELSE},
-                                         {NULL, TOKEN_ID}};
+static KeywordTokenDef keyword_list[] = {
+    {"and", TOKEN_AND},
+    {"or", TOKEN_OR},
+    {"not", TOKEN_NOT},
+    {"if", TOKEN_IF},
+    {"else", TOKEN_ELSE},
+    {NULL, TOKEN_ID},
+};
 
 typedef struct ExprParseState {
   int param_names_len;
index fd9439e..e669623 100644 (file)
@@ -307,9 +307,11 @@ static void bm_log_faces_restore(BMesh *bm, BMLog *log, GHash *faces)
   GHASH_ITER (gh_iter, faces) {
     void *key = BLI_ghashIterator_getKey(&gh_iter);
     BMLogFace *lf = BLI_ghashIterator_getValue(&gh_iter);
-    BMVert *v[3] = {bm_log_vert_from_id(log, lf->v_ids[0]),
-                    bm_log_vert_from_id(log, lf->v_ids[1]),
-                    bm_log_vert_from_id(log, lf->v_ids[2])};
+    BMVert *v[3] = {
+        bm_log_vert_from_id(log, lf->v_ids[0]),
+        bm_log_vert_from_id(log, lf->v_ids[1]),
+        bm_log_vert_from_id(log, lf->v_ids[2]),
+    };
     BMFace *f;
 
     f = BM_face_create_verts(bm, v, 3, NULL, BM_CREATE_NOP, true);
index b71bd48..c97a5c0 100644 (file)
@@ -682,8 +682,10 @@ void bmo_grid_fill_exec(BMesh *bm, BMOperator *op)
 
   /* add vertices if needed */
   {
-    struct BMEdgeLoopStore *estore_pairs[2][2] = {{estore_a, estore_b},
-                                                  {estore_rail_a, estore_rail_b}};
+    struct BMEdgeLoopStore *estore_pairs[2][2] = {
+        {estore_a, estore_b},
+        {estore_rail_a, estore_rail_b},
+    };
     int i;
 
     for (i = 0; i < 2; i++) {
index 46b31ce..98d4431 100644 (file)
@@ -103,9 +103,11 @@ static void hull_output_triangles(BMesh *bm, GSet *hull_triangles)
     int i;
 
     if (!t->skip) {
-      BMEdge *edges[3] = {BM_edge_create(bm, t->v[0], t->v[1], NULL, BM_CREATE_NO_DOUBLE),
-                          BM_edge_create(bm, t->v[1], t->v[2], NULL, BM_CREATE_NO_DOUBLE),
-                          BM_edge_create(bm, t->v[2], t->v[0], NULL, BM_CREATE_NO_DOUBLE)};
+      BMEdge *edges[3] = {
+          BM_edge_create(bm, t->v[0], t->v[1], NULL, BM_CREATE_NO_DOUBLE),
+          BM_edge_create(bm, t->v[1], t->v[2], NULL, BM_CREATE_NO_DOUBLE),
+          BM_edge_create(bm, t->v[2], t->v[0], NULL, BM_CREATE_NO_DOUBLE),
+      };
       BMFace *f, *example = NULL;
 
       f = BM_face_exists(t->v, 3);
index 12e072b..b47d78a 100644 (file)
@@ -190,8 +190,10 @@ void OpenCLDevice::COM_clAttachOutputMemoryBufferToKernelParameter(cl_kernel ker
 void OpenCLDevice::COM_clEnqueueRange(cl_kernel kernel, MemoryBuffer *outputMemoryBuffer)
 {
   cl_int error;
-  const size_t size[] = {(size_t)outputMemoryBuffer->getWidth(),
-                         (size_t)outputMemoryBuffer->getHeight()};
+  const size_t size[] = {
+      (size_t)outputMemoryBuffer->getWidth(),
+      (size_t)outputMemoryBuffer->getHeight(),
+  };
 
   error = clEnqueueNDRangeKernel(this->m_queue, kernel, 2, NULL, size, 0, 0, 0, NULL);
   if (error != CL_SUCCESS) {
index 6f146d9..0c9208f 100644 (file)
@@ -134,8 +134,10 @@ void MaskOperation::executePixelSampled(float output[4],
                                         float y,
                                         PixelSampler /*sampler*/)
 {
-  const float xy[2] = {(x * this->m_maskWidthInv) + this->m_mask_px_ofs[0],
-                       (y * this->m_maskHeightInv) + this->m_mask_px_ofs[1]};
+  const float xy[2] = {
+      (x * this->m_maskWidthInv) + this->m_mask_px_ofs[0],
+      (y * this->m_maskHeightInv) + this->m_mask_px_ofs[1],
+  };
 
   if (this->m_rasterMaskHandleTot == 1) {
     if (this->m_rasterMaskHandles[0]) {
index 54d5d6e..63640d4 100644 (file)
@@ -125,10 +125,12 @@ void *PlaneCornerPinMaskOperation::initializeTileData(rcti *rect)
    */
   lockMutex();
   if (!m_corners_ready) {
-    SocketReader *readers[4] = {getInputSocketReader(0),
-                                getInputSocketReader(1),
-                                getInputSocketReader(2),
-                                getInputSocketReader(3)};
+    SocketReader *readers[4] = {
+        getInputSocketReader(0),
+        getInputSocketReader(1),
+        getInputSocketReader(2),
+        getInputSocketReader(3),
+    };
     float corners[4][2];
     readCornersFromSockets(rect, readers, corners);
     calculateCorners(corners, true, 0);
@@ -183,10 +185,12 @@ void *PlaneCornerPinWarpImageOperation::initializeTileData(rcti *rect)
   lockMutex();
   if (!m_corners_ready) {
     /* corner sockets start at index 1 */
-    SocketReader *readers[4] = {getInputSocketReader(1),
-                                getInputSocketReader(2),
-                                getInputSocketReader(3),
-                                getInputSocketReader(4)};
+    SocketReader *readers[4] = {
+        getInputSocketReader(1),
+        getInputSocketReader(2),
+        getInputSocketReader(3),
+        getInputSocketReader(4),
+    };
     float corners[4][2];
     readCornersFromSockets(rect, readers, corners);
     calculateCorners(corners, true, 0);
index 8b03357..02f13ef 100644 (file)
@@ -151,10 +151,12 @@ void VariableSizeBokehBlurOperation::executePixel(float output[4], int x, int y,
             if (size > this->m_threshold) {
               float dx = nx - x;
               if (size > fabsf(dx) && size > fabsf(dy)) {
-                float uv[2] = {(float)(COM_BLUR_BOKEH_PIXELS / 2) +
-                                   (dx / size) * (float)((COM_BLUR_BOKEH_PIXELS / 2) - 1),
-                               (float)(COM_BLUR_BOKEH_PIXELS / 2) +
-                                   (dy / size) * (float)((COM_BLUR_BOKEH_PIXELS / 2) - 1)};
+                float uv[2] = {
+                    (float)(COM_BLUR_BOKEH_PIXELS / 2) +
+                        (dx / size) * (float)((COM_BLUR_BOKEH_PIXELS / 2) - 1),
+                    (float)(COM_BLUR_BOKEH_PIXELS / 2) +
+                        (dy / size) * (float)((COM_BLUR_BOKEH_PIXELS / 2) - 1),
+                };
                 inputBokehBuffer->read(bokeh, uv[0], uv[1]);
                 madd_v4_v4v4(color_accum, bokeh, &inputProgramFloatBuffer[offsetColorNxNy]);
                 add_v4_v4(multiplier_accum, bokeh);
index 40937f3..e6a3f45 100644 (file)
@@ -138,10 +138,12 @@ static void GPENCIL_render_update_viewvecs(float invproj[4][4],
 {
   /* view vectors for the corners of the view frustum.
    * Can be used to recreate the world space position easily */
-  float view_vecs[4][4] = {{-1.0f, -1.0f, -1.0f, 1.0f},
-                           {1.0f, -1.0f, -1.0f, 1.0f},
-                           {-1.0f, 1.0f, -1.0f, 1.0f},
-                           {-1.0f, -1.0f, 1.0f, 1.0f}};
+  float view_vecs[4][4] = {
+      {-1.0f, -1.0f, -1.0f, 1.0f},
+      {1.0f, -1.0f, -1.0f, 1.0f},
+      {-1.0f, 1.0f, -1.0f, 1.0f},
+      {-1.0f, -1.0f, 1.0f, 1.0f},
+  };
 
   /* convert the view vectors to view space */
   const bool is_persp = (winmat[3][3] == 0.0f);
index 7099f6c..6b6a79b 100644 (file)
@@ -482,8 +482,9 @@ GPUBatch *DRW_cache_empty_cube_get(void)
         {1.0f, 1.0f, 1.0f},
     };
 
-    const GLubyte indices[24] = {0, 1, 1, 3, 3, 2, 2, 0, 0, 4, 4, 5,
-                                 5, 7, 7, 6, 6, 4, 1, 5, 3, 7, 2, 6};
+    const GLubyte indices[24] = {
+        0, 1, 1, 3, 3, 2, 2, 0, 0, 4, 4, 5, 5, 7, 7, 6, 6, 4, 1, 5, 3, 7, 2, 6,
+    };
 
     /* Position Only 3D format */
     static GPUVertFormat format = {0};
@@ -659,17 +660,20 @@ GPUBatch *DRW_cache_gpencil_axes_get(void)
     float v2[3] = {0.0f, 0.0f, 0.0f};
 
     /* cube data */
-    const GLfloat verts[8][3] = {{-0.25f, -0.25f, -0.25f},
-                                 {-0.25f, -0.25f, 0.25f},
-                                 {-0.25f, 0.25f, -0.25f},
-                                 {-0.25f, 0.25f, 0.25f},
-                                 {0.25f, -0.25f, -0.25f},
-                                 {0.25f, -0.25f, 0.25f},
-                                 {0.25f, 0.25f, -0.25f},
-                                 {0.25f, 0.25f, 0.25f}};
-
-    const GLubyte indices[24] = {0, 1, 1, 3, 3, 2, 2, 0, 0, 4, 4, 5,
-                                 5, 7, 7, 6, 6, 4, 1, 5, 3, 7, 2, 6};
+    const GLfloat verts[8][3] = {
+        {-0.25f, -0.25f, -0.25f},
+        {-0.25f, -0.25f, 0.25f},
+        {-0.25f, 0.25f, -0.25f},
+        {-0.25f, 0.25f, 0.25f},
+        {0.25f, -0.25f, -0.25f},
+        {0.25f, -0.25f, 0.25f},
+        {0.25f, 0.25f, -0.25f},
+        {0.25f, 0.25f, 0.25f},
+    };
+
+    const GLubyte indices[24] = {
+        0, 1, 1, 3, 3, 2, 2, 0, 0, 4, 4, 5, 5, 7, 7, 6, 6, 4, 1, 5, 3, 7, 2, 6,
+    };
 
     /* Position Only 3D format */
     static GPUVertFormat format = {0};
@@ -1746,11 +1750,13 @@ GPUBatch *DRW_cache_light_spot_volume_get(void)
 GPUBatch *DRW_cache_light_spot_square_get(void)
 {
   if (!SHC.drw_light_spot_square) {
-    float p[5][3] = {{0.0f, 0.0f, 0.0f},
-                     {1.0f, 1.0f, -1.0f},
-                     {1.0f, -1.0f, -1.0f},
-                     {-1.0f, -1.0f, -1.0f},
-                     {-1.0f, 1.0f, -1.0f}};
+    float p[5][3] = {
+        {0.0f, 0.0f, 0.0f},
+        {1.0f, 1.0f, -1.0f},
+        {1.0f, -1.0f, -1.0f},
+        {-1.0f, -1.0f, -1.0f},
+        {-1.0f, 1.0f, -1.0f},
+    };
 
     uint v_idx = 0;
 
@@ -1783,11 +1789,13 @@ GPUBatch *DRW_cache_light_spot_square_get(void)
 GPUBatch *DRW_cache_light_spot_square_volume_get(void)
 {
   if (!SHC.drw_light_spot_square_volume) {
-    float p[5][3] = {{0.0f, 0.0f, 0.0f},
-                     {1.0f, 1.0f, -1.0f},
-                     {1.0f, -1.0f, -1.0f},
-                     {-1.0f, -1.0f, -1.0f},
-                     {-1.0f, 1.0f, -1.0f}};
+    float p[5][3] = {
+        {0.0f, 0.0f, 0.0f},
+        {1.0f, 1.0f, -1.0f},
+        {1.0f, -1.0f, -1.0f},
+        {-1.0f, -1.0f, -1.0f},
+        {-1.0f, 1.0f, -1.0f},
+    };
 
     uint v_idx = 0;
 
index 1072efb..7d42f59 100644 (file)
@@ -1854,8 +1854,10 @@ static void camera_view3d_stereoscopy_display_extra(OBJECT_ShadingGroupList *sgl
     static float one = 1.0f;
     float plane_mat[4][4], scale_mat[4][4];
     float scale_factor[3] = {1.0f, 1.0f, 1.0f};
-    float color_plane[2][4] = {{0.0f, 0.0f, 0.0f, v3d->stereo3d_convergence_alpha},
-                               {0.0f, 0.0f, 0.0f, 1.0f}};
+    float color_plane[2][4] = {
+        {0.0f, 0.0f, 0.0f, v3d->stereo3d_convergence_alpha},
+        {0.0f, 0.0f, 0.0f, 1.0f},
+    };
 
     const float height = convergence_plane[1][1] - convergence_plane[0][1];
     const float width = convergence_plane[2][0] - convergence_plane[0][0];
@@ -1878,9 +1880,11 @@ static void camera_view3d_stereoscopy_display_extra(OBJECT_ShadingGroupList *sgl
   /* Draw convergence volume. */
   if (is_stereo3d_volume && !is_select) {
     static float one = 1.0f;
-    float color_volume[3][4] = {{0.0f, 1.0f, 1.0f, v3d->stereo3d_volume_alpha},
-                                {1.0f, 0.0f, 0.0f, v3d->stereo3d_volume_alpha},
-                                {0.0f, 0.0f, 0.0f, 1.0f}};
+    float color_volume[3][4] = {
+        {0.0f, 1.0f, 1.0f, v3d->stereo3d_volume_alpha},
+        {1.0f, 0.0f, 0.0f, v3d->stereo3d_volume_alpha},
+        {0.0f, 0.0f, 0.0f, 1.0f},
+    };
 
     for (int eye = 0; eye < 2; eye++) {
       float winmat[4][4], viewinv[4][4], viewmat[4][4], persmat[4][4], persinv[4][4];
index 77658b8..ee1d3c8 100644 (file)
@@ -573,8 +573,10 @@ static void cage2d_draw_circle_handles(const rctf *r,
   }
 
   if (transform_flag & ED_GIZMO_CAGE2D_XFORM_FLAG_ROTATE) {
-    const float handle[2] = {BLI_rctf_cent_x(r),
-                             r->ymax + (margin[1] * GIZMO_MARGIN_OFFSET_SCALE)};
+    const float handle[2] = {
+        BLI_rctf_cent_x(r),
+        r->ymax + (margin[1] * GIZMO_MARGIN_OFFSET_SCALE),
+    };
     circle_fn(pos, handle[0], handle[1], rad[0], rad[1], resolu);
   }
 
index e6148ba..3edf8e5 100644 (file)
@@ -1375,14 +1375,16 @@ static bool ui_but_event_property_operator_string(const bContext *C,
  *
  * --Matt 07/2006
  */
-const char ui_radial_dir_order[8] = {UI_RADIAL_W,
-                                     UI_RADIAL_E,
-                                     UI_RADIAL_S,
-                                     UI_RADIAL_N,
-                                     UI_RADIAL_NW,
-                                     UI_RADIAL_NE,
-                                     UI_RADIAL_SW,
-                                     UI_RADIAL_SE};
+const char ui_radial_dir_order[8] = {
+    UI_RADIAL_W,
+    UI_RADIAL_E,
+    UI_RADIAL_S,
+    UI_RADIAL_N,
+    UI_RADIAL_NW,
+    UI_RADIAL_NE,
+    UI_RADIAL_SW,
+    UI_RADIAL_SE,
+};
 
 const char ui_radial_dir_to_numpad[8] = {8, 9, 6, 3, 2, 1, 4, 7};
 const short ui_radial_dir_to_angle[8] = {90, 45, 0, 315, 270, 225, 180, 135};
index efc748d..671a004 100644 (file)
@@ -1333,12 +1333,14 @@ void ui_draw_but_VECTORSCOPE(ARegion *UNUSED(ar),
   const float skin_rad = DEG2RADF(123.0f); /* angle in radians of the skin tone line */
   Scopes *scopes = (Scopes *)but->poin;
 
-  const float colors[6][3] = {{0.75, 0.0, 0.0},
-                              {0.75, 0.75, 0.0},
-                              {0.0, 0.75, 0.0},
-                              {0.0, 0.75, 0.75},
-                              {0.0, 0.0, 0.75},
-                              {0.75, 0.0, 0.75}};
+  const float colors[6][3] = {
+      {0.75, 0.0, 0.0},
+      {0.75, 0.75, 0.0},
+      {0.0, 0.75, 0.0},
+      {0.0, 0.75, 0.75},
+      {0.0, 0.0, 0.75},
+      {0.75, 0.0, 0.75},
+  };
 
   rctf rect = {
       .xmin = (float)recti->xmin + 1,
index b05dac8..4320760 100644 (file)
 
 #include "physics_intern.h"
 
-static float I[4][4] = {{1.0f, 0.0f, 0.0f, 0.0f},
-                        {0.0f, 1.0f, 0.0f, 0.0f},
-                        {0.0f, 0.0f, 1.0f, 0.0f},
-                        {0.0f, 0.0f, 0.0f, 1.0f}};
+static float I[4][4] = {
+    {1.0f, 0.0f, 0.0f, 0.0f},
+    {0.0f, 1.0f, 0.0f, 0.0f},
+    {0.0f, 0.0f, 1.0f, 0.0f},
+    {0.0f, 0.0f, 0.0f, 1.0f},
+};
 
 /********************** particle system slot operators *********************/
 
index b4ea97d..1aa54bc 100644 (file)
@@ -776,26 +776,28 @@ static void area_azone_initialize(wmWindow *win, const bScreen *screen, ScrArea
     return;
   }
 
-  float coords[4][4] = {/* Bottom-left. */
-                        {sa->totrct.xmin - U.pixelsize,
-                         sa->totrct.ymin - U.pixelsize,
-                         sa->totrct.xmin + AZONESPOTW,
-                         sa->totrct.ymin + AZONESPOTH},
-                        /* Bottom-right. */
-                        {sa->totrct.xmax - AZONESPOTW,
-                         sa->totrct.ymin - U.pixelsize,
-                         sa->totrct.xmax + U.pixelsize,
-                         sa->totrct.ymin + AZONESPOTH},
-                        /* Top-left. */
-                        {sa->totrct.xmin - U.pixelsize,
-                         sa->totrct.ymax - AZONESPOTH,
-                         sa->totrct.xmin + AZONESPOTW,
-                         sa->totrct.ymax + U.pixelsize},
-                        /* Top-right. */
-                        {sa->totrct.xmax - AZONESPOTW,
-                         sa->totrct.ymax - AZONESPOTH,
-                         sa->totrct.xmax + U.pixelsize,
-                         sa->totrct.ymax + U.pixelsize}};
+  float coords[4][4] = {
+      /* Bottom-left. */
+      {sa->totrct.xmin - U.pixelsize,
+       sa->totrct.ymin - U.pixelsize,
+       sa->totrct.xmin + AZONESPOTW,
+       sa->totrct.ymin + AZONESPOTH},
+      /* Bottom-right. */
+      {sa->totrct.xmax - AZONESPOTW,
+       sa->totrct.ymin - U.pixelsize,
+       sa->totrct.xmax + U.pixelsize,
+       sa->totrct.ymin + AZONESPOTH},
+      /* Top-left. */
+      {sa->totrct.xmin - U.pixelsize,
+       sa->totrct.ymax - AZONESPOTH,
+       sa->totrct.xmin + AZONESPOTW,
+       sa->totrct.ymax + U.pixelsize},
+      /* Top-right. */
+      {sa->totrct.xmax - AZONESPOTW,
+       sa->totrct.ymax - AZONESPOTH,
+       sa->totrct.xmax + U.pixelsize,
+       sa->totrct.ymax + U.pixelsize},
+  };
 
   for (int i = 0; i < 4; i++) {
     /* can't click on bottom corners on OS X, already used for resizing */
index 7194035..d26907c 100644 (file)
 
 #include "screen_intern.h"
 
-const char *screen_context_dir[] = {"scene",
-                                    "view_layer",
-                                    "visible_objects",
-                                    "visible_bases",
-                                    "selectable_objects",
-                                    "selectable_bases",
-                                    "selected_objects",
-                                    "selected_bases",
-                                    "editable_objects",
-                                    "editable_bases",
-                                    "selected_editable_objects",
-                                    "selected_editable_bases",
-                                    "objects_in_mode",
-                                    "objects_in_mode_unique_data",
-                                    "visible_bones",
-                                    "editable_bones",
-                                    "selected_bones",
-                                    "selected_editable_bones",
-                                    "visible_pose_bones",
-                                    "selected_pose_bones",
-                                    "selected_pose_bones_from_active_object",
-                                    "active_bone",
-                                    "active_pose_bone",
-                                    "active_base",
-                                    "active_object",
-                                    "object",
-                                    "edit_object",
-                                    "sculpt_object",
-                                    "vertex_paint_object",
-                                    "weight_paint_object",
-                                    "image_paint_object",
-                                    "particle_edit_object",
-                                    "uv_sculpt_object",
-                                    "pose_object",
-                                    "sequences",
-                                    "selected_sequences",
-                                    "selected_editable_sequences", /* sequencer */
-                                    "gpencil_data",
-                                    "gpencil_data_owner", /* grease pencil data */
-                                    "visible_gpencil_layers",
-                                    "editable_gpencil_layers",
-                                    "editable_gpencil_strokes",
-                                    "active_gpencil_layer",
-                                    "active_gpencil_frame",
-                                    "active_operator",
-                                    "selected_editable_fcurves",
-                                    NULL};
+const char *screen_context_dir[] = {
+    "scene",
+    "view_layer",
+    "visible_objects",
+    "visible_bases",
+    "selectable_objects",
+    "selectable_bases",
+    "selected_objects",
+    "selected_bases",
+    "editable_objects",
+    "editable_bases",
+    "selected_editable_objects",
+    "selected_editable_bases",
+    "objects_in_mode",
+    "objects_in_mode_unique_data",
+    "visible_bones",
+    "editable_bones",
+    "selected_bones",
+    "selected_editable_bones",
+    "visible_pose_bones",
+    "selected_pose_bones",
+    "selected_pose_bones_from_active_object",
+    "active_bone",
+    "active_pose_bone",
+    "active_base",
+    "active_object",
+    "object",
+    "edit_object",
+    "sculpt_object",
+    "vertex_paint_object",
+    "weight_paint_object",
+    "image_paint_object",
+    "particle_edit_object",
+    "uv_sculpt_object",
+    "pose_object",
+    "sequences",
+    "selected_sequences",
+    "selected_editable_sequences", /* sequencer */
+    "gpencil_data",
+    "gpencil_data_owner", /* grease pencil data */
+    "visible_gpencil_layers",
+    "editable_gpencil_layers",
+    "editable_gpencil_strokes",
+    "active_gpencil_layer",
+    "active_gpencil_frame",
+    "active_operator",
+    "selected_editable_fcurves",
+    NULL,
+};
 
 int ed_screen_context(const bContext *C, const char *member, bContextDataResult *result)
 {
index e13598b..6efc80c 100644 (file)
@@ -399,10 +399,12 @@ static int set_plane_exec(bContext *C, wmOperator *op)
   int tot = 0;
   float vec[3][3], mat[4][4], obmat[4][4], newmat[4][4], orig[3] = {0.0f, 0.0f, 0.0f};
   int plane = RNA_enum_get(op->ptr, "plane");
-  float rot[4][4] = {{0.0f, 0.0f, -1.0f, 0.0f},
-                     {0.0f, 1.0f, 0.0f, 0.0f},
-                     {1.0f, 0.0f, 0.0f, 0.0f},
-                     {0.0f, 0.0f, 0.0f, 1.0f}}; /* 90 degrees Y-axis rotation matrix */
+  float rot[4][4] = {
+      {0.0f, 0.0f, -1.0f, 0.0f},
+      {0.0f, 1.0f, 0.0f, 0.0f},
+      {1.0f, 0.0f, 0.0f, 0.0f},
+      {0.0f, 0.0f, 0.0f, 1.0f},
+  }; /* 90 degrees Y-axis rotation matrix */
 
   if (count_selected_bundles(C) != 3) {
     BKE_report(op->reports, RPT_ERROR, "Three tracks with bundles are needed to orient the floor");
index 8b4c1c3..c077039 100644 (file)
@@ -780,8 +780,10 @@ int getTransformOrientation_ex(const bContext *C,
 
             if (BM_vert_edge_pair(v, &e_pair[0], &e_pair[1])) {
               bool v_pair_swap = false;
-              BMVert *v_pair[2] = {BM_edge_other_vert(e_pair[0], v),
-                                   BM_edge_other_vert(e_pair[1], v)};
+              BMVert *v_pair[2] = {
+                  BM_edge_other_vert(e_pair[0], v),
+                  BM_edge_other_vert(e_pair[1], v),
+              };
               float dir_pair[2][3];
 
               if (BM_edge_is_boundary(e_pair[0])) {
index 503910d..ccaa0d6 100644 (file)
@@ -391,8 +391,10 @@ void ED_region_draw_mouse_line_cb(const bContext *C, ARegion *ar, void *arg_info
 {
   wmWindow *win = CTX_wm_window(C);
   const float *mval_src = (float *)arg_info;
-  const float mval_dst[2] = {win->eventstate->x - ar->winrct.xmin,
-                             win->eventstate->y - ar->winrct.ymin};
+  const float mval_dst[2] = {
+      win->eventstate->x - ar->winrct.xmin,
+      win->eventstate->y - ar->winrct.ymin,
+  };
 
   const uint shdr_pos = GPU_vertformat_attr_add(
       immVertexFormat(), "pos", GPU_COMP_F32, 2, GPU_FETCH_FLOAT);
index bc0bc5b..57d8f32 100644 (file)
@@ -70,15 +70,17 @@ static int IncreasingColorShader___init__(BPy_IncreasingColorShader *self,
                                           PyObject *args,
                                           PyObject *kwds)
 {
-  static const char *kwlist[] = {"red_min",
-                                 "green_min",
-                                 "blue_min",
-                                 "alpha_min",
-                                 "red_max",
-                                 "green_max",
-                                 "blue_max",
-                                 "alpha_max",
-                                 NULL};
+  static const char *kwlist[] = {
+      "red_min",
+      "green_min",
+      "blue_min",
+      "alpha_min",
+      "red_max",
+      "green_max",
+      "blue_max",
+      "alpha_max",
+      NULL,
+  };
   float f1, f2, f3, f4, f5, f6, f7, f8;
 
   if (!PyArg_ParseTupleAndKeywords(
index 72d5799..51a0c67 100644 (file)
@@ -71,15 +71,17 @@ static char SmoothingShader___doc__[] =
 
 static int SmoothingShader___init__(BPy_SmoothingShader *self, PyObject *args, PyObject *kwds)
 {
-  static const char *kwlist[] = {"num_iterations",
-                                 "factor_point",
-                                 "factor_curvature",
-                                 "factor_curvature_difference",
-                                 "aniso_point",
-                                 "aniso_normal",
-                                 "aniso_curvature",
-                                 "carricature_factor",
-                                 NULL};
+  static const char *kwlist[] = {
+      "num_iterations",
+      "factor_point",
+      "factor_curvature",
+      "factor_curvature_difference",
+      "aniso_point",
+      "aniso_normal",
+      "aniso_curvature",
+      "carricature_factor",
+      NULL,
+  };
   int i1 = 100;
   double d2 = 0.1, d3 = 0.0, d4 = 0.2, d5 = 0.0, d6 = 0.0, d7 = 0.0, d8 = 1.0;
 
index ccab016..3ce168f 100644 (file)
@@ -52,10 +52,12 @@ static const int proxy_sizes[] = {IMB_PROXY_25, IMB_PROXY_50, IMB_PROXY_75, IMB_
 static const float proxy_fac[] = {0.25, 0.50, 0.75, 1.00};
 
 #ifdef WITH_FFMPEG
-static int tc_types[] = {IMB_TC_RECORD_RUN,
-                         IMB_TC_FREE_RUN,
-                         IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN,
-                         IMB_TC_RECORD_RUN_NO_GAPS};
+static int tc_types[] = {
+    IMB_TC_RECORD_RUN,
+    IMB_TC_FREE_RUN,
+    IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN,
+    IMB_TC_RECORD_RUN_NO_GAPS,
+};
 #endif
 
 #define INDEX_FILE_VERSION 1
index 8489442..ccf9c0c 100644 (file)
@@ -1143,14 +1143,16 @@ static void rna_ImageFormatSettings_file_format_set(PointerRNA *ptr, int value)
     const int depth_ok = BKE_imtype_valid_depths(imf->imtype);
     if ((imf->depth & depth_ok) == 0) {
       /* set first available depth */
-      char depth_ls[] = {R_IMF_CHAN_DEPTH_32,
-                         R_IMF_CHAN_DEPTH_24,
-                         R_IMF_CHAN_DEPTH_16,
-                         R_IMF_CHAN_DEPTH_12,
-                         R_IMF_CHAN_DEPTH_10,
-                         R_IMF_CHAN_DEPTH_8,
-                         R_IMF_CHAN_DEPTH_1,
-                         0};
+      char depth_ls[] = {
+          R_IMF_CHAN_DEPTH_32,
+          R_IMF_CHAN_DEPTH_24,
+          R_IMF_CHAN_DEPTH_16,
+          R_IMF_CHAN_DEPTH_12,
+          R_IMF_CHAN_DEPTH_10,
+          R_IMF_CHAN_DEPTH_8,
+          R_IMF_CHAN_DEPTH_1,
+          0,
+      };
       int i;
 
       for (i = 0; depth_ls[i]; i++) {
index e114483..74381a4 100644 (file)
@@ -952,10 +952,12 @@ static void add_poly(SkinOutput *so, BMVert *v1, BMVert *v2, BMVert *v3, BMVert
 
 static void connect_frames(SkinOutput *so, BMVert *frame1[4], BMVert *frame2[4])
 {
-  BMVert *q[4][4] = {{frame2[0], frame2[1], frame1[1], frame1[0]},
-                     {frame2[1], frame2[2], frame1[2], frame1[1]},
-                     {frame2[2], frame2[3], frame1[3], frame1[2]},
-                     {frame2[3], frame2[0], frame1[0], frame1[3]}};
+  BMVert *q[4][4] = {
+      {frame2[0], frame2[1], frame1[1], frame1[0]},
+      {frame2[1], frame2[2], frame1[2], frame1[1]},
+      {frame2[2], frame2[3], frame1[3], frame1[2]},
+      {frame2[3], frame2[0], frame1[0], frame1[3]},
+  };
   int i;
   bool swap;
 
index 8c46349..0d59961 100644 (file)
@@ -29,8 +29,10 @@ static bNodeSocketTemplate cmp_node_bilateralblur_in[] = {
     {SOCK_RGBA, 1, N_("Determinator"), 1.0f, 1.0f, 1.0f, 1.0f},
     {-1, 0, ""}};
 
-static bNodeSocketTemplate cmp_node_bilateralblur_out[] = {{SOCK_RGBA, 0, N_("Image")},
-                                                           {-1, 0, ""}};
+static bNodeSocketTemplate cmp_node_bilateralblur_out[] = {
+    {SOCK_RGBA, 0, N_("Image")},
+    {-1, 0, ""},
+};
 
 static void node_composit_init_bilateralblur(bNodeTree *UNUSED(ntree), bNode *node)
 {
index 82d35dc..c850edc 100644 (file)
 /* **************** SEPARATE YCCA ******************** */
 static bNodeSocketTemplate cmp_node_sepycca_in[] = {
     {SOCK_RGBA, 1, N_("Image"), 1.0f, 1.0f, 1.0f, 1.0f}, {-1, 0, ""}};
-static bNodeSocketTemplate cmp_node_sepycca_out[] = {{SOCK_FLOAT, 0, N_("Y")},
-                                                     {SOCK_FLOAT, 0, N_("Cb")},
-                                                     {SOCK_FLOAT, 0, N_("Cr")},
-                                                     {SOCK_FLOAT, 0, N_("A")},
-                                                     {-1, 0, ""}};
+static bNodeSocketTemplate cmp_node_sepycca_out[] = {
+    {SOCK_FLOAT, 0, N_("Y")},
+    {SOCK_FLOAT, 0, N_("Cb")},
+    {SOCK_FLOAT, 0, N_("Cr")},
+    {SOCK_FLOAT, 0, N_("A")},
+    {-1, 0, ""},
+};
 
 static void node_composit_init_mode_sepycca(bNodeTree *UNUSED(ntree), bNode *node)
 {
index b3277da..045bb1b 100644 (file)
 /* **************** SEPARATE YUVA ******************** */
 static bNodeSocketTemplate cmp_node_sepyuva_in[] = {
     {SOCK_RGBA, 1, N_("Image"), 1.0f, 1.0f, 1.0f, 1.0f}, {-1, 0, ""}};
-static bNodeSocketTemplate cmp_node_sepyuva_out[] = {{SOCK_FLOAT, 0, N_("Y")},
-                                                     {SOCK_FLOAT, 0, N_("U")},
-                                                     {SOCK_FLOAT, 0, N_("V")},
-                                                     {SOCK_FLOAT, 0, N_("A")},
-                                                     {-1, 0, ""}};
+static bNodeSocketTemplate cmp_node_sepyuva_out[] = {
+    {SOCK_FLOAT, 0, N_("Y")},
+    {SOCK_FLOAT, 0, N_("U")},
+    {SOCK_FLOAT, 0, N_("V")},
+    {SOCK_FLOAT, 0, N_("A")},
+    {-1, 0, ""},
+};
 
 void register_node_type_cmp_sepyuva(void)
 {
index 19cc9f2..08a53c1 100644 (file)
@@ -28,8 +28,10 @@ static bNodeSocketTemplate sh_node_vect_transform_in[] = {
     {SOCK_VECTOR, 1, N_("Vector"), 0.5f, 0.5f, 0.5f, 1.0f, -10000.0f, 10000.0f, PROP_NONE},
     {-1, 0, ""}};
 
-static bNodeSocketTemplate sh_node_vect_transform_out[] = {{SOCK_VECTOR, 0, N_("Vector")},
-                                                           {-1, 0, ""}};
+static bNodeSocketTemplate sh_node_vect_transform_out[] = {
+    {SOCK_VECTOR, 0, N_("Vector")},
+    {-1, 0, ""},
+};
 
 static void node_shader_init_vect_transform(bNodeTree *UNUSED(ntree), bNode *node)
 {
index ed576c5..08f4df5 100644 (file)
@@ -274,19 +274,35 @@ static PyObject *bpy_escape_identifier(PyObject *UNUSED(self), PyObject *value)
 }
 
 static PyMethodDef meth_bpy_script_paths = {
-    "script_paths", (PyCFunction)bpy_script_paths, METH_NOARGS, bpy_script_paths_doc};
-static PyMethodDef meth_bpy_blend_paths = {"blend_paths",
-                                           (PyCFunction)bpy_blend_paths,
-                                           METH_VARARGS | METH_KEYWORDS,
-                                           bpy_blend_paths_doc};
+    "script_paths",
+    (PyCFunction)bpy_script_paths,
+    METH_NOARGS,
+    bpy_script_paths_doc,
+};
+static PyMethodDef meth_bpy_blend_paths = {
+    "blend_paths",
+    (PyCFunction)bpy_blend_paths,
+    METH_VARARGS | METH_KEYWORDS,
+    bpy_blend_paths_doc,
+};
 static PyMethodDef meth_bpy_user_resource = {
-    "user_resource", (PyCFunction)bpy_user_resource, METH_VARARGS | METH_KEYWORDS, NULL};
-static PyMethodDef meth_bpy_resource_path = {"resource_path",
-                                             (PyCFunction)bpy_resource_path,
-                                             METH_VARARGS | METH_KEYWORDS,
-                                             bpy_resource_path_doc};
+    "user_resource",
+    (PyCFunction)bpy_user_resource,
+    METH_VARARGS | METH_KEYWORDS,
+    NULL,
+};
+static PyMethodDef meth_bpy_resource_path = {
+    "resource_path",
+    (PyCFunction)bpy_resource_path,
+    METH_VARARGS | METH_KEYWORDS,
+    bpy_resource_path_doc,
+};
 static PyMethodDef meth_bpy_escape_identifier = {
-    "escape_identifier", (PyCFunction)bpy_escape_identifier, METH_O, bpy_escape_identifier_doc};
+    "escape_identifier",
+    (PyCFunction)bpy_escape_identifier,
+    METH_O,
+    bpy_escape_identifier_doc,
+};
 
 static PyObject *bpy_import_test(const char *modname)
 {
index bb7604a..825961e 100644 (file)
@@ -378,10 +378,12 @@ int BPY_rna_id_collection_module(PyObject *mod_par)
 
   PyModule_AddObject(mod_par, "_rna_id_collection_user_map", PyCFunction_New(&user_map, NULL));
 
-  static PyMethodDef batch_remove = {"batch_remove",
-                                     (PyCFunction)bpy_batch_remove,
-                                     METH_VARARGS | METH_KEYWORDS,
-                                     bpy_batch_remove_doc};
+  static PyMethodDef batch_remove = {
+      "batch_remove",
+      (PyCFunction)bpy_batch_remove,
+      METH_VARARGS | METH_KEYWORDS,
+      bpy_batch_remove_doc,
+  };
 
   PyModule_AddObject(
       mod_par, "_rna_id_collection_batch_remove", PyCFunction_New(&batch_remove, NULL));
index 45f5696..58cfc35 100644 (file)
@@ -386,13 +386,17 @@ void WM_cursor_time(wmWindow *win, int nr)
  * I define 2 pretty brain-dead macros so it's obvious what the extra "[]"
  * are for */
 
-#define BEGIN_CURSOR_BLOCK {
-#define END_CURSOR_BLOCK }
+#define BEGIN_CURSOR_BLOCK \
+  { \
+    ((void)0)
+#define END_CURSOR_BLOCK \
+  } \
+  ((void)0)
 
 void wm_init_cursor_data(void)
 {
   /********************** NW_ARROW Cursor **************************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
   static char nw_sbm[] = {
       0x03, 0x00, 0x05, 0x00, 0x09, 0x00, 0x11, 0x00, 0x21, 0x00, 0x41,
       0x00, 0x81, 0x00, 0x01, 0x01, 0x01, 0x02, 0xc1, 0x03, 0x49, 0x00,
@@ -426,10 +430,10 @@ void wm_init_cursor_data(void)
   };
 
   BlenderCursor[BC_NW_ARROWCURSOR] = &NWArrowCursor;
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   ///********************** NS_ARROW Cursor *************************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
   static char ns_sbm[] = {
       0x40, 0x01, 0x20, 0x02, 0x10, 0x04, 0x08, 0x08, 0x04, 0x10, 0x3c,
       0x1e, 0x20, 0x02, 0x20, 0x02, 0x20, 0x02, 0x20, 0x02, 0x3c, 0x1e,
@@ -464,9 +468,9 @@ void wm_init_cursor_data(void)
 
   BlenderCursor[BC_NS_ARROWCURSOR] = &NSArrowCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
   /********************** EW_ARROW Cursor *************************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
   static char ew_sbm[] = {
       0x00, 0x00, 0x00, 0x00, 0x10, 0x08, 0x38, 0x1c, 0x2c, 0x34, 0xe6,
       0x67, 0x03, 0xc0, 0x01, 0x80, 0x03, 0xc0, 0xe6, 0x67, 0x2c, 0x34,
@@ -500,10 +504,10 @@ void wm_init_cursor_data(void)
   };
 
   BlenderCursor[BC_EW_ARROWCURSOR] = &EWArrowCursor;
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Wait Cursor *****************************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
   static char wait_sbm[] = {
       0xfe, 0x7f, 0x02, 0x40, 0x02, 0x40, 0x84, 0x21, 0xc8, 0x13, 0xd0,
       0x0b, 0xa0, 0x04, 0x20, 0x05, 0xa0, 0x04, 0x10, 0x09, 0x88, 0x11,
@@ -561,10 +565,10 @@ void wm_init_cursor_data(void)
   };
 
   BlenderCursor[BC_WAITCURSOR] = &WaitCursor;
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Cross Cursor ***************************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
   static char cross_sbm[] = {
       0x00, 0x00, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80, 0x01, 0x80,
       0x01, 0x80, 0x01, 0x7e, 0x7e, 0x7e, 0x7e, 0x80, 0x01, 0x80, 0x01,
@@ -621,10 +625,10 @@ void wm_init_cursor_data(void)
   };
 
   BlenderCursor[BC_CROSSCURSOR] = &CrossCursor;
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** EditCross Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
   static char editcross_sbm[] = {
       0x0e, 0x00, 0x11, 0x00, 0x1d, 0x00, 0x19, 0x03, 0x1d, 0x03, 0x11,
       0x03, 0x0e, 0x03, 0x00, 0x03, 0xf8, 0x7c, 0xf8, 0x7c, 0x00, 0x03,
@@ -658,10 +662,10 @@ void wm_init_cursor_data(void)
   };
 
   BlenderCursor[BC_EDITCROSSCURSOR] = &EditCrossCursor;
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Box Select *************************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
   static char box_sbm[32] = {
       0x7f, 0x00, 0x41, 0x00, 0x41, 0x00, 0x41, 0x06, 0x41, 0x06, 0x41,
       0x06, 0x7f, 0x06, 0x00, 0x06, 0xe0, 0x79, 0xe0, 0x79, 0x00, 0x06,
@@ -696,9 +700,9 @@ void wm_init_cursor_data(void)
 
   BlenderCursor[BC_BOXSELCURSOR] = &BoxSelCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
   /********************** Knife Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
   static char knife_sbm[] = {
       0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x2c, 0x00, 0x5a, 0x00,
       0x34, 0x00, 0x2a, 0x00, 0x17, 0x80, 0x06, 0x40, 0x03, 0xa0, 0x03,
@@ -757,10 +761,10 @@ void wm_init_cursor_data(void)
 
   BlenderCursor[BC_KNIFECURSOR] = &KnifeCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Loop Select Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
   static char vloop_sbm[] = {
       0x00, 0x00, 0x7e, 0x00, 0x3e, 0x00, 0x1e, 0x00, 0x0e, 0x00, 0x66,
@@ -820,10 +824,10 @@ void wm_init_cursor_data(void)
 
   BlenderCursor[BC_VLOOPCURSOR] = &VLoopCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** TextEdit Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
   static char textedit_sbm[] = {
       0xe0, 0x03, 0x10, 0x04, 0x60, 0x03, 0x40, 0x01, 0x40, 0x01, 0x40,
       0x01, 0x40, 0x01, 0x40, 0x01, 0x40, 0x01, 0x40, 0x01, 0x40, 0x01,
@@ -857,10 +861,10 @@ void wm_init_cursor_data(void)
   };
 
   BlenderCursor[BC_TEXTEDITCURSOR] = &TextEditCursor;
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Paintbrush Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
   static char paintbrush_sbm[] = {
 
       0x00, 0xe0, 0x00, 0x98, 0x00, 0x44, 0x00, 0x42, 0x00, 0x21, 0x80,
@@ -895,10 +899,10 @@ void wm_init_cursor_data(void)
   };
 
   BlenderCursor[BC_PAINTBRUSHCURSOR] = &PaintBrushCursor;
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Hand Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
   static char hand_sbm[] = {
       0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x80, 0x0d, 0x98, 0x6d, 0x98,
@@ -934,10 +938,10 @@ void wm_init_cursor_data(void)
 
   BlenderCursor[BC_HANDCURSOR] = &HandCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** NSEW Scroll Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
   static char nsewscroll_sbm[] = {
       0x00, 0x00, 0x80, 0x01, 0xc0, 0x03, 0xc0, 0x03, 0x00, 0x00, 0x00,
@@ -973,10 +977,10 @@ void wm_init_cursor_data(void)
 
   BlenderCursor[BC_NSEW_SCROLLCURSOR] = &NSEWScrollCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** NS Scroll Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
   static char nsscroll_sbm[] = {
       0x00, 0x00, 0x80, 0x01, 0xc0, 0x03, 0xc0, 0x03, 0x00, 0x00, 0x00,
@@ -1012,10 +1016,10 @@ void wm_init_cursor_data(void)
 
   BlenderCursor[BC_NS_SCROLLCURSOR] = &NSScrollCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** EW Scroll Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
   static char ewscroll_sbm[] = {
       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -1051,10 +1055,10 @@ void wm_init_cursor_data(void)
 
   BlenderCursor[BC_EW_SCROLLCURSOR] = &EWScrollCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Eyedropper Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
   static char eyedropper_sbm[] = {
       0x00, 0x30, 0x00, 0x48, 0x00, 0x85, 0x80, 0x82, 0x40, 0x40, 0x80,
@@ -1090,10 +1094,10 @@ void wm_init_cursor_data(void)
 
   BlenderCursor[BC_EYEDROPPER_CURSOR] = &EyedropperCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Swap Area Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
   static char swap_sbm[] = {
       0xc0, 0xff, 0x40, 0x80, 0x40, 0x80, 0x40, 0x9c, 0x40, 0x98, 0x40,
       0x94, 0x00, 0x82, 0xfe, 0x80, 0x7e, 0xfd, 0xbe, 0x01, 0xda, 0x01,
@@ -1128,18 +1132,22 @@ void wm_init_cursor_data(void)
 
   BlenderCursor[BC_SWAPAREA_CURSOR] = &SwapCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Horizontal Split Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
-  static char hsplit_sbm[] = {0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x88,
-                              0x08, 0x8C, 0x18, 0x8E, 0x38, 0x8C, 0x18, 0x88, 0x08, 0x80, 0x00,
-                              0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00};
+  static char hsplit_sbm[] = {
+      0x00, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x88,
+      0x08, 0x8C, 0x18, 0x8E, 0x38, 0x8C, 0x18, 0x88, 0x08, 0x80, 0x00,
+      0x80, 0x00, 0x80, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
+  };
 
-  static char hsplit_smsk[] = {0xC0, 0x01, 0xC0, 0x01, 0xC0, 0x01, 0xD0, 0x05, 0xD8, 0x0D, 0xDC,
-                               0x1D, 0xDE, 0x3D, 0xDF, 0x7D, 0xDE, 0x3D, 0xDC, 0x1D, 0xD8, 0x0D,
-                               0xD0, 0x05, 0xC0, 0x01, 0xC0, 0x01, 0xC0, 0x01, 0x00, 0x00};
+  static char hsplit_smsk[] = {
+      0xC0, 0x01, 0xC0, 0x01, 0xC0, 0x01, 0xD0, 0x05, 0xD8, 0x0D, 0xDC,
+      0x1D, 0xDE, 0x3D, 0xDF, 0x7D, 0xDE, 0x3D, 0xDC, 0x1D, 0xD8, 0x0D,
+      0xD0, 0x05, 0xC0, 0x01, 0xC0, 0x01, 0xC0, 0x01, 0x00, 0x00,
+  };
 
   static char hsplit_lbm[] = {
       0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x80, 0x01, 0x00, 0x00, 0x80, 0x01,
@@ -1163,38 +1171,44 @@ void wm_init_cursor_data(void)
       0xC8, 0x03, 0x00, 0x00, 0xC0, 0x03, 0x00, 0x00, 0xC0, 0x03, 0x00, 0x00, 0xC0, 0x03, 0x00,
       0x00, 0xC0, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00};
 
-  static BCursor HSplitCursor = {/*small*/
-                                 hsplit_sbm,
-                                 hsplit_smsk,
-                                 16,
-                                 16,
-                                 7,
-                                 7,
-                                 /*big*/
-                                 hsplit_lbm,
-                                 hsplit_lmsk,
-                                 32,
-                                 32,
-                                 15,
-                                 15,
-                                 /*color*/
-                                 BC_BLACK,
-                                 BC_WHITE};
+  static BCursor HSplitCursor = {
+      /*small*/
+      hsplit_sbm,
+      hsplit_smsk,
+      16,
+      16,
+      7,
+      7,
+      /*big*/
+      hsplit_lbm,
+      hsplit_lmsk,
+      32,
+      32,
+      15,
+      15,
+      /*color*/
+      BC_BLACK,
+      BC_WHITE,
+  };
 
   BlenderCursor[BC_H_SPLITCURSOR] = &HSplitCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Vertical Split Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
-  static char vsplit_sbm[] = {0x00, 0x00, 0x80, 0x00, 0xC0, 0x01, 0xE0, 0x03, 0x00, 0x00, 0x00,
-                              0x00, 0x00, 0x00, 0xFE, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-                              0xE0, 0x03, 0xC0, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00};
+  static char vsplit_sbm[] = {
+      0x00, 0x00, 0x80, 0x00, 0xC0, 0x01, 0xE0, 0x03, 0x00, 0x00, 0x00,
+      0x00, 0x00, 0x00, 0xFE, 0x3F, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+      0xE0, 0x03, 0xC0, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
+  };
 
-  static char vsplit_smsk[] = {0x80, 0x00, 0xC0, 0x01, 0xE0, 0x03, 0xF0, 0x07, 0xF8, 0x0F, 0x00,
-                               0x00, 0xFF, 0x7F, 0xFF, 0x7F, 0xFF, 0x7F, 0x00, 0x00, 0xF8, 0x0F,
-                               0xF0, 0x07, 0xE0, 0x03, 0xC0, 0x01, 0x80, 0x00, 0x00, 0x00};
+  static char vsplit_smsk[] = {
+      0x80, 0x00, 0xC0, 0x01, 0xE0, 0x03, 0xF0, 0x07, 0xF8, 0x0F, 0x00,
+      0x00, 0xFF, 0x7F, 0xFF, 0x7F, 0xFF, 0x7F, 0x00, 0x00, 0xF8, 0x0F,
+      0xF0, 0x07, 0xE0, 0x03, 0xC0, 0x01, 0x80, 0x00, 0x00, 0x00,
+  };
 
   static char vsplit_lbm[] = {
       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00,
@@ -1218,38 +1232,44 @@ void wm_init_cursor_data(void)
       0xF8, 0x0F, 0x00, 0x00, 0xF0, 0x07, 0x00, 0x00, 0xE0, 0x03, 0x00, 0x00, 0xC0, 0x01, 0x00,
       0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
 
-  static BCursor VSplitCursor = {/*small*/
-                                 vsplit_sbm,
-                                 vsplit_smsk,
-                                 16,
-                                 16,
-                                 7,
-                                 7,
-                                 /*big*/
-                                 vsplit_lbm,
-                                 vsplit_lmsk,
-                                 32,
-                                 32,
-                                 15,
-                                 15,
-                                 /*color*/
-                                 BC_BLACK,
-                                 BC_WHITE};
+  static BCursor VSplitCursor = {
+      /*small*/
+      vsplit_sbm,
+      vsplit_smsk,
+      16,
+      16,
+      7,
+      7,
+      /*big*/
+      vsplit_lbm,
+      vsplit_lmsk,
+      32,
+      32,
+      15,
+      15,
+      /*color*/
+      BC_BLACK,
+      BC_WHITE,
+  };
 
   BlenderCursor[BC_V_SPLITCURSOR] = &VSplitCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** North Arrow Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
-  static char narrow_sbm[] = {0x00, 0x00, 0x80, 0x00, 0xC0, 0x01, 0xE0, 0x03, 0xF0, 0x07, 0xF8,
-                              0x0F, 0xFC, 0x1F, 0xE0, 0x03, 0xE0, 0x03, 0xE0, 0x03, 0xE0, 0x03,
-                              0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+  static char narrow_sbm[] = {
+      0x00, 0x00, 0x80, 0x00, 0xC0, 0x01, 0xE0, 0x03, 0xF0, 0x07, 0xF8,
+      0x0F, 0xFC, 0x1F, 0xE0, 0x03, 0xE0, 0x03, 0xE0, 0x03, 0xE0, 0x03,
+      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  };
 
-  static char narrow_smsk[] = {0x80, 0x00, 0xC0, 0x01, 0xE0, 0x03, 0xF0, 0x07, 0xF8, 0x0F, 0xFC,
-                               0x1F, 0xFE, 0x3F, 0xFF, 0x7F, 0xF0, 0x07, 0xF0, 0x07, 0xF0, 0x07,
-                               0xF0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+  static char narrow_smsk[] = {
+      0x80, 0x00, 0xC0, 0x01, 0xE0, 0x03, 0xF0, 0x07, 0xF8, 0x0F, 0xFC,
+      0x1F, 0xFE, 0x3F, 0xFF, 0x7F, 0xF0, 0x07, 0xF0, 0x07, 0xF0, 0x07,
+      0xF0, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  };
 
   static char narrow_lbm[] = {
       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0xC0, 0x01,
@@ -1273,38 +1293,44 @@ void wm_init_cursor_data(void)
       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
 
-  static BCursor NArrowCursor = {/*small*/
-                                 narrow_sbm,
-                                 narrow_smsk,
-                                 16,
-                                 16,
-                                 7,
-                                 4,
-                                 /*big*/
-                                 narrow_lbm,
-                                 narrow_lmsk,
-                                 32,
-                                 32,
-                                 15,
-                                 10,
-                                 /*color*/
-                                 BC_BLACK,
-                                 BC_WHITE};
+  static BCursor NArrowCursor = {
+      /*small*/
+      narrow_sbm,
+      narrow_smsk,
+      16,
+      16,
+      7,
+      4,
+      /*big*/
+      narrow_lbm,
+      narrow_lmsk,
+      32,
+      32,
+      15,
+      10,
+      /*color*/
+      BC_BLACK,
+      BC_WHITE,
+  };
 
   BlenderCursor[BC_N_ARROWCURSOR] = &NArrowCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** South Arrow Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
-  static char sarrow_sbm[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0,
-                              0x03, 0xE0, 0x03, 0xE0, 0x03, 0xE0, 0x03, 0xFC, 0x1F, 0xF8, 0x0F,
-                              0xF0, 0x07, 0xE0, 0x03, 0xC0, 0x01, 0x80, 0x00, 0x00, 0x00};
+  static char sarrow_sbm[] = {
+      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xE0,
+      0x03, 0xE0, 0x03, 0xE0, 0x03, 0xE0, 0x03, 0xFC, 0x1F, 0xF8, 0x0F,
+      0xF0, 0x07, 0xE0, 0x03, 0xC0, 0x01, 0x80, 0x00, 0x00, 0x00,
+  };
 
-  static char sarrow_smsk[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x07, 0xF0,
-                               0x07, 0xF0, 0x07, 0xF0, 0x07, 0xFF, 0x7F, 0xFE, 0x3F, 0xFC, 0x1F,
-                               0xF8, 0x0F, 0xF0, 0x07, 0xE0, 0x03, 0xC0, 0x01, 0x80, 0x00};
+  static char sarrow_smsk[] = {
+      0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x07, 0xF0,
+      0x07, 0xF0, 0x07, 0xF0, 0x07, 0xFF, 0x7F, 0xFE, 0x3F, 0xFC, 0x1F,
+      0xF8, 0x0F, 0xF0, 0x07, 0xE0, 0x03, 0xC0, 0x01, 0x80, 0x00,
+  };
 
   static char sarrow_lbm[] = {
       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -1328,38 +1354,44 @@ void wm_init_cursor_data(void)
       0xFC, 0x1F, 0x00, 0x00, 0xF8, 0x0F, 0x00, 0x00, 0xF0, 0x07, 0x00, 0x00, 0xE0, 0x03, 0x00,
       0x00, 0xC0, 0x01, 0x00, 0x00, 0x80, 0x00, 0x00};
 
-  static BCursor SArrowCursor = {/*small*/
-                                 sarrow_sbm,
-                                 sarrow_smsk,
-                                 16,
-                                 16,
-                                 7,
-                                 11,
-                                 /*big*/
-                                 sarrow_lbm,
-                                 sarrow_lmsk,
-                                 32,
-                                 32,
-                                 15,
-                                 21,
-                                 /*color*/
-                                 BC_BLACK,
-                                 BC_WHITE};
+  static BCursor SArrowCursor = {
+      /*small*/
+      sarrow_sbm,
+      sarrow_smsk,
+      16,
+      16,
+      7,
+      11,
+      /*big*/
+      sarrow_lbm,
+      sarrow_lmsk,
+      32,
+      32,
+      15,
+      21,
+      /*color*/
+      BC_BLACK,
+      BC_WHITE,
+  };
 
   BlenderCursor[BC_S_ARROWCURSOR] = &SArrowCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** East Arrow Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
-  static char earrow_sbm[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x0E, 0xE0,
-                              0x1F, 0xE0, 0x3F, 0xE0, 0x7F, 0xE0, 0x3F, 0xE0, 0x1F, 0x00, 0x0E,
-                              0x00, 0x06, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+  static char earrow_sbm[] = {
+      0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x06, 0x00, 0x0E, 0xE0,
+      0x1F, 0xE0, 0x3F, 0xE0, 0x7F, 0xE0, 0x3F, 0xE0, 0x1F, 0x00, 0x0E,
+      0x00, 0x06, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  };
 
-  static char earrow_smsk[] = {0x00, 0x01, 0x00, 0x03, 0x00, 0x07, 0x00, 0x0F, 0xF0, 0x1F, 0xF0,
-                               0x3F, 0xF0, 0x7F, 0xF0, 0xFF, 0xF0, 0x7F, 0xF0, 0x3F, 0xF0, 0x1F,
-                               0x00, 0x0F, 0x00, 0x07, 0x00, 0x03, 0x00, 0x01, 0x00, 0x00};
+  static char earrow_smsk[] = {
+      0x00, 0x01, 0x00, 0x03, 0x00, 0x07, 0x00, 0x0F, 0xF0, 0x1F, 0xF0,
+      0x3F, 0xF0, 0x7F, 0xF0, 0xFF, 0xF0, 0x7F, 0xF0, 0x3F, 0xF0, 0x1F,
+      0x00, 0x0F, 0x00, 0x07, 0x00, 0x03, 0x00, 0x01, 0x00, 0x00,
+  };
 
   static char earrow_lbm[] = {
       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,
@@ -1383,38 +1415,44 @@ void wm_init_cursor_data(void)
       0x00, 0x1F, 0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x03, 0x00,
       0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00};
 
-  static BCursor EArrowCursor = {/*small*/
-                                 earrow_sbm,
-                                 earrow_smsk,
-                                 16,
-                                 16,
-                                 11,
-                                 7,
-                                 /*big*/
-                                 earrow_lbm,
-                                 earrow_lmsk,
-                                 32,
-                                 32,
-                                 15,
-                                 22,
-                                 /*color*/
-                                 BC_BLACK,
-                                 BC_WHITE};
+  static BCursor EArrowCursor = {
+      /*small*/
+      earrow_sbm,
+      earrow_smsk,
+      16,
+      16,
+      11,
+      7,
+      /*big*/
+      earrow_lbm,
+      earrow_lmsk,
+      32,
+      32,
+      15,
+      22,
+      /*color*/
+      BC_BLACK,
+      BC_WHITE,
+  };
 
   BlenderCursor[BC_E_ARROWCURSOR] = &EArrowCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** West Arrow Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
-  static char warrow_sbm[] = {0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x60, 0x00, 0x70, 0x00, 0xF8,
-                              0x07, 0xFC, 0x07, 0xFE, 0x07, 0xFC, 0x07, 0xF8, 0x07, 0x70, 0x00,
-                              0x60, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
+  static char warrow_sbm[] = {
+      0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x60, 0x00, 0x70, 0x00, 0xF8,
+      0x07, 0xFC, 0x07, 0xFE, 0x07, 0xFC, 0x07, 0xF8, 0x07, 0x70, 0x00,
+      0x60, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+  };
 
-  static char warrow_smsk[] = {0x80, 0x00, 0xC0, 0x00, 0xE0, 0x00, 0xF0, 0x00, 0xF8, 0x0F, 0xFC,
-                               0x0F, 0xFE, 0x0F, 0xFF, 0x0F, 0xFE, 0x0F, 0xFC, 0x0F, 0xF8, 0x0F,
-                               0xF0, 0x00, 0xE0, 0x00, 0xC0, 0x00, 0x80, 0x00, 0x00, 0x00};
+  static char warrow_smsk[] = {
+      0x80, 0x00, 0xC0, 0x00, 0xE0, 0x00, 0xF0, 0x00, 0xF8, 0x0F, 0xFC,
+      0x0F, 0xFE, 0x0F, 0xFF, 0x0F, 0xFE, 0x0F, 0xFC, 0x0F, 0xF8, 0x0F,
+      0xF0, 0x00, 0xE0, 0x00, 0xC0, 0x00, 0x80, 0x00, 0x00, 0x00,
+  };
 
   static char warrow_lbm[] = {
       0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00,
@@ -1438,38 +1476,44 @@ void wm_init_cursor_data(void)
       0xF8, 0x00, 0x00, 0x00, 0xF0, 0x00, 0x00, 0x00, 0xE0, 0x00, 0x00, 0x00, 0xC0, 0x00, 0x00,
       0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
 
-  static BCursor WArrowCursor = {/*small*/
-                                 warrow_sbm,
-                                 warrow_smsk,
-                                 16,
-                                 16,
-                                 4,
-                                 7,
-                                 /*big*/
-                                 warrow_lbm,
-                                 warrow_lmsk,
-                                 32,
-                                 32,
-                                 15,
-                                 15,
-                                 /*color*/
-                                 BC_BLACK,
-                                 BC_WHITE};
+  static BCursor WArrowCursor = {
+      /*small*/
+      warrow_sbm,
+      warrow_smsk,
+      16,
+      16,
+      4,
+      7,
+      /*big*/
+      warrow_lbm,
+      warrow_lmsk,
+      32,
+      32,
+      15,
+      15,
+      /*color*/
+      BC_BLACK,
+      BC_WHITE,
+  };
 
   BlenderCursor[BC_W_ARROWCURSOR] = &WArrowCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Stop Sign Cursor ***********************/
-  BEGIN_CURSOR_BLOCK
+  BEGIN_CURSOR_BLOCK;
 
-  static char stop_sbm[] = {0x00, 0x00, 0xE0, 0x07, 0x38, 0x1C, 0x1C, 0x30, 0x3C, 0x20, 0x76,
-                            0x60, 0xE2, 0x40, 0xC2, 0x41, 0x82, 0x43, 0x02, 0x47, 0x06, 0x6E,
-                            0x04, 0x3C, 0x0C, 0x38, 0x38, 0x1C, 0xE0, 0x07, 0x00, 0x00};
+  static char stop_sbm[] = {
+      0x00, 0x00, 0xE0, 0x07, 0x38, 0x1C, 0x1C, 0x30, 0x3C, 0x20, 0x76,
+      0x60, 0xE2, 0x40, 0xC2, 0x41, 0x82, 0x43, 0x02, 0x47, 0x06, 0x6E,
+      0x04, 0x3C, 0x0C, 0x38, 0x38, 0x1C, 0xE0, 0x07, 0x00, 0x00,
+  };
 
-  static char stop_smsk[] = {0xE0, 0x07, 0xF8, 0x1F, 0xFC, 0x3F, 0x3E, 0x7C, 0x7E, 0x70, 0xFF,
-                             0xF0, 0xF7, 0xE1, 0xE7, 0xE3, 0xC7, 0xE7, 0x87, 0xEF, 0x0F, 0xFF,
-                             0x0E, 0x7E, 0x3E, 0x7C, 0xFC, 0x3F, 0xF8, 0x1F, 0xE0, 0x07};
+  static char stop_smsk[] = {
+      0xE0, 0x07, 0xF8, 0x1F, 0xFC, 0x3F, 0x3E, 0x7C, 0x7E, 0x70, 0xFF,
+      0xF0, 0xF7, 0xE1, 0xE7, 0xE3, 0xC7, 0xE7, 0x87, 0xEF, 0x0F, 0xFF,
+      0x0E, 0x7E, 0x3E, 0x7C, 0xFC, 0x3F, 0xF8, 0x1F, 0xE0, 0x07,
+  };
 
   static char stop_lbm[] = {
       0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x0F, 0x00, 0x00, 0xFE, 0x7F, 0x00, 0x00, 0x0F, 0xF0,
@@ -1493,27 +1537,29 @@ void wm_init_cursor_data(void)
       0x03, 0xC0, 0x0F, 0xE0, 0x1F, 0xF8, 0x07, 0xC0, 0xFF, 0xFF, 0x03, 0x80, 0xFF, 0xFF, 0x01,
       0x00, 0xFE, 0x7F, 0x00, 0x00, 0xF0, 0x0F, 0x00};
 
-  static BCursor StopCursor = {/*small*/
-                               stop_sbm,
-                               stop_smsk,
-                               16,
-                               16,
-                               7,
-                               7,
-                               /*big*/
-                               stop_lbm,
-                               stop_lmsk,
-                               32,
-                               32,
-                               15,
-                               15,
-                               /*color*/
-                               BC_BLACK,
-                               BC_WHITE};
+  static BCursor StopCursor = {
+      /*small*/
+      stop_sbm,
+      stop_smsk,
+      16,
+      16,
+      7,
+      7,
+      /*big*/
+      stop_lbm,
+      stop_lmsk,
+      32,
+      32,
+      15,
+      15,
+      /*color*/
+      BC_BLACK,
+      BC_WHITE,
+  };
 
   BlenderCursor[BC_STOPCURSOR] = &StopCursor;
 
-  END_CURSOR_BLOCK
+  END_CURSOR_BLOCK;
 
   /********************** Put the cursors in the array ***********************/
 }
index 701aae2..20f6162 100644 (file)
@@ -3343,14 +3343,16 @@ static const EnumPropertyItem preview_id_type_items[] = {
 static int previews_clear_exec(bContext *C, wmOperator *op)
 {
   Main *bmain = CTX_data_main(C);
-  ListBase *lb[] = {&bmain->objects,
-                    &bmain->collections,
-                    &bmain->materials,
-                    &bmain->worlds,
-                    &bmain->lights,
-                    &bmain->textures,
-                    &bmain->images,
-                    NULL};
+  ListBase *lb[] = {
+      &bmain->objects,
+      &bmain->collections,
+      &bmain->materials,
+      &bmain->worlds,
+      &bmain->lights,
+      &bmain->textures,
+      &bmain->images,
+      NULL,
+  };
   int i;
 
   const int id_filters = RNA_enum_get(op->ptr, "id_type");
index d487823..9b908bf 100644 (file)
@@ -438,18 +438,20 @@ TEST(polyfill2d, UnorderedColinear)
 /* Plus shape */
 TEST(polyfill2d, PlusShape)
 {
-  const float poly[][2] = {{1, 0},
-                           {2, 0},
-                           {2, 1},
-                           {3, 1},
-                           {3, 2},
-                           {2, 2},
-                           {2, 3},
-                           {1, 3},
-                           {1, 2},
-                           {0, 2},
-                           {0, 1},
-                           {1, 1}};
+  const float poly[][2] = {
+      {1, 0},
+      {2, 0},
+      {2, 1},
+      {3, 1},
+      {3, 2},
+      {2, 2},
+      {2, 3},
+      {1, 3},
+      {1, 2},
+      {0, 2},
+      {0, 1},
+      {1, 1},
+  };
   TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
 }
 
@@ -471,43 +473,47 @@ TEST(polyfill2d, UShape)
 /* Spiral */
 TEST(polyfill2d, Spiral)
 {
-  const float poly[][2] = {{1, 0},
-                           {4, 0},
-                           {5, 1},
-                           {5, 4},
-                           {4, 5},
-                           {1, 5},
-                           {0, 4},
-                           {0, 3},
-                           {1, 2},
-                           {2, 2},
-                           {3, 3},
-                           {1, 3},
-                           {1, 4},
-                           {4, 4},
-                           {4, 1},
-                           {0, 1}};
+  const float poly[][2] = {
+      {1, 0},
+      {4, 0},
+      {5, 1},
+      {5, 4},
+      {4, 5},
+      {1, 5},
+      {0, 4},
+      {0, 3},
+      {1, 2},
+      {2, 2},
+      {3, 3},
+      {1, 3},
+      {1, 4},
+      {4, 4},
+      {4, 1},
+      {0, 1},
+  };
   TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
 }
 
 /* Test case from http:# www.flipcode.com/archives/Efficient_Polygon_Triangulation.shtml */
 TEST(polyfill2d, TestFlipCode)
 {
-  const float poly[][2] = {{0, 6},
-                           {0, 0},
-                           {3, 0},
-                           {4, 1},
-                           {6, 1},
-                           {8, 0},
-                           {12, 0},
-                           {13, 2},
-                           {8, 2},
-                           {8, 4},
-                           {11, 4},
-                           {11, 6},
-                           {6, 6},
-                           {4, 3},
-                           {2, 6}};
+  const float poly[][2] = {
+      {0, 6},
+      {0, 0},
+      {3, 0},
+      {4, 1},
+      {6, 1},
+      {8, 0},
+      {12, 0},
+      {13, 2},
+      {8, 2},
+      {8, 4},
+      {11, 4},
+      {11, 6},
+      {6, 6},
+      {4, 3},
+      {2, 6},
+  };
   TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
 }
 
@@ -521,78 +527,87 @@ TEST(polyfill2d, SelfIntersect)
 /* Self-touching */
 TEST(polyfill2d, SelfTouch)
 {
-  const float poly[][2] = {{0, 0},
-                           {4, 0},
-                           {4, 4},
-                           {2, 4},
-                           {2, 3},
-                           {3, 3},
-                           {3, 1},
-                           {1, 1},
-                           {1, 3},
-                           {2, 3},
-                           {2, 4},
-                           {0, 4}};
+  const float poly[][2] = {
+      {0, 0},
+      {4, 0},
+      {4, 4},
+      {2, 4},
+      {2, 3},
+      {3, 3},
+      {3, 1},
+      {1, 1},
+      {1, 3},
+      {2, 3},
+      {2, 4},
+      {0, 4},
+  };
   TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
 }
 
 /* Self-overlapping */
 TEST(polyfill2d, SelfOverlap)
 {
-  const float poly[][2] = {{0, 0},
-                           {4, 0},
-                           {4, 4},
-                           {1, 4},
-                           {1, 3},
-                           {3, 3},
-                           {3, 1},
-                           {1, 1},
-                           {1, 3},
-                           {3, 3},
-                           {3, 4},
-                           {0, 4}};
+  const float poly[][2] = {
+      {0, 0},
+      {4, 0},
+      {4, 4},
+      {1, 4},
+      {1, 3},
+      {3, 3},
+      {3, 1},
+      {1, 1},
+      {1, 3},
+      {3, 3},
+      {3, 4},
+      {0, 4},
+  };
   TEST_POLYFILL_TEMPLATE_STATIC(poly, true);
 }
 
 /* Test case from http:# www.davdata.nl/math/polygons.html */
 TEST(polyfill2d, TestDavData)
 {
-  const float poly[][2] = {{190, 480}, {140, 180}, {310, 100}, {330, 390}, {290, 390},
-                           {280, 260}, {220, 260}, {220, 430}, {370, 430}, {350, 30},
-                           {50, 30},   {160, 560}, {730, 510}, {710, 20},  {410, 30},
-                           {470, 440}, {640, 410}, {630, 140}, {590, 140}, {580, 360},
-                           {510, 370}, {510, 60},  {650, 70},  {660, 450}, {190, 480}};
+  const float poly[][2] = {
+      {190, 480}, {140, 180}, {310, 100}, {330, 390}, {290, 390}, {280, 260}, {220, 260},
+      {220, 430}, {370, 430}, {350, 30},  {50, 30},   {160, 560}, {730, 510}, {710, 20},
+      {410, 30},  {470, 440}, {640, 410}, {630, 140}, {590, 140}, {580, 360}, {510, 370},
+      {510, 60},  {650, 70},  {660, 450}, {190, 480},
+  };
   TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
 }
 
 /* Issue 815, http:# code.google.com/p/libgdx/issues/detail?id=815 */
 TEST(polyfill2d, Issue815)
 {
-  const float poly[][2] = {{-2.0f, 0.0f},
-                           {-2.0f, 0.5f},
-                           {0.0f, 1.0f},
-                           {0.5f, 2.875f},
-                           {1.0f, 0.5f},
-                           {1.5f, 1.0f},
-                           {2.0f, 1.0f},
-                           {2.0f, 0.0f}};
+  const float poly[][2] = {
+      {-2.0f, 0.0f},
+      {-2.0f, 0.5f},
+      {0.0f, 1.0f},
+      {0.5f, 2.875f},
+      {1.0f, 0.5f},
+      {1.5f, 1.0f},
+      {2.0f, 1.0f},
+      {2.0f, 0.0f},
+  };
   TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
 }
 
 /* Issue 207, comment #1, http:# code.google.com/p/libgdx/issues/detail?id=207#c1 */
 TEST(polyfill2d, Issue207_1)
 {
-  const float poly[][2] = {{72.42465f, 197.07095f},
-                           {78.485535f, 189.92776f},
-                           {86.12059f, 180.92929f},
-                           {99.68253f, 164.94557f},
-                           {105.24325f, 165.79604f},
-                           {107.21862f, 166.09814f},
-                           {112.41958f, 162.78253f},
-                           {113.73238f, 161.94562f},
-                           {123.29477f, 167.93805f},
-                           {126.70667f, 170.07617f},
-                           {73.22717f, 199.51062f}};
+  const float poly[][2] = {
+      {72.42465f, 197.07095f},
+      {78.485535f, 189.92776f},
+      {86.12059f, 180.92929f},
+      {99.68253f, 164.94557f},
+      {105.24325f, 165.79604f},
+      {107.21862f, 166.09814f},
+      {112.41958f, 162.78253f},
+      {113.73238f, 161.94562f},
+      {123.29477f, 167.93805f},
+      {126.70667f, 170.07617f},
+      {73.22717f, 199.51062f},
+  };
   TEST_POLYFILL_TEMPLATE_STATIC(poly, true);
 }
 
@@ -619,10 +634,12 @@ TEST(polyfill2d, Issue207_11)
 /* Issue 1407, http:# code.google.com/p/libgdx/issues/detail?id=1407 */
 TEST(polyfill2d, Issue1407)
 {
-  const float poly[][2] = {{3.914329f, 1.9008259f},
-                           {4.414321f, 1.903619f},
-                           {4.8973203f, 1.9063174f},
-                           {5.4979978f, 1.9096732f}};
+  const float poly[][2] = {
+      {3.914329f, 1.9008259f},
+      {4.414321f, 1.903619f},
+      {4.8973203f, 1.9063174f},
+      {5.4979978f, 1.9096732f},
+  };
   TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
 }
 
@@ -630,21 +647,24 @@ TEST(polyfill2d, Issue1407)
 /* with an additional point to show what is happening. */
 TEST(polyfill2d, Issue1407_pt)
 {
-  const float poly[][2] = {{3.914329f, 1.9008259f},
-                           {4.414321f, 1.903619f},
-                           {4.8973203f, 1.9063174f},
-                           {5.4979978f, 1.9096732f},
-                           {4, 4}};
+  const float poly[][2] = {
+      {3.914329f, 1.9008259f},
+      {4.414321f, 1.903619f},
+      {4.8973203f, 1.9063174f},
+      {5.4979978f, 1.9096732f},
+      {4, 4},
+  };
   TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
 }
 
 /* Simplified from Blender bug T40777 */
 TEST(polyfill2d, IssueT40777_colinear)
 {
-  const float poly[][2] = {{0.7, 0.37}, {0.7, 0},  {0.76, 0},    {0.76, 0.4},  {0.83, 0.4},
-                           {0.83, 0},   {0.88, 0}, {0.88, 0.4},  {0.94, 0.4},  {0.94, 0},
-                           {1, 0},      {1, 0.4},  {0.03, 0.62}, {0.03, 0.89}, {0.59, 0.89},
-                           {0.03, 1},   {0, 1},    {0, 0},       {0.03, 0},    {0.03, 0.37}};
+  const float poly[][2] = {
+      {0.7, 0.37},  {0.7, 0},    {0.76, 0}, {0.76, 0.4}, {0.83, 0.4}, {0.83, 0},    {0.88, 0},
+      {0.88, 0.4},  {0.94, 0.4}, {0.94, 0}, {1, 0},      {1, 0.4},    {0.03, 0.62}, {0.03, 0.89},
+      {0.59, 0.89}, {0.03, 1},   {0, 1},    {0, 0},      {0.03, 0},   {0.03, 0.37},
+  };
   TEST_POLYFILL_TEMPLATE_STATIC(poly, false);
 }