Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for wxRegion (#6141)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy authored Mar 17, 2024
1 parent b6f6c6a commit 4b9724b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<check>wxPoint</check>
<check>wxRealPoint</check>
<check>wxVersionInfo</check>
<check>wxRegion</check>
</unusedvar>
<operatorEqVarError>
</operatorEqVarError>
Expand Down
19 changes: 19 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <wx/frame.h>
#include <wx/menu.h>
#include <wx/regex.h>
#include <wx/region.h>
#include <wx/stattext.h>
#include <wx/sizer.h>
#include <wx/string.h>
Expand All @@ -31,6 +32,24 @@
#include <wx/propgrid/property.h>
#include <wx/versioninfo.h>

void unreadVariable(const wxCoord x, const wxPoint &pt, const wxRect &rect, const wxRegion &region, const wxBitmap &bmp)
{
// cppcheck-suppress unreadVariable
wxRegion a;
// cppcheck-suppress unreadVariable
wxRegion b{};
// cppcheck-suppress unreadVariable
wxRegion c{x,x,x,x};
// cppcheck-suppress unreadVariable
wxRegion d{pt,pt};
// cppcheck-suppress unreadVariable
wxRegion e{rect};
// cppcheck-suppress unreadVariable
wxRegion f{region};
// cppcheck-suppress unreadVariable
wxRegion g{bmp};
}

void unreadVariable_wxVersionInfo(const wxString &name, const int major, const int minor, const int micro, const wxString &description, const wxString &copyright)
{
// cppcheck-suppress unreadVariable
Expand Down

0 comments on commit 4b9724b

Please sign in to comment.