Coding - Update Clang-format with more macroses (#677)

- Updates `.clang-format` to include `OCC_CATCH_SIGNALS`, `DEFINE_STANDARD_RTTIEXT`, and `Draw_Drawable3D_FACTORY` as statement macros
- Adds a GitHub action step to automatically remove empty lines after `Standard_DEPRECATED` macro declarations
- Reformats numerous files by removing blank lines after deprecated method declarations and improving macro formatting
This commit is contained in:
Pasukhin Dmitry
2025-08-16 20:50:50 +01:00
committed by GitHub
parent d1b00bf132
commit 314527f5c0
93 changed files with 169 additions and 282 deletions
@@ -2269,7 +2269,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
gp_Vec ntOOFOR = FUN_tool_nggeomF(uv, OOFOR);
if (OOFOR.Orientation() == TopAbs_REVERSED)
ntOOFOR.Reverse();
// xxFCX :
// xxFCX :
#ifdef OCCT_DEBUG
// Standard_Real t1 =factor*BRep_Tool::Tolerance(Esd);
#endif
@@ -388,7 +388,7 @@ Standard_Boolean GeomFill_NSections::D1(const Standard_Real V,
if (NullWeight)
return Standard_False;
// verif par diff finies sous debug sauf pour les surfaces periodiques
// verif par diff finies sous debug sauf pour les surfaces periodiques
#ifdef OCCT_DEBUG
if (!mySurface->IsVPeriodic())
{
@@ -498,7 +498,7 @@ Standard_Boolean GeomFill_NSections::D2(const Standard_Real V,
if (NullWeight)
return Standard_False;
// verif par diff finies sous debug sauf pour les surfaces periodiques
// verif par diff finies sous debug sauf pour les surfaces periodiques
#ifdef OCCT_DEBUG
if (!mySurface->IsVPeriodic())
{
@@ -146,7 +146,6 @@ public:
public:
Standard_DEPRECATED("ModifyOffsetSurfaceMode() should be used instead")
Standard_Boolean& ModifyOffestSurfaceMode() { return myOffsetSurfaceMode; }
private:
@@ -309,7 +309,8 @@ TopoDS_Shell ShapeFix_FaceConnect::Build(const TopoDS_Shell& shell,
{
try
{
OCC_CATCH_SIGNALS theSewer.Perform();
OCC_CATCH_SIGNALS
theSewer.Perform();
}
catch (Standard_Failure const&)
{
@@ -1503,8 +1503,8 @@ void MAT2d_DrawCurve(const Handle(Geom2d_Curve)& aCurve, const Standard_Integer
else
dr = new DrawTrSurf_Curve2d(CurveDraw, Couleur, 500);
// dout << dr;
// dout.Flush();
// dout << dr;
// dout.Flush();
#endif
}