PartDesign: Prepare for clang-format (#16048)

* PartDesign: Prepare for clang-format

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
wwmayer
2024-09-02 17:48:26 +02:00
committed by GitHub
parent e88b1b49c9
commit e98ffc3060
13 changed files with 1286 additions and 899 deletions

View File

@@ -59,7 +59,8 @@
#include "ShapeBinder.h"
namespace PartDesign {
namespace PartDesign
{
extern PyObject* initModule();
}
@@ -71,7 +72,7 @@ PyMOD_INIT_FUNC(_PartDesign)
Base::Interpreter().runString("import Part");
Base::Interpreter().runString("import Sketcher");
}
catch(const Base::Exception& e) {
catch (const Base::Exception& e) {
PyErr_SetString(PyExc_ImportError, e.what());
PyMOD_Return(nullptr);
}
@@ -84,6 +85,7 @@ PyMOD_INIT_FUNC(_PartDesign)
// call PyType_Ready, otherwise we run into a segmentation fault, later on.
// This function is responsible for adding inherited slots from a type's base class.
// clang-format off
PartDesign::Feature ::init();
PartDesign::FeaturePython ::init();
PartDesign::Solid ::init();
@@ -155,6 +157,7 @@ PyMOD_INIT_FUNC(_PartDesign)
PartDesign::FeatureBase ::init();
PartDesign::Measure ::initialize();
// clang-format on
PyMOD_Return(mod);
}