@@ -37,11 +37,13 @@ PYBIND11_INLINE PyTypeObject *type_incref(PyTypeObject *type) {
3737}
3838
3939#if !defined(PYPY_VERSION)
40- extern " C" PYBIND11_INLINE PyObject *pybind11_static_get (PyObject *self, PyObject * /* ob*/ , PyObject *cls) {
40+ extern " C" PYBIND11_INLINE PyObject *
41+ pybind11_static_get (PyObject *self, PyObject * /* ob*/ , PyObject *cls) {
4142 return PyProperty_Type.tp_descr_get (self, cls, cls);
4243}
4344
44- extern " C" PYBIND11_INLINE int pybind11_static_set (PyObject *self, PyObject *obj, PyObject *value) {
45+ extern " C" PYBIND11_INLINE int
46+ pybind11_static_set (PyObject *self, PyObject *obj, PyObject *value) {
4547 PyObject *cls = PyType_Check (obj) ? obj : (PyObject *) Py_TYPE (obj);
4648 return PyProperty_Type.tp_descr_set (self, cls, value);
4749}
@@ -109,7 +111,8 @@ class pybind11_static_property(property):
109111}
110112
111113#endif // PYPY
112- extern " C" PYBIND11_INLINE int pybind11_meta_setattro (PyObject *obj, PyObject *name, PyObject *value) {
114+ extern " C" PYBIND11_INLINE int
115+ pybind11_meta_setattro (PyObject *obj, PyObject *name, PyObject *value) {
113116 // Use `_PyType_Lookup()` instead of `PyObject_GetAttr()` in order to get the raw
114117 // descriptor (`property`) instead of calling `tp_descr_get` (`property.__get__()`).
115118 PyObject *descr = _PyType_Lookup ((PyTypeObject *) obj, name);
@@ -149,7 +152,8 @@ extern "C" PYBIND11_INLINE PyObject *pybind11_meta_getattro(PyObject *obj, PyObj
149152 return PyType_Type.tp_getattro (obj, name);
150153}
151154
152- extern " C" PYBIND11_INLINE PyObject *pybind11_meta_call (PyObject *type, PyObject *args, PyObject *kwargs) {
155+ extern " C" PYBIND11_INLINE PyObject *
156+ pybind11_meta_call (PyObject *type, PyObject *args, PyObject *kwargs) {
153157
154158 // use the default metaclass call to create/initialize the object
155159 PyObject *self = PyType_Type.tp_call (type, args, kwargs);
@@ -261,9 +265,9 @@ PYBIND11_INLINE PyTypeObject *make_default_metaclass() {
261265}
262266
263267PYBIND11_INLINE void traverse_offset_bases (void *valueptr,
264- const detail::type_info *tinfo,
265- instance *self,
266- bool (*f)(void * /* parentptr*/ , instance * /* self*/ )) {
268+ const detail::type_info *tinfo,
269+ instance *self,
270+ bool (*f)(void * /* parentptr*/ , instance * /* self*/ )) {
267271 for (handle h : reinterpret_borrow<tuple>(tinfo->type ->tp_bases )) {
268272 if (auto *parent_tinfo = get_type_info (reinterpret_cast <PyTypeObject *>(h.ptr ()))) {
269273 for (auto &c : parent_tinfo->implicit_casts ) {
@@ -358,7 +362,8 @@ PYBIND11_INLINE PyObject *make_new_instance(PyTypeObject *type) {
358362 return self;
359363}
360364
361- extern " C" PYBIND11_INLINE PyObject *pybind11_object_new (PyTypeObject *type, PyObject *, PyObject *) {
365+ extern " C" PYBIND11_INLINE PyObject *
366+ pybind11_object_new (PyTypeObject *type, PyObject *, PyObject *) {
362367 return make_new_instance (type);
363368}
364369
0 commit comments