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:
Campbell Barton
2020-11-10 09:39:42 +11:00
parent 3a764c3e6d
commit efd71aad4f
149 changed files with 298 additions and 0 deletions

View File

@@ -187,6 +187,8 @@ PyTypeObject UnaryFunction0DDouble_Type = {
sizeof(BPy_UnaryFunction0DDouble), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)UnaryFunction0DDouble___dealloc__, /* tp_dealloc */
/* Incompatible with Python3.8+ (deprecated function).
* NOLINTNEXTLINE: modernize-use-nullptr. */
0, /* tp_print */
nullptr, /* tp_getattr */
nullptr, /* tp_setattr */

View File

@@ -126,6 +126,8 @@ PyTypeObject UnaryFunction0DEdgeNature_Type = {
sizeof(BPy_UnaryFunction0DEdgeNature), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)UnaryFunction0DEdgeNature___dealloc__, /* tp_dealloc */
/* Incompatible with Python3.8+ (deprecated function).
* NOLINTNEXTLINE: modernize-use-nullptr. */
0, /* tp_print */
nullptr, /* tp_getattr */
nullptr, /* tp_setattr */

View File

@@ -163,6 +163,8 @@ PyTypeObject UnaryFunction0DFloat_Type = {
sizeof(BPy_UnaryFunction0DFloat), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)UnaryFunction0DFloat___dealloc__, /* tp_dealloc */
/* Incompatible with Python3.8+ (deprecated function).
* NOLINTNEXTLINE: modernize-use-nullptr. */
0, /* tp_print */
nullptr, /* tp_getattr */
nullptr, /* tp_setattr */

View File

@@ -122,6 +122,8 @@ PyTypeObject UnaryFunction0DId_Type = {
sizeof(BPy_UnaryFunction0DId), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)UnaryFunction0DId___dealloc__, /* tp_dealloc */
/* Incompatible with Python3.8+ (deprecated function).
* NOLINTNEXTLINE: modernize-use-nullptr. */
0, /* tp_print */
nullptr, /* tp_getattr */
nullptr, /* tp_setattr */

View File

@@ -125,6 +125,8 @@ PyTypeObject UnaryFunction0DMaterial_Type = {
sizeof(BPy_UnaryFunction0DMaterial), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)UnaryFunction0DMaterial___dealloc__, /* tp_dealloc */
/* Incompatible with Python3.8+ (deprecated function).
* NOLINTNEXTLINE: modernize-use-nullptr. */
0, /* tp_print */
nullptr, /* tp_getattr */
nullptr, /* tp_setattr */

View File

@@ -126,6 +126,8 @@ PyTypeObject UnaryFunction0DUnsigned_Type = {
sizeof(BPy_UnaryFunction0DUnsigned), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)UnaryFunction0DUnsigned___dealloc__, /* tp_dealloc */
/* Incompatible with Python3.8+ (deprecated function).
* NOLINTNEXTLINE: modernize-use-nullptr. */
0, /* tp_print */
nullptr, /* tp_getattr */
nullptr, /* tp_setattr */

View File

@@ -131,6 +131,8 @@ PyTypeObject UnaryFunction0DVec2f_Type = {
sizeof(BPy_UnaryFunction0DVec2f), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)UnaryFunction0DVec2f___dealloc__, /* tp_dealloc */
/* Incompatible with Python3.8+ (deprecated function).
* NOLINTNEXTLINE: modernize-use-nullptr. */
0, /* tp_print */
nullptr, /* tp_getattr */
nullptr, /* tp_setattr */

View File

@@ -124,6 +124,8 @@ PyTypeObject UnaryFunction0DVec3f_Type = {
sizeof(BPy_UnaryFunction0DVec3f), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)UnaryFunction0DVec3f___dealloc__, /* tp_dealloc */
/* Incompatible with Python3.8+ (deprecated function).
* NOLINTNEXTLINE: modernize-use-nullptr. */
0, /* tp_print */
nullptr, /* tp_getattr */
nullptr, /* tp_setattr */

View File

@@ -135,6 +135,8 @@ PyTypeObject UnaryFunction0DVectorViewShape_Type = {
sizeof(BPy_UnaryFunction0DVectorViewShape), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)UnaryFunction0DVectorViewShape___dealloc__, /* tp_dealloc */
/* Incompatible with Python3.8+ (deprecated function).
* NOLINTNEXTLINE: modernize-use-nullptr. */
0, /* tp_print */
nullptr, /* tp_getattr */
nullptr, /* tp_setattr */

View File

@@ -133,6 +133,8 @@ PyTypeObject UnaryFunction0DViewShape_Type = {
sizeof(BPy_UnaryFunction0DViewShape), /* tp_basicsize */
0, /* tp_itemsize */
(destructor)UnaryFunction0DViewShape___dealloc__, /* tp_dealloc */
/* Incompatible with Python3.8+ (deprecated function).
* NOLINTNEXTLINE: modernize-use-nullptr. */
0, /* tp_print */
nullptr, /* tp_getattr */
nullptr, /* tp_setattr */

View File

@@ -74,6 +74,8 @@ PyTypeObject ShapeIdF0D_Type = {
sizeof(BPy_ShapeIdF0D), /* 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 */

View File

@@ -77,6 +77,8 @@ PyTypeObject MaterialF0D_Type = {
sizeof(BPy_MaterialF0D), /* 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 */

View File

@@ -68,6 +68,8 @@ PyTypeObject CurveNatureF0D_Type = {
sizeof(BPy_CurveNatureF0D), /* 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 */

View File

@@ -70,6 +70,8 @@ PyTypeObject Normal2DF0D_Type = {
sizeof(BPy_Normal2DF0D), /* 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 */

View File

@@ -72,6 +72,8 @@ PyTypeObject VertexOrientation2DF0D_Type = {
sizeof(BPy_VertexOrientation2DF0D), /* 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 */

View File

@@ -72,6 +72,8 @@ PyTypeObject VertexOrientation3DF0D_Type = {
sizeof(BPy_VertexOrientation3DF0D), /* 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 */

View File

@@ -67,6 +67,8 @@ PyTypeObject GetOccludeeF0D_Type = {
sizeof(BPy_GetOccludeeF0D), /* 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 */

View File

@@ -67,6 +67,8 @@ PyTypeObject GetShapeF0D_Type = {
sizeof(BPy_GetShapeF0D), /* 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 */

View File

@@ -72,6 +72,8 @@ PyTypeObject Curvature2DAngleF0D_Type = {
sizeof(BPy_Curvature2DAngleF0D), /* 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 */

View File

@@ -77,6 +77,8 @@ PyTypeObject DensityF0D_Type = {
sizeof(BPy_DensityF0D), /* 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 */

View File

@@ -67,6 +67,8 @@ PyTypeObject GetProjectedXF0D_Type = {
sizeof(BPy_GetProjectedXF0D), /* 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 */

View File

@@ -67,6 +67,8 @@ PyTypeObject GetProjectedYF0D_Type = {
sizeof(BPy_GetProjectedYF0D), /* 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 */

View File

@@ -67,6 +67,8 @@ PyTypeObject GetProjectedZF0D_Type = {
sizeof(BPy_GetProjectedZF0D), /* 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 */

View File

@@ -67,6 +67,8 @@ PyTypeObject GetXF0D_Type = {
sizeof(BPy_GetXF0D), /* 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 */

View File

@@ -67,6 +67,8 @@ PyTypeObject GetYF0D_Type = {
sizeof(BPy_GetYF0D), /* 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 */

View File

@@ -67,6 +67,8 @@ PyTypeObject GetZF0D_Type = {
sizeof(BPy_GetZF0D), /* 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 */

View File

@@ -75,6 +75,8 @@ PyTypeObject LocalAverageDepthF0D_Type = {
sizeof(BPy_LocalAverageDepthF0D), /* 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 */

View File

@@ -72,6 +72,8 @@ PyTypeObject ZDiscontinuityF0D_Type = {
sizeof(BPy_ZDiscontinuityF0D), /* 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 */

View File

@@ -70,6 +70,8 @@ PyTypeObject GetCurvilinearAbscissaF0D_Type = {
sizeof(BPy_GetCurvilinearAbscissaF0D), /* 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 */

View File

@@ -66,6 +66,8 @@ PyTypeObject GetParameterF0D_Type = {
sizeof(BPy_GetParameterF0D), /* 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 */

View File

@@ -75,6 +75,8 @@ PyTypeObject GetViewMapGradientNormF0D_Type = {
sizeof(BPy_GetViewMapGradientNormF0D), /* 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 */

View File

@@ -73,6 +73,8 @@ PyTypeObject ReadCompleteViewMapPixelF0D_Type = {
sizeof(BPy_ReadCompleteViewMapPixelF0D), /* 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 */

View File

@@ -74,6 +74,8 @@ PyTypeObject ReadMapPixelF0D_Type = {
sizeof(BPy_ReadMapPixelF0D), /* 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 */

View File

@@ -77,6 +77,8 @@ PyTypeObject ReadSteerableViewMapPixelF0D_Type = {
sizeof(BPy_ReadSteerableViewMapPixelF0D), /* 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 */

View File

@@ -75,6 +75,8 @@ PyTypeObject QuantitativeInvisibilityF0D_Type = {
sizeof(BPy_QuantitativeInvisibilityF0D), /* 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 */

View File

@@ -68,6 +68,8 @@ PyTypeObject GetOccludersF0D_Type = {
sizeof(BPy_GetOccludersF0D), /* 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 */