Cleanup: clang-tidy suppress warnings for PyTypeObject.tp_print
Clang-tidy behavior changes from Python 3.7 to 3.8+ so it's simplest to suppress the warning in this instance.
This commit is contained in:
@@ -242,6 +242,8 @@ PyTypeObject CurvePoint_Type = {
|
||||
sizeof(BPy_CurvePoint), /* tp_basicsize */
|
||||
0, /* tp_itemsize */
|
||||
nullptr, /* tp_dealloc */
|
||||
/* Incompatible with Python3.8+ (deprecated function).
|
||||
* NOLINTNEXTLINE: modernize-use-nullptr. */
|
||||
0, /* tp_print */
|
||||
nullptr, /* tp_getattr */
|
||||
nullptr, /* tp_setattr */
|
||||
|
||||
@@ -455,6 +455,8 @@ PyTypeObject SVertex_Type = {
|
||||
sizeof(BPy_SVertex), /* tp_basicsize */
|
||||
0, /* tp_itemsize */
|
||||
nullptr, /* tp_dealloc */
|
||||
/* Incompatible with Python3.8+ (deprecated function).
|
||||
* NOLINTNEXTLINE: modernize-use-nullptr. */
|
||||
0, /* tp_print */
|
||||
nullptr, /* tp_getattr */
|
||||
nullptr, /* tp_setattr */
|
||||
|
||||
@@ -164,6 +164,8 @@ PyTypeObject ViewVertex_Type = {
|
||||
sizeof(BPy_ViewVertex), /* tp_basicsize */
|
||||
0, /* tp_itemsize */
|
||||
nullptr, /* tp_dealloc */
|
||||
/* Incompatible with Python3.8+ (deprecated function).
|
||||
* NOLINTNEXTLINE: modernize-use-nullptr. */
|
||||
0, /* tp_print */
|
||||
nullptr, /* tp_getattr */
|
||||
nullptr, /* tp_setattr */
|
||||
|
||||
@@ -361,6 +361,8 @@ PyTypeObject StrokeVertex_Type = {
|
||||
sizeof(BPy_StrokeVertex), /* tp_basicsize */
|
||||
0, /* tp_itemsize */
|
||||
nullptr, /* tp_dealloc */
|
||||
/* Incompatible with Python3.8+ (deprecated function).
|
||||
* NOLINTNEXTLINE: modernize-use-nullptr. */
|
||||
0, /* tp_print */
|
||||
nullptr, /* tp_getattr */
|
||||
nullptr, /* tp_setattr */
|
||||
|
||||
@@ -109,6 +109,8 @@ PyTypeObject NonTVertex_Type = {
|
||||
sizeof(BPy_NonTVertex), /* tp_basicsize */
|
||||
0, /* tp_itemsize */
|
||||
nullptr, /* tp_dealloc */
|
||||
/* Incompatible with Python3.8+ (deprecated function).
|
||||
* NOLINTNEXTLINE: modernize-use-nullptr. */
|
||||
0, /* tp_print */
|
||||
nullptr, /* tp_getattr */
|
||||
nullptr, /* tp_setattr */
|
||||
|
||||
@@ -219,6 +219,8 @@ PyTypeObject TVertex_Type = {
|
||||
sizeof(BPy_TVertex), /* tp_basicsize */
|
||||
0, /* tp_itemsize */
|
||||
nullptr, /* tp_dealloc */
|
||||
/* Incompatible with Python3.8+ (deprecated function).
|
||||
* NOLINTNEXTLINE: modernize-use-nullptr. */
|
||||
0, /* tp_print */
|
||||
nullptr, /* tp_getattr */
|
||||
nullptr, /* tp_setattr */
|
||||
|
||||
Reference in New Issue
Block a user