diff --git a/.clang-format b/.clang-format index 5d7bfbf2..5fd97f8d 100644 --- a/.clang-format +++ b/.clang-format @@ -12,7 +12,7 @@ ReflowComments: false # CPython macros that have the trailing comma/semi-colon as part of # the macro. -StatementMacros: ["PyObject_HEAD"] +StatementMacros: ["PyObject_HEAD", "PyVarObject_HEAD_INIT"] # PyVarObject_HEAD_INIT should be part of above, but doesn't work # (needs clang-format 17) so until then clang-format off/on needs to diff --git a/src/apsw.c b/src/apsw.c index ead34257..f752adf5 100644 --- a/src/apsw.c +++ b/src/apsw.c @@ -171,7 +171,8 @@ static PyObject *APSWException; /* no change sentinel for vtable updates */ static PyTypeObject apsw_no_change_object = { - PyVarObject_HEAD_INIT(NULL, 0).tp_name = "apsw.no_change", + PyVarObject_HEAD_INIT(NULL, 0) + .tp_name = "apsw.no_change", .tp_doc = Apsw_no_change_DOC, };