Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for more interfaces (#6176)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Mar 23, 2024
1 parent 8dc5e0c commit 5ea8330
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 35 deletions.
40 changes: 21 additions & 19 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,35 @@
<def format="2">
<type-checks>
<unusedvar>
<check>wxRect</check>
<check>wxSize</check>
<check>wxAcceleratorEntry</check>
<check>wxArrayDouble</check>
<check>wxArrayInt</check>
<check>wxArrayPtrVoid</check>
<check>wxArrayShort</check>
<check>wxArrayString</check>
<check>wxBrush</check>
<check>wxColour</check>
<check>wxPoint</check>
<check>wxPoint2DInt</check>
<check>wxPoint2DDouble</check>
<check>wxRealPoint</check>
<check>wxVersionInfo</check>
<check>wxRegion</check>
<check>wxRegEx</check>
<check>wxPosition</check>
<check>wxFileType</check>
<check>wxTimeSpan</check>
<check>wxDateSpan</check>
<check>wxFileType</check>
<check>wxFont</check>
<check>wxFontInfo</check>
<check>wxFontList</check>
<check>wxBrush</check>
<check>wxPen</check>
<check>wxPenList</check>
<check>wxAcceleratorEntry</check>
<check>wxPoint</check>
<check>wxPoint2DDouble</check>
<check>wxPoint2DInt</check>
<check>wxPosition</check>
<check>wxRealPoint</check>
<check>wxRegion</check>
<check>wxRegEx</check>
<check>wxRect</check>
<check>wxSize</check>
<check>wxSystemOptions</check>
<check>wxSystemSettings</check>
<check>wxTimeSpan</check>
<check>wxVector</check>
<check>wxArrayInt</check>
<check>wxArrayDouble</check>
<check>wxArrayShort</check>
<check>wxArrayString</check>
<check>wxArrayPtrVoid</check>
<check>wxVersionInfo</check>
</unusedvar>
<operatorEqVarError>
</operatorEqVarError>
Expand Down
46 changes: 30 additions & 16 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,39 +12,53 @@
#include <wx/wx.h>
#include <wx/accel.h>
#include <wx/app.h>
#include <wx/artprov.h>
#include <wx/bitmap.h>
#include <wx/brush.h>
#include <wx/pen.h>
#include <wx/calctrl.h>
#include <wx/colour.h>
#include <wx/combo.h>
#include <wx/dc.h>
#include <wx/dataview.h>
#include <wx/datetime.h>
#include <wx/dc.h>
#include <wx/dynarray.h>
#include <wx/font.h>
#include <wx/log.h>
#include <wx/filefn.h>
#include <wx/font.h>
#include <wx/frame.h>
#include <wx/gdicmn.h>
#include <wx/geometry.h>
#include <wx/spinctrl.h>
#include <wx/artprov.h>
#include <wx/calctrl.h>
#include <wx/combo.h>
#include <wx/icon.h>
#include <wx/bitmap.h>
#include <wx/dataview.h>
#include <wx/datetime.h>
#include <wx/memory.h>
#include <wx/frame.h>
#include <wx/log.h>
#include <wx/menu.h>
#include <wx/memory.h>
#include <wx/mimetype.h>
#include <wx/pen.h>
#include <wx/position.h>
#include <wx/propgrid/property.h>
#include <wx/regex.h>
#include <wx/region.h>
#include <wx/stattext.h>
#include <wx/settings.h>
#include <wx/spinctrl.h>
#include <wx/sizer.h>
#include <wx/string.h>
#include <wx/sysopt.h>
#include <wx/textctrl.h>
#include <wx/gdicmn.h>
#include <wx/propgrid/property.h>
#include <wx/position.h>
#include <wx/vector.h>
#include <wx/versioninfo.h>

void unusedVariable_wxSystemOptions()
{
// cppcheck-suppress unusedVariable
wxSystemOptions a;
}

void unusedVariable_wxSystemSettings()
{
// cppcheck-suppress unusedVariable
wxSystemSettings a;
}

void unusedVariable_wxPenList()
{
// cppcheck-suppress unusedVariable
Expand Down

0 comments on commit 5ea8330

Please sign in to comment.