Skip to content

Commit 5ea8330

Browse files
authored
wxwidgets.cfg: Added support for more interfaces (#6176)
1 parent 8dc5e0c commit 5ea8330

2 files changed

Lines changed: 51 additions & 35 deletions

File tree

cfg/wxwidgets.cfg

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,35 @@
22
<def format="2">
33
<type-checks>
44
<unusedvar>
5-
<check>wxRect</check>
6-
<check>wxSize</check>
5+
<check>wxAcceleratorEntry</check>
6+
<check>wxArrayDouble</check>
7+
<check>wxArrayInt</check>
8+
<check>wxArrayPtrVoid</check>
9+
<check>wxArrayShort</check>
10+
<check>wxArrayString</check>
11+
<check>wxBrush</check>
712
<check>wxColour</check>
8-
<check>wxPoint</check>
9-
<check>wxPoint2DInt</check>
10-
<check>wxPoint2DDouble</check>
11-
<check>wxRealPoint</check>
12-
<check>wxVersionInfo</check>
13-
<check>wxRegion</check>
14-
<check>wxRegEx</check>
15-
<check>wxPosition</check>
16-
<check>wxFileType</check>
17-
<check>wxTimeSpan</check>
1813
<check>wxDateSpan</check>
14+
<check>wxFileType</check>
1915
<check>wxFont</check>
2016
<check>wxFontInfo</check>
2117
<check>wxFontList</check>
22-
<check>wxBrush</check>
2318
<check>wxPen</check>
2419
<check>wxPenList</check>
25-
<check>wxAcceleratorEntry</check>
20+
<check>wxPoint</check>
21+
<check>wxPoint2DDouble</check>
22+
<check>wxPoint2DInt</check>
23+
<check>wxPosition</check>
24+
<check>wxRealPoint</check>
25+
<check>wxRegion</check>
26+
<check>wxRegEx</check>
27+
<check>wxRect</check>
28+
<check>wxSize</check>
29+
<check>wxSystemOptions</check>
30+
<check>wxSystemSettings</check>
31+
<check>wxTimeSpan</check>
2632
<check>wxVector</check>
27-
<check>wxArrayInt</check>
28-
<check>wxArrayDouble</check>
29-
<check>wxArrayShort</check>
30-
<check>wxArrayString</check>
31-
<check>wxArrayPtrVoid</check>
33+
<check>wxVersionInfo</check>
3234
</unusedvar>
3335
<operatorEqVarError>
3436
</operatorEqVarError>

test/cfg/wxwidgets.cpp

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,39 +12,53 @@
1212
#include <wx/wx.h>
1313
#include <wx/accel.h>
1414
#include <wx/app.h>
15+
#include <wx/artprov.h>
16+
#include <wx/bitmap.h>
1517
#include <wx/brush.h>
16-
#include <wx/pen.h>
18+
#include <wx/calctrl.h>
1719
#include <wx/colour.h>
20+
#include <wx/combo.h>
21+
#include <wx/dc.h>
22+
#include <wx/dataview.h>
23+
#include <wx/datetime.h>
1824
#include <wx/dc.h>
1925
#include <wx/dynarray.h>
20-
#include <wx/font.h>
21-
#include <wx/log.h>
2226
#include <wx/filefn.h>
27+
#include <wx/font.h>
28+
#include <wx/frame.h>
29+
#include <wx/gdicmn.h>
2330
#include <wx/geometry.h>
24-
#include <wx/spinctrl.h>
25-
#include <wx/artprov.h>
26-
#include <wx/calctrl.h>
27-
#include <wx/combo.h>
2831
#include <wx/icon.h>
29-
#include <wx/bitmap.h>
30-
#include <wx/dataview.h>
31-
#include <wx/datetime.h>
32-
#include <wx/memory.h>
33-
#include <wx/frame.h>
32+
#include <wx/log.h>
3433
#include <wx/menu.h>
34+
#include <wx/memory.h>
3535
#include <wx/mimetype.h>
36+
#include <wx/pen.h>
37+
#include <wx/position.h>
38+
#include <wx/propgrid/property.h>
3639
#include <wx/regex.h>
3740
#include <wx/region.h>
38-
#include <wx/stattext.h>
41+
#include <wx/settings.h>
42+
#include <wx/spinctrl.h>
3943
#include <wx/sizer.h>
4044
#include <wx/string.h>
45+
#include <wx/sysopt.h>
4146
#include <wx/textctrl.h>
42-
#include <wx/gdicmn.h>
43-
#include <wx/propgrid/property.h>
44-
#include <wx/position.h>
4547
#include <wx/vector.h>
4648
#include <wx/versioninfo.h>
4749

50+
void unusedVariable_wxSystemOptions()
51+
{
52+
// cppcheck-suppress unusedVariable
53+
wxSystemOptions a;
54+
}
55+
56+
void unusedVariable_wxSystemSettings()
57+
{
58+
// cppcheck-suppress unusedVariable
59+
wxSystemSettings a;
60+
}
61+
4862
void unusedVariable_wxPenList()
4963
{
5064
// cppcheck-suppress unusedVariable

0 commit comments

Comments
 (0)