2424#include < QLoggingCategory>
2525#include < QTest>
2626#include < QRectF>
27+ #include < QRegion>
2728#include < QSizeF>
2829#include < QPointF>
2930#include < QRect>
3233
3334#include < cstdio>
3435
36+ void unreadVariable_QRegion (const int x, const QRegion::RegionType type, const QPolygon &polygon, const QBitmap &bm, const QRegion ®ion, const Qt::FillRule fillRule)
37+ {
38+ // cppcheck-suppress unreadVariable
39+ QRegion a;
40+ // cppcheck-suppress unreadVariable
41+ QRegion b{};
42+ // cppcheck-suppress unreadVariable
43+ QRegion c{x,x,x,x};
44+ // cppcheck-suppress unreadVariable
45+ QRegion d{x,x,x,x, type};
46+ // cppcheck-suppress unreadVariable
47+ QRegion e{polygon, fillRule};
48+ // cppcheck-suppress unreadVariable
49+ QRegion f{bm};
50+ // cppcheck-suppress unreadVariable
51+ QRegion g{region};
52+ }
53+
3554void unreadVariable_QPoint (const QPoint &s)
3655{
3756 // cppcheck-suppress unreadVariable
@@ -721,14 +740,15 @@ bool knownConditionTrueFalse_QString_count(const QString& s) // #11036
721740
722741void unusedVariable_qtContainers () // #10689
723742{
724- // cppcheck-suppress unusedVariable
725- QMap<int , int > qm;
726- // cppcheck-suppress unusedVariable
727- QSet<int > qs;
728- // cppcheck-suppress unusedVariable
729- QMultiMap<int , int > qmm;
730- // cppcheck-suppress unusedVariable
731- QQueue<int > qq;
732- // cppcheck-suppress unusedVariable
733- QLatin1String ql1s;
734- }
743+ // cppcheck-suppress unusedVariable
744+ QMap<int , int > qm;
745+ // cppcheck-suppress unusedVariable
746+ QSet<int > qs;
747+ // cppcheck-suppress unusedVariable
748+ QMultiMap<int , int > qmm;
749+ // cppcheck-suppress unusedVariable
750+ QQueue<int > qq;
751+ // cppcheck-suppress unusedVariable
752+ QLatin1String ql1s;
753+ }
754+
0 commit comments