Coding - Remove duplicate and self-referencing include directives (#739)

- Removal of self-referencing includes where files include themselves
- Elimination of duplicate include statements within the same file
- Cleanup of redundant includes in conditional compilation blocks
- Adding CI validation for validation PRs
This commit is contained in:
Pasukhin Dmitry
2025-10-08 18:04:28 +01:00
committed by dpasukhi
parent 76b05809d0
commit 775454b75a
81 changed files with 263 additions and 150 deletions
@@ -39,7 +39,6 @@
#include <TopOpeBRepTool_SC.hxx>
#ifdef OCCT_DEBUG
#include <TopOpeBRep_FFDumper.hxx>
#include <Geom_TrimmedCurve.hxx>
#include <Geom_Line.hxx>
extern Standard_Boolean TopOpeBRep_GettraceBIPS();
@@ -37,7 +37,6 @@
#include <TopoDS.hxx>
#include <Geom2d_Curve.hxx>
#include <Geom_Plane.hxx>
#include <gp_Pnt.hxx>
#include <gp_Pnt2d.hxx>
#include <ElCLib.hxx>
#include <ElSLib.hxx>
@@ -28,7 +28,6 @@
#ifdef OCCT_DEBUG
extern Standard_Boolean TopOpeBRepTool_GettraceVC();
#include <TopOpeBRepBuild_Builder.hxx>
#include <gp_Pnt.hxx>
#endif
//=================================================================================================
@@ -58,7 +58,6 @@
// includes especially needed by the static Project function
#ifdef DRAW
#include <TopOpeBRepDS_DRAW.hxx>
#include <Geom2d_Curve.hxx>
#endif
Standard_EXPORT Handle(Geom2d_Curve) BASISCURVE2D(const Handle(Geom2d_Curve)& C);
@@ -70,7 +70,6 @@ extern Standard_Boolean TopOpeBRepTool_GettraceCHKBSPL();
#define CurveImprovement
#ifdef DRAW
#include <DrawTrSurf.hxx>
#include <Geom2d_Curve.hxx>
static Standard_Integer NbCalls = 0;
#endif
//=================================================================================================
@@ -33,7 +33,6 @@
#include <Geom_TrimmedCurve.hxx>
#include <Geom2d_Line.hxx>
#include <Geom2d_TrimmedCurve.hxx>
#include <BRep_Tool.hxx>
#include <TopExp_Explorer.hxx>
#include <TopOpeBRepTool_DRAW.hxx>
@@ -26,7 +26,6 @@
#include <TopOpeBRepTool_define.hxx>
#include <Geom_Curve.hxx>
#include <Geom2d_Curve.hxx>
#include <TopOpeBRepTool_define.hxx>
Standard_EXPORT void TopOpeBRepTool_DrawPoint(const gp_Pnt& P,
const Draw_MarkerShape T,