[Bf-blender-cvs] [efd71aad4f2] master: Cleanup: clang-tidy suppress warnings for PyTypeObject.tp_print

Campbell Barton noreply at git.blender.org
Mon Nov 9 23:44:32 CET 2020


Commit: efd71aad4f22ec0073d80b8dd296015d3f395aa8
Author: Campbell Barton
Date:   Tue Nov 10 09:39:42 2020 +1100
Branches: master
https://developer.blender.org/rBefd71aad4f22ec0073d80b8dd296015d3f395aa8

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.

===================================================================

M	source/blender/freestyle/intern/python/BPy_BBox.cpp
M	source/blender/freestyle/intern/python/BPy_BinaryPredicate0D.cpp
M	source/blender/freestyle/intern/python/BPy_BinaryPredicate1D.cpp
M	source/blender/freestyle/intern/python/BPy_FrsMaterial.cpp
M	source/blender/freestyle/intern/python/BPy_FrsNoise.cpp
M	source/blender/freestyle/intern/python/BPy_Id.cpp
M	source/blender/freestyle/intern/python/BPy_IntegrationType.cpp
M	source/blender/freestyle/intern/python/BPy_Interface0D.cpp
M	source/blender/freestyle/intern/python/BPy_Interface1D.cpp
M	source/blender/freestyle/intern/python/BPy_Iterator.cpp
M	source/blender/freestyle/intern/python/BPy_MediumType.cpp
M	source/blender/freestyle/intern/python/BPy_Nature.cpp
M	source/blender/freestyle/intern/python/BPy_Operators.cpp
M	source/blender/freestyle/intern/python/BPy_SShape.cpp
M	source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp
M	source/blender/freestyle/intern/python/BPy_StrokeShader.cpp
M	source/blender/freestyle/intern/python/BPy_UnaryFunction0D.cpp
M	source/blender/freestyle/intern/python/BPy_UnaryFunction1D.cpp
M	source/blender/freestyle/intern/python/BPy_UnaryPredicate0D.cpp
M	source/blender/freestyle/intern/python/BPy_UnaryPredicate1D.cpp
M	source/blender/freestyle/intern/python/BPy_ViewMap.cpp
M	source/blender/freestyle/intern/python/BPy_ViewShape.cpp
M	source/blender/freestyle/intern/python/BinaryPredicate1D/BPy_FalseBP1D.cpp
M	source/blender/freestyle/intern/python/BinaryPredicate1D/BPy_Length2DBP1D.cpp
M	source/blender/freestyle/intern/python/BinaryPredicate1D/BPy_SameShapeIdBP1D.cpp
M	source/blender/freestyle/intern/python/BinaryPredicate1D/BPy_TrueBP1D.cpp
M	source/blender/freestyle/intern/python/BinaryPredicate1D/BPy_ViewMapGradientNormBP1D.cpp
M	source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp
M	source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp
M	source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.cpp
M	source/blender/freestyle/intern/python/Interface0D/CurvePoint/BPy_StrokeVertex.cpp
M	source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_NonTVertex.cpp
M	source/blender/freestyle/intern/python/Interface0D/ViewVertex/BPy_TVertex.cpp
M	source/blender/freestyle/intern/python/Interface1D/BPy_FEdge.cpp
M	source/blender/freestyle/intern/python/Interface1D/BPy_FrsCurve.cpp
M	source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp
M	source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp
M	source/blender/freestyle/intern/python/Interface1D/Curve/BPy_Chain.cpp
M	source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSharp.cpp
M	source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSmooth.cpp
M	source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp
M	source/blender/freestyle/intern/python/Iterator/BPy_ChainPredicateIterator.cpp
M	source/blender/freestyle/intern/python/Iterator/BPy_ChainSilhouetteIterator.cpp
M	source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp
M	source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp
M	source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
M	source/blender/freestyle/intern/python/Iterator/BPy_SVertexIterator.cpp
M	source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
M	source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp
M	source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_BackboneStretcherShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_BezierCurveShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_BlenderTextureShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_CalligraphicShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_ColorNoiseShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_ConstantColorShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_ConstantThicknessShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_ConstrainedIncreasingThicknessShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_GuidingLinesShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_IncreasingColorShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_IncreasingThicknessShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_PolygonalizationShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_SamplingShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_SmoothingShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_SpatialNoiseShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_StrokeTextureStepShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_ThicknessNoiseShader.cpp
M	source/blender/freestyle/intern/python/StrokeShader/BPy_TipRemoverShader.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DDouble.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DEdgeNature.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DFloat.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DId.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DMaterial.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DUnsigned.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec2f.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVec3f.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DVectorViewShape.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/BPy_UnaryFunction0DViewShape.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Id/BPy_ShapeIdF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Material/BPy_MaterialF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Nature_EdgeNature/BPy_CurveNatureF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Vec2f/BPy_Normal2DF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Vec2f/BPy_VertexOrientation2DF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_Vec3f/BPy_VertexOrientation3DF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_ViewShape/BPy_GetOccludeeF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_ViewShape/BPy_GetShapeF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_Curvature2DAngleF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_DensityF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetProjectedXF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetProjectedYF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetProjectedZF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetXF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetYF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_GetZF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_LocalAverageDepthF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_double/BPy_ZDiscontinuityF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_GetCurvilinearAbscissaF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_GetParameterF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_GetViewMapGradientNormF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_ReadCompleteViewMapPixelF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_ReadMapPixelF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_float/BPy_ReadSteerableViewMapPixelF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_unsigned_int/BPy_QuantitativeInvisibilityF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction0D/UnaryFunction0D_vector_ViewShape/BPy_GetOccludersF0D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DDouble.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DEdgeNature.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DFloat.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DUnsigned.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec2f.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVec3f.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVectorViewShape.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/BPy_UnaryFunction1DVoid.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Nature_EdgeNature/BPy_CurveNatureF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Vec2f/BPy_Normal2DF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Vec2f/BPy_Orientation2DF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_Vec3f/BPy_Orientation3DF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_Curvature2DAngleF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_DensityF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetCompleteViewMapDensityF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetDirectionalViewMapDensityF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetProjectedXF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetProjectedYF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetProjectedZF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetSteerableViewMapDensityF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetViewMapGradientNormF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetXF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetYF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_GetZF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_LocalAverageDepthF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_double/BPy_ZDiscontinuityF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_unsigned_int/BPy_QuantitativeInvisibilityF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_vector_ViewShape/BPy_GetOccludeeF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_vector_ViewShape/BPy_GetOccludersF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_vector_ViewShape/BPy_GetShapeF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_ChainingTimeStampF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_IncrementChainingTimeStampF1D.cpp
M	source/blender/freestyle/intern/python/UnaryFunction1D/UnaryFunction1D_void/BPy_TimeStampF1D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate0D/BPy_FalseUP0D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate0D/BPy_TrueUP0D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_ContourUP1D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_DensityLowerThanUP1D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_EqualToChainingTimeStampUP1D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_EqualToTimeStampUP1D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_ExternalContourUP1D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_FalseUP1D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_QuantitativeInvisibilityUP1D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_ShapeUP1D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_TrueUP1D.cpp
M	source/blender/freestyle/intern/python/UnaryPredicate1D/BPy_WithinImageBoundaryUP1D.cpp

===================================================================

diff --git a/source/blender/freestyle/intern/python/BPy_BBox.cpp b/source/blender/freestyle/intern/python/BPy_BBox.cpp
index e61ab2fe8c4..4e0da4e87cf 100644
--- a/source/blender/freestyle/intern/python/BPy_BBox.cpp
+++ b/source/blender/freestyle/intern/python/BPy_BBox.cpp
@@ -80,6 +80,8 @@ PyTypeObject BBox_Type = {
     sizeof(BPy_BBox),                         /* tp_basicsize */
     0,                                        /* tp_itemsize */
     (destructor)BBox_dealloc,                 /* tp_dealloc */
+    /* Incompatible with Python3.8+ (deprecated function).
+     * NOLINTNEXTLINE: modernize-use-nullptr. */
     0,                                        /* tp_print */
     nullptr,                                  /* tp_getattr */
     nullptr,                                  /* tp_setattr */
diff --git a/source/blender/freestyle/intern/python/BPy_BinaryPredicate0D.cpp b/source/blender/freestyle/intern/python/BPy_BinaryPredicate0D.cpp
index a24a0308017..0aef437d270 100644
--- a/source/blender/freestyle/intern/python/BPy_BinaryPredicate0D.cpp
+++ b/source/blender/freestyle/intern/python/BPy_BinaryPredicate0D.cpp
@@ -153,6 +153,8 @@ PyTypeObject BinaryPredicate0D_Type = {
     sizeof(BPy_BinaryPredicate0D),                         /* tp_basicsize */
     0,                                                     /* tp_itemsize */
     (destructor)BinaryPredicate0D___dealloc__,             /* tp_dealloc */
+    /* Incompatible with Python3.8+ (deprecated function).
+     * NOLINTNEXTLINE: modernize-use-nullptr. */
     0,                                                     /* tp_print */
     nullptr,                                               /* tp_getattr */
     nullptr,                                               /* tp_setattr */
diff --git a/source/blender/freestyle/intern/python/BPy_BinaryPredicate1D.cpp b/source/blender/freestyle/intern/python/BPy_BinaryPredicate1D.cpp
index 0120f325f7b..ef9c1dcdfab 100644
--- a/source/blender/freestyle/intern/python/BPy_BinaryPredicate1D.cpp
+++ b/source/blender/freestyle/intern/python/BPy_BinaryPredicate1D.cpp
@@ -187,6 +187,8 @@ PyTypeObject BinaryPredicate1D_Type = {
     sizeof(BPy_BinaryPredicate1D),                         /* tp_basicsize */
     0,                                                     /* tp_itemsize */
     (destructor)BinaryPredicate1D___dealloc__,             /* tp_dealloc */
+    /* Incompatible with Python3.8+ (deprecated function).
+     * NOLINTNEXTLINE: modernize-use-nullptr. */
     0,                                                     /* tp_print */
     nullptr,                                               /* tp_getattr */
     nullptr,                                               /* tp_setattr */
diff --git a/source/blender/freestyle/intern/python/BPy_FrsMaterial.cpp b/source/blender/freestyle/intern/python/BPy_FrsMaterial.cpp
index 4df4031e7ce..fc851f2085c 100644
--- a/source/blender/freestyle/intern/python/BPy_FrsMaterial.cpp
+++ b/source/blender/freestyle/intern/python/BPy_FrsMaterial.cpp
@@ -538,6 +538,8 @@ PyTypeObject FrsMaterial_Type = {
     sizeof(BPy_FrsMaterial),                      /* tp_basicsize */
     0,                                            /* tp_itemsize */
     (destructor)FrsMaterial_dealloc,              /* tp_dealloc */
+    /* Incompatible with Python3.8+ (deprecated function).
+     * NOLINTNEXTLINE: modernize-use-nullptr. */
     0,                                            /* tp_print */
     nullptr,                                      /* tp_getattr */
     nullptr,                                      /* tp_setattr */
diff --git a/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp b/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp
index a62b5896164..865a0957cba 100644
--- a/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp
+++ b/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp
@@ -330,6 +330,8 @@ PyTypeObject FrsNoise_Type = {
     sizeof(BPy_FrsNoise),                      /* tp_basicsize */
     0,                                         /* tp_itemsize */
     (destructor)FrsNoise_dealloc,              /* tp_dealloc */
+    /* Incompatible with Python3.8+ (deprecated function).
+     * NOLINTNEXTLINE: modernize-use-nullptr. */
     0,                                         /* tp_print */
     nullptr,                                   /* tp_getattr */
     nullptr,                                   /* tp_setattr */
diff --git a/source/blender/freestyle/intern/python/BPy_Id.cpp b/source/blender/freestyle/intern/python/BPy_Id.cpp
index a9baef10383..10b8feb7d3d 100644
--- a/source/blender/freestyle/intern/python/BPy_Id.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Id.cpp
@@ -171,6 +171,8 @@ PyTypeObject Id_Type = {
     sizeof(BPy_Id),                           /* tp_basicsize */
     0,                                        /* tp_itemsize */
     (destructor)Id_dealloc,                   /* tp_dealloc */
+    /* Incompatible with Python3.8+ (deprecated function).
+     * NOLINTNEXTLINE: modernize-use-nullptr. */
     0,                                        /* tp_print */
     nullptr,                                  /* tp_getattr */
     nullptr,                                  /* tp_setattr */
diff --git a/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp b/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp
index ea3be83ba8d..380ea5e7d77 100644
--- a/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp
+++ b/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp
@@ -153,6 +153,8 @@ PyTypeObject IntegrationType_Type = {
     sizeof(PyLongObject),                                /* 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 */
diff --git a/source/blender/freestyle/intern/python/BPy_Interface0D.cpp b/source/blender/freestyle/intern/python/BPy_Interface0D.cpp
index 3f55795ad75..877f376fc37 100644
--- a/source/blender/freestyle/intern/python/BPy_Interface0D.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Interface0D.cpp
@@ -313,6 +313,8 @@ PyTypeObject Interface0D_Type = {
     sizeof(BPy_Interface0D),                         /* tp_basicsize */
     0,                                               /* tp_itemsize */
     (destructor)Interface0D_dealloc,                 /* tp_dealloc */
+    /* Incompatible with Python3.8+ (deprecated function).
+     * NOLINTNEXTLINE: modernize-use-nullptr. */
     0,                                               /* tp_print */
     nullptr,                                         /* tp_getattr */
     nullptr,                                         /* tp_setattr */
diff --git a/source/blender/freestyle/intern/python/BPy_Interface1D.cpp b/source/blender/freestyle/intern/python/BPy_Interface1D.cpp
index d34468d4e25..8bfc17f83ae 100644
--- a/source/blender/freestyle/intern/python/BPy_Interface1D.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Interface1D.cpp
@@ -341,6 +341,8 @@ PyTypeObject Interface1D_Type = {
     sizeof(BPy_Interface1D),                         /* tp_basicsize */
     0,                                               /* tp_itemsize */
     (destructor)Interface1D_dealloc,                 /* tp_dealloc */
+    /* Incompatible with Python3.8+ (deprecated function).
+     * NOLINTNEXTLINE: modernize-use-nullptr. */
     0,                                               /* tp_print */
     nullptr,                                         /* tp_getattr */
     nullptr,                                         /* tp_setattr */
diff --git a/source/blender/freestyle/intern/python/BPy_Iterator.cpp b/source/blender/freestyle/intern/python/BPy_Iterator.cpp
index e0645a19e61..b1a577df8cf 100644
--- a/source/blender/freestyle/intern/python/BPy_Iterator.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Iterator.cpp
@@ -228,6 +228,8 @@ PyTypeObject Iterator_Type = {
     sizeof(BPy_Iterator),                         /* tp_basicsize */
     0,                                            /* tp_itemsize */
     (destructor)Iterator_dealloc,                 /* tp_dealloc */
+    /* Incompatible with Python3.8+ (deprecated function).
+     * NOLINTNEXTLINE: modernize-use-nullptr. */
     0,                                            /* tp_print */
     nullptr,                                      /* tp_getattr */
     nullptr,                                      /* tp_setattr */
diff --git a/source/blender/freestyle/intern/python/BPy_MediumType.cpp b/source/blender/freestyle/intern/python/BPy_MediumType.cpp
index b00cbecb4b4..a6d1d0e8476 100644
--- a/source/blender/freestyle/intern/python/BPy_MediumType.cpp
+++ b/source/blender/freestyle/intern/python/BPy_MediumType.cpp
@@ -45,6 +45,8 @@ PyTypeObject MediumType_Type = {
     sizeof(PyLongObject),                           /* 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 */
diff --git a/source/blender/freestyle/intern/python/BPy_Nature.cpp b/source/blender/freestyle/intern/python/BPy_Nature.cpp
index af4d26586b4..56dbc5e6f9a 100644
--- a/source/blender/freestyle/intern/python/BPy_Nature.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Nature.cpp
@@ -107,6 +107,8 @@ PyTypeObject Nature_Type = {
     sizeof(PyLongObject),                       /* tp_basicsize */
     0,                                          /* tp_itemsize */
     nullptr,                                    /* tp_dealloc */
+ 

@@ Diff output truncated at 10240 characters. @@



More information about the Bf-blender-cvs mailing list