1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

Coding - Apply .clang-format formatting #286

Update empty method guards to new style with regex (see PR).
Used clang-format 18.1.8.
New actions to validate code formatting is added.
Update .clang-format with disabling of include sorting.
  It is temporary changes, then include will be sorted.
Apply formatting for /src and /tools folder.
The files with .hxx,.cxx,.lxx,.h,.pxx,.hpp,*.cpp extensions.
This commit is contained in:
dpasukhi
2025-01-25 20:15:22 +00:00
parent dbba6f1289
commit a5a7b3185b
14005 changed files with 1273539 additions and 1195567 deletions

View File

@@ -17,16 +17,15 @@
#ifndef _GeomAbs_BSplKnotDistribution_HeaderFile
#define _GeomAbs_BSplKnotDistribution_HeaderFile
//! This enumeration is used in the classes BSplineCurve and
//! BSplineSurface to describe the repartition of set of knots.
//! (comments in classes BSplineCurve and BSplineSurface)
enum GeomAbs_BSplKnotDistribution
{
GeomAbs_NonUniform,
GeomAbs_Uniform,
GeomAbs_QuasiUniform,
GeomAbs_PiecewiseBezier
GeomAbs_NonUniform,
GeomAbs_Uniform,
GeomAbs_QuasiUniform,
GeomAbs_PiecewiseBezier
};
#endif // _GeomAbs_BSplKnotDistribution_HeaderFile

View File

@@ -17,19 +17,18 @@
#ifndef _GeomAbs_CurveType_HeaderFile
#define _GeomAbs_CurveType_HeaderFile
//! Identifies the type of a curve.
enum GeomAbs_CurveType
{
GeomAbs_Line,
GeomAbs_Circle,
GeomAbs_Ellipse,
GeomAbs_Hyperbola,
GeomAbs_Parabola,
GeomAbs_BezierCurve,
GeomAbs_BSplineCurve,
GeomAbs_OffsetCurve,
GeomAbs_OtherCurve
GeomAbs_Line,
GeomAbs_Circle,
GeomAbs_Ellipse,
GeomAbs_Hyperbola,
GeomAbs_Parabola,
GeomAbs_BezierCurve,
GeomAbs_BSplineCurve,
GeomAbs_OffsetCurve,
GeomAbs_OtherCurve
};
#endif // _GeomAbs_CurveType_HeaderFile

View File

@@ -21,9 +21,9 @@
//! or V isoparametric
enum GeomAbs_IsoType
{
GeomAbs_IsoU,
GeomAbs_IsoV,
GeomAbs_NoneIso
GeomAbs_IsoU,
GeomAbs_IsoV,
GeomAbs_NoneIso
};
#endif // _GeomAbs_IsoType_HeaderFile

View File

@@ -22,9 +22,9 @@
//! arcs of a contour parallel to a given contour.
enum GeomAbs_JoinType
{
GeomAbs_Arc,
GeomAbs_Tangent,
GeomAbs_Intersection
GeomAbs_Arc,
GeomAbs_Tangent,
GeomAbs_Intersection
};
#endif // _GeomAbs_JoinType_HeaderFile

View File

@@ -17,7 +17,6 @@
#ifndef _GeomAbs_Shape_HeaderFile
#define _GeomAbs_Shape_HeaderFile
//! Provides information about the continuity of a curve:
//! - C0: only geometric continuity.
//! - G1: for each point on the curve, the tangent vectors
@@ -47,13 +46,13 @@
//! i in the u parametric direction, and j in the v parametric direction.
enum GeomAbs_Shape
{
GeomAbs_C0,
GeomAbs_G1,
GeomAbs_C1,
GeomAbs_G2,
GeomAbs_C2,
GeomAbs_C3,
GeomAbs_CN
GeomAbs_C0,
GeomAbs_G1,
GeomAbs_C1,
GeomAbs_G2,
GeomAbs_C2,
GeomAbs_C3,
GeomAbs_CN
};
#endif // _GeomAbs_Shape_HeaderFile

View File

@@ -17,20 +17,19 @@
#ifndef _GeomAbs_SurfaceType_HeaderFile
#define _GeomAbs_SurfaceType_HeaderFile
enum GeomAbs_SurfaceType
{
GeomAbs_Plane,
GeomAbs_Cylinder,
GeomAbs_Cone,
GeomAbs_Sphere,
GeomAbs_Torus,
GeomAbs_BezierSurface,
GeomAbs_BSplineSurface,
GeomAbs_SurfaceOfRevolution,
GeomAbs_SurfaceOfExtrusion,
GeomAbs_OffsetSurface,
GeomAbs_OtherSurface
GeomAbs_Plane,
GeomAbs_Cylinder,
GeomAbs_Cone,
GeomAbs_Sphere,
GeomAbs_Torus,
GeomAbs_BezierSurface,
GeomAbs_BSplineSurface,
GeomAbs_SurfaceOfRevolution,
GeomAbs_SurfaceOfExtrusion,
GeomAbs_OffsetSurface,
GeomAbs_OtherSurface
};
#endif // _GeomAbs_SurfaceType_HeaderFile