77// No warnings about bad library configuration, unmatched suppressions, etc. exitcode=0
88//
99
10+ // cppcheck-suppress-file [valueFlowBailout,unmatchedSuppression] - TODO: remove unmatchedSuppression
11+
1012#include < QObject>
1113#include < QString>
1214#include < QVector>
3537
3638void unreadVariable_QRegion (const int x, const QRegion::RegionType type, const QPolygon &polygon, const QBitmap &bm, const QRegion ®ion, const Qt::FillRule fillRule)
3739{
38- // cppcheck-suppress unreadVariable
40+ // TODO cppcheck-suppress unreadVariable
3941 QRegion a;
40- // cppcheck-suppress unreadVariable
42+ // TODO cppcheck-suppress unreadVariable
4143 QRegion b{};
4244 // cppcheck-suppress unreadVariable
4345 QRegion c{x,x,x,x};
@@ -53,9 +55,9 @@ void unreadVariable_QRegion(const int x, const QRegion::RegionType type, const Q
5355
5456void unreadVariable_QPoint (const QPoint &s)
5557{
56- // cppcheck-suppress unreadVariable
58+ // TODO cppcheck-suppress unreadVariable
5759 QPoint a;
58- // cppcheck-suppress unreadVariable
60+ // TODO cppcheck-suppress unreadVariable
5961 QPoint b{};
6062 // cppcheck-suppress unreadVariable
6163 QPoint c{4 , 2 };
@@ -67,9 +69,9 @@ void unreadVariable_QPoint(const QPoint &s)
6769
6870void unreadVariable_QPointF (const QPointF &s)
6971{
70- // cppcheck-suppress unreadVariable
72+ // TODO cppcheck-suppress unreadVariable
7173 QPointF a;
72- // cppcheck-suppress unreadVariable
74+ // TODO cppcheck-suppress unreadVariable
7375 QPointF b{};
7476 // cppcheck-suppress unreadVariable
7577 QPointF c{4.2 , 4.2 };
@@ -81,9 +83,9 @@ void unreadVariable_QPointF(const QPointF &s)
8183
8284void unreadVariable_QSizeF (const QSize &s)
8385{
84- // cppcheck-suppress unreadVariable
86+ // TODO cppcheck-suppress unreadVariable
8587 QSizeF a;
86- // cppcheck-suppress unreadVariable
88+ // TODO cppcheck-suppress unreadVariable
8789 QSizeF b{};
8890 // cppcheck-suppress unreadVariable
8991 QSizeF c{4.2 , 4.2 };
@@ -95,9 +97,9 @@ void unreadVariable_QSizeF(const QSize &s)
9597
9698void unreadVariable_QSize (const QSize &s)
9799{
98- // cppcheck-suppress unreadVariable
100+ // TODO cppcheck-suppress unreadVariable
99101 QSize a;
100- // cppcheck-suppress unreadVariable
102+ // TODO cppcheck-suppress unreadVariable
101103 QSize b{};
102104 // cppcheck-suppress unreadVariable
103105 QSize c{4 , 2 };
@@ -108,9 +110,9 @@ void unreadVariable_QSize(const QSize &s)
108110}
109111
110112void unreadVariable_QRect (const QPoint &topLeft, const QSize &size, const QPoint &bottomRight, const int x) {
111- // cppcheck-suppress unreadVariable
113+ // TODO cppcheck-suppress unreadVariable
112114 QRect a;
113- // cppcheck-suppress unreadVariable
115+ // TODO cppcheck-suppress unreadVariable
114116 QRect b{};
115117 // cppcheck-suppress unreadVariable
116118 QRect c (0 , 0 , 100 , 50 );
@@ -123,9 +125,9 @@ void unreadVariable_QRect(const QPoint &topLeft, const QSize &size, const QPoint
123125}
124126
125127void unreadVariable_QRectF (const QPointF &topLeft, const QSizeF &size, const QPointF &bottomRight, const QRectF &rect, const qreal x) {
126- // cppcheck-suppress unreadVariable
128+ // TODO cppcheck-suppress unreadVariable
127129 QRectF a;
128- // cppcheck-suppress unreadVariable
130+ // TODO cppcheck-suppress unreadVariable
129131 QRectF b{};
130132 // cppcheck-suppress unreadVariable
131133 QRectF c (0.0 , 0.0 , 100.0 , 50.0 );
@@ -576,7 +578,6 @@ void validCode(int * pIntPtr, QString & qstrArg, double d)
576578
577579 printf (QT_TR_NOOP (" Hi" ));
578580
579- // cppcheck-suppress checkLibraryFunction
580581 Q_DECLARE_LOGGING_CATEGORY (logging_category_test);
581582 QT_FORWARD_DECLARE_CLASS (forwardDeclaredClass);
582583 QT_FORWARD_DECLARE_STRUCT (forwardDeclaredStruct);
0 commit comments