[Bf-blender-cvs] [285353c2528] master: Cleanup: clang-format

Ray Molenkamp noreply at git.blender.org
Fri Aug 28 18:04:31 CEST 2020


Commit: 285353c25289c83942af009ead88d2f74ff9f3d8
Author: Ray Molenkamp
Date:   Fri Aug 28 10:04:26 2020 -0600
Branches: master
https://developer.blender.org/rB285353c25289c83942af009ead88d2f74ff9f3d8

Cleanup: clang-format

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

M	source/blender/blenlib/BLI_math_boolean.hh
M	source/blender/blenlib/intern/math_boolean.cc
M	source/blender/blenlib/tests/BLI_mesh_intersect_test.cc

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

diff --git a/source/blender/blenlib/BLI_math_boolean.hh b/source/blender/blenlib/BLI_math_boolean.hh
index da79e9eeaba..79b1483bfb8 100644
--- a/source/blender/blenlib/BLI_math_boolean.hh
+++ b/source/blender/blenlib/BLI_math_boolean.hh
@@ -25,24 +25,23 @@
 #include "BLI_double3.hh"
 
 #ifdef WITH_GMP
-#include "BLI_math_mpq.hh"
-#include "BLI_mpq2.hh"
-#include "BLI_mpq3.hh"
+#  include "BLI_math_mpq.hh"
+#  include "BLI_mpq2.hh"
+#  include "BLI_mpq3.hh"
 #endif
 
 namespace blender {
 
 /* #orient2d gives the exact result, using multi-precision arithmetic when result
-* is close to zero. orient3d_fast just uses double arithmetic, so may be
-* wrong if the answer is very close to zero.
-* Similarly, for #incircle and #incircle_fast. */
+ * is close to zero. orient3d_fast just uses double arithmetic, so may be
+ * wrong if the answer is very close to zero.
+ * Similarly, for #incircle and #incircle_fast. */
 int orient2d(const double2 &a, const double2 &b, const double2 &c);
 int orient2d_fast(const double2 &a, const double2 &b, const double2 &c);
 
 int incircle(const double2 &a, const double2 &b, const double2 &c, const double2 &d);
 int incircle_fast(const double2 &a, const double2 &b, const double2 &c, const double2 &d);
 
-
 /* #orient3d gives the exact result, using multi-precision arithmetic when result
  * is close to zero. orient3d_fast just uses double arithmetic, so may be
  * wrong if the answer is very close to zero.
@@ -50,8 +49,10 @@ int incircle_fast(const double2 &a, const double2 &b, const double2 &c, const do
 int orient3d(const double3 &a, const double3 &b, const double3 &c, const double3 &d);
 int orient3d_fast(const double3 &a, const double3 &b, const double3 &c, const double3 &d);
 
-int insphere(const double3 &a, const double3 &b, const double3 &c, const double3 &d, const double3 &e);
-int insphere_fast(const double3 &a, const double3 &b, const double3 &c, const double3 &d, const double3 &e);
+int insphere(
+    const double3 &a, const double3 &b, const double3 &c, const double3 &d, const double3 &e);
+int insphere_fast(
+    const double3 &a, const double3 &b, const double3 &c, const double3 &d, const double3 &e);
 
 #ifdef WITH_GMP
 int orient2d(const mpq2 &a, const mpq2 &b, const mpq2 &c);
diff --git a/source/blender/blenlib/intern/math_boolean.cc b/source/blender/blenlib/intern/math_boolean.cc
index fc6d117fa1d..2210911ad9c 100644
--- a/source/blender/blenlib/intern/math_boolean.cc
+++ b/source/blender/blenlib/intern/math_boolean.cc
@@ -2530,4 +2530,4 @@ int insphere_fast(
   return sgn(robust_pred::inspherefast(a, b, c, d, e));
 }
 
-} // namespace blender
+}  // namespace blender
diff --git a/source/blender/blenlib/tests/BLI_mesh_intersect_test.cc b/source/blender/blenlib/tests/BLI_mesh_intersect_test.cc
index f3890bcebb2..a9b916f6489 100644
--- a/source/blender/blenlib/tests/BLI_mesh_intersect_test.cc
+++ b/source/blender/blenlib/tests/BLI_mesh_intersect_test.cc
@@ -157,7 +157,7 @@ static int find_edge_pos_in_tri(const Vert *v0, const Vert *v1, const Face *f)
   return -1;
 }
 
-#if DO_REGULAR_TESTS
+#  if DO_REGULAR_TESTS
 TEST(mesh_intersect, Mesh)
 {
   Vector<const Vert *> verts;
@@ -703,9 +703,9 @@ TEST(mesh_intersect, CubeCubeStep)
     write_obj_mesh(out2, "test_cubecubestep_nary");
   }
 }
-#endif
+#  endif
 
-#if DO_PERF_TESTS
+#  if DO_PERF_TESTS
 
 static void get_sphere_params(
     int nrings, int nsegs, bool triangulate, int *r_num_verts, int *r_num_faces)
@@ -1068,7 +1068,7 @@ TEST(mesh_intersect_perf, SphereGrid)
   spheregrid_test(64, 4, 0.1, false);
 }
 
-#endif
+#  endif
 
 }  // namespace blender::meshintersect::tests
 #endif



More information about the Bf-blender-cvs mailing list