]> OCCT Git - occt.git/commit
Coding - Remove duplicate and self-referencing include directives (#739)
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Wed, 8 Oct 2025 17:04:28 +0000 (18:04 +0100)
committerdpasukhi <dpasukhi@opencascade.com>
Wed, 8 Oct 2025 19:31:35 +0000 (20:31 +0100)
commit775454b75a1ef53d3710fab1ecbbffd522262eb0
tree299ec2995e7b928036cc885d7f2ebc386a217cc8
parent76b05809d0f40abd1f44a74b51e4bb683895e28d
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
81 files changed:
.github/actions/clang-format-check/action.yml
.github/actions/scripts/cleanup-includes.py [new file with mode: 0644]
src/ApplicationFramework/TKCAF/TNaming/TNaming_Name.cxx
src/ApplicationFramework/TKCAF/TNaming/TNaming_Naming.cxx
src/ApplicationFramework/TKLCAF/TDF/TDF_AttributeDoubleMap.hxx
src/DataExchange/TKDEIGES/IGESData/IGESData_FileRecognizer_0.cxx
src/DataExchange/TKDEIGES/IGESData/IGESData_GlobalNodeOfSpecificLib_0.cxx
src/DataExchange/TKDEIGES/IGESData/IGESData_GlobalNodeOfWriterLib_0.cxx
src/DataExchange/TKDEIGES/IGESData/IGESData_NodeOfSpecificLib_0.cxx
src/DataExchange/TKDEIGES/IGESData/IGESData_NodeOfWriterLib_0.cxx
src/DataExchange/TKDESTEP/RWStepAP214/RWStepAP214_ReadWriteModule.cxx
src/DataExchange/TKDESTEP/RWStepVisual/RWStepVisual_RWPresentationLayerUsage.cxx
src/DataExchange/TKDESTEP/STEPCAFControl/STEPCAFControl_Reader.cxx
src/DataExchange/TKDESTEP/STEPConstruct/STEPConstruct_Styles.cxx
src/DataExchange/TKDESTEP/STEPControl/STEPControl_Controller.cxx
src/DataExchange/TKDESTEP/StepData/StepData_FileRecognizer_0.cxx
src/DataExchange/TKDESTEP/StepData/StepData_GlobalNodeOfWriterLib_0.cxx
src/DataExchange/TKDESTEP/StepData/StepData_NodeOfWriterLib_0.cxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_RunoutZoneOrientation.hxx
src/DataExchange/TKDESTEP/StepDimTol/StepDimTol_ToleranceZoneForm.hxx
src/DataExchange/TKDESTEP/StepShape/StepShape_ValueFormatTypeQualifier.hxx
src/DataExchange/TKDESTEP/StepVisual/StepVisual_TessellatedCurveSet.hxx
src/DataExchange/TKXCAF/XCAFDoc/XCAFDoc_DimTolTool.cxx
src/DataExchange/TKXSBase/IFSelect/IFSelect_SelectAnyType.hxx
src/DataExchange/TKXSBase/IFSelect/IFSelect_SelectType.hxx
src/DataExchange/TKXSBase/Interface/Interface_GlobalNodeOfGeneralLib_0.cxx
src/DataExchange/TKXSBase/Interface/Interface_GlobalNodeOfReaderLib_0.cxx
src/DataExchange/TKXSBase/Interface/Interface_NodeOfGeneralLib_0.cxx
src/DataExchange/TKXSBase/Interface/Interface_NodeOfReaderLib_0.cxx
src/DataExchange/TKXSBase/Transfer/Transfer_ActorOfProcessForFinder_0.cxx
src/DataExchange/TKXSBase/Transfer/Transfer_ActorOfProcessForTransient_0.cxx
src/DataExchange/TKXSBase/Transfer/Transfer_ProcessForFinder_0.cxx
src/DataExchange/TKXSBase/Transfer/Transfer_ProcessForTransient_0.cxx
src/Draw/TKDCAF/DDataStd/DDataStd_BasicCommands.cxx
src/Draw/TKQADraw/QABugs/QABugs_10.cxx
src/Draw/TKQADraw/QABugs/QABugs_11.cxx
src/Draw/TKQADraw/QABugs/QABugs_17.cxx
src/Draw/TKQADraw/QABugs/QABugs_19.cxx
src/Draw/TKQADraw/QABugs/QABugs_20.cxx
src/Draw/TKQADraw/QADraw/QADraw.cxx
src/Draw/TKTopTest/BRepTest/BRepTest_CheckCommands.cxx
src/Draw/TKViewerTest/ViewerTest/ViewerTest_ObjectCommands.cxx
src/FoundationClasses/TKMath/Poly/Poly_CoherentTriangulation.hxx
src/FoundationClasses/TKMath/gp/gp_Pln.hxx
src/FoundationClasses/TKMath/gp/gp_Pnt.hxx
src/FoundationClasses/TKernel/NCollection/NCollection_DynamicArray.hxx
src/FoundationClasses/TKernel/OSD/OSD_FileIterator.cxx
src/FoundationClasses/TKernel/OSD/OSD_FileNode.cxx
src/FoundationClasses/TKernel/OSD/OSD_Path.cxx
src/ModelingAlgorithms/TKBO/GTests/BOPTest_Utilities.pxx
src/ModelingAlgorithms/TKBool/TopOpeBRep/TopOpeBRep_ProcessGR.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_GridEE.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepBuild/TopOpeBRepBuild_PaveSet.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepDS/TopOpeBRepDS_BuildTool.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_CurveTool.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_DRAW.cxx
src/ModelingAlgorithms/TKBool/TopOpeBRepTool/TopOpeBRepTool_DRAW.hxx
src/ModelingAlgorithms/TKFillet/ChFi3d/ChFi3d_FilBuilder_C2.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_EvolvedSection.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_LocationGuide.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_NSections.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_Pipe.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomFill/GeomFill_UniformSection.cxx
src/ModelingAlgorithms/TKGeomAlgo/GeomPlate/GeomPlate_BuildPlateSurface.cxx
src/ModelingAlgorithms/TKGeomAlgo/IntCurveSurface/IntCurveSurface_Inter.gxx
src/ModelingAlgorithms/TKGeomAlgo/IntPatch/IntPatch_Intersection.cxx
src/ModelingAlgorithms/TKGeomAlgo/IntStart/IntStart_SearchOnBoundaries.gxx
src/ModelingAlgorithms/TKHLR/HLRBRep/HLRBRep_Data.cxx
src/ModelingAlgorithms/TKHelix/HelixGeom/HelixGeom_BuilderHelixCoil.cxx
src/ModelingAlgorithms/TKOffset/Draft/Draft_Modification_1.cxx
src/ModelingAlgorithms/TKTopAlgo/BRepCheck/BRepCheck_Edge.cxx
src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNodeOfListOfBisector_0.cxx
src/ModelingAlgorithms/TKTopAlgo/MAT/MAT_TListNodeOfListOfEdge_0.cxx
src/ModelingAlgorithms/TKTopAlgo/MAT2d/MAT2d_Circuit.cxx
src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_SurfaceOfLinearExtrusion.cxx
src/ModelingData/TKG3d/GeomAdaptor/GeomAdaptor_SurfaceOfRevolution.cxx
src/ModelingData/TKGeomBase/AppParCurves/AppParCurves_LeastSquare.gxx
src/ModelingData/TKGeomBase/BndLib/BndLib_AddSurface.cxx
src/ModelingData/TKGeomBase/GeomConvert/GeomConvert_SurfToAnaSurf.cxx
src/ModelingData/TKGeomBase/ProjLib/ProjLib_ProjectOnPlane.hxx
src/Visualization/TKV3d/SelectMgr/SelectMgr_ViewerSelector.hxx