Skip to content

Commit

Permalink
qt.cfg: Added support for QTransform (#6241)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Apr 5, 2024
1 parent 2f0bb71 commit 2361df9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions cfg/qt.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5292,6 +5292,7 @@
<check>QPoint</check>
<check>QPointF</check>
<check>QRegion</check>
<check>QTransform</check>
</unusedvar>
<operatorEqVarError>
<suppress>QMutex</suppress>
Expand Down
7 changes: 7 additions & 0 deletions test/cfg/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,16 @@
#include <QPoint>
#include <QPointF>
#include <QRegion>
#include <QTransform>

#include <cstdio>

void unusedVariable_QTransform()
{
// cppcheck-suppress unusedVariable
QTransform a;
}

void unreadVariable_QRegion(const int x, const QRegion::RegionType type, const QPolygon &polygon, const QBitmap &bm, const QRegion &region, const Qt::FillRule fillRule)
{
// cppcheck-suppress unusedVariable
Expand Down

0 comments on commit 2361df9

Please sign in to comment.