Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for wxPoint2DInt and wxPoint2DDouble
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Mar 21, 2024
1 parent cd01072 commit 6127cb0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<check>wxRect</check>
<check>wxSize</check>
<check>wxPoint</check>
<check>wxPoint2DInt</check>
<check>wxPoint2DDouble</check>
<check>wxRealPoint</check>
<check>wxVersionInfo</check>
<check>wxRegion</check>
Expand Down
27 changes: 27 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <wx/dc.h>
#include <wx/log.h>
#include <wx/filefn.h>
#include <wx/geometry.h>
#include <wx/spinctrl.h>
#include <wx/artprov.h>
#include <wx/calctrl.h>
Expand All @@ -36,6 +37,32 @@
#include <wx/position.h>
#include <wx/versioninfo.h>

void unreadVariable_wxPoint2DInt(const wxInt32 x, const wxPoint2DInt& pti, const wxPoint &pt)
{
// cppcheck-suppress unreadVariable
wxPoint2DInt a;
// cppcheck-suppress unreadVariable
wxPoint2DInt b(x, x);
// cppcheck-suppress unreadVariable
wxPoint2DInt c(pti);
// cppcheck-suppress unreadVariable
wxPoint2DInt d(pt);
}

void unreadVariable_wxPoint2DDouble(const wxDouble x, const wxPoint2DDouble& ptd, const wxPoint2DInt& pti, const wxPoint &pt)
{
// cppcheck-suppress unreadVariable
wxPoint2DDouble a;
// cppcheck-suppress unreadVariable
wxPoint2DDouble b(x, x);
// cppcheck-suppress unreadVariable
wxPoint2DDouble c(ptd);
// cppcheck-suppress unreadVariable
wxPoint2DDouble d(pti);
// cppcheck-suppress unreadVariable
wxPoint2DDouble e(pt);
}

void unreadVariable_wxAcceleratorEntry()
{
// cppcheck-suppress unreadVariable
Expand Down

0 comments on commit 6127cb0

Please sign in to comment.