Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for wxVector and wxArray types
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Mar 22, 2024
1 parent 5dcf217 commit 9e8b62f
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
<check>wxTimeSpan</check>
<check>wxDateSpan</check>
<check>wxAcceleratorEntry</check>
<check>wxVector</check>
<check>wxArrayInt</check>
<check>wxArrayDouble</check>
<check>wxArrayShort</check>
<check>wxArrayString</check>
<check>wxArrayPtrVoid</check>
</unusedvar>
<operatorEqVarError>
</operatorEqVarError>
Expand Down
38 changes: 38 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <wx/app.h>
#include <wx/colour.h>
#include <wx/dc.h>
#include <wx/dynarray.h>
#include <wx/log.h>
#include <wx/filefn.h>
#include <wx/geometry.h>
Expand All @@ -38,8 +39,45 @@
#include <wx/gdicmn.h>
#include <wx/propgrid/property.h>
#include <wx/position.h>
#include <wx/vector.h>
#include <wx/versioninfo.h>

void unusedVariable_wxVector()
{
// cppcheck-suppress unusedVariable
wxVector<int> a;
}

void unusedVariable_wxArrayInt()
{
// cppcheck-suppress unusedVariable
wxArrayInt a;
}

void unusedVariable_wxArrayDouble()
{
// cppcheck-suppress unusedVariable
wxArrayDouble a;
}

void unusedVariable_wxArrayShort()
{
// cppcheck-suppress unusedVariable
wxArrayShort a;
}

void unusedVariable_wxArrayString()
{
// cppcheck-suppress unusedVariable
wxArrayString a;
}

void unusedVariable_wxArrayPtrVoid()
{
// cppcheck-suppress unusedVariable
wxArrayPtrVoid a;
}

void unreadVariable_wxColour(const unsigned char uc, const wxString &name, const unsigned long colRGB, const wxColour &colour)
{
// cppcheck-suppress unusedVariable
Expand Down

0 comments on commit 9e8b62f

Please sign in to comment.