Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for more interfaces (#6194)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Mar 27, 2024
1 parent 9b75b62 commit ff60150
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<check>wxArrayString</check>
<check>wxBitmap</check>
<check>wxBitmapBundle</check>
<check>wxBitmapHandler</check>
<check>wxBrush</check>
<check>wxChar</check>
<check>wxUniChar</check>
Expand All @@ -21,6 +22,9 @@
<check>wxFont</check>
<check>wxFontInfo</check>
<check>wxFontList</check>
<check>wxFontMetrics</check>
<check>wxGraphicsGradientStop</check>
<check>wxGraphicsGradientStops</check>
<check>wxIcon</check>
<check>wxIconLocation</check>
<check>wxImage</check>
Expand Down Expand Up @@ -5413,7 +5417,8 @@
</function>
<!-- http://docs.wxwidgets.org/trunk/classwx_string.html#ab20a87ca731a52c36ec674dae2213ad8 -->
<!-- size_t wxString::Length () const -->
<function name="wxString::Length">
<!-- size_t wxString::length () const -->
<function name="wxString::Length,wxString::length">
<noreturn>false</noreturn>
<leak-ignore/>
<const/>
Expand Down
33 changes: 33 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <wx/frame.h>
#include <wx/gdicmn.h>
#include <wx/geometry.h>
#include <wx/graphics.h>
#include <wx/icon.h>
#include <wx/iconloc.h>
#include <wx/image.h>
Expand Down Expand Up @@ -79,6 +80,38 @@ void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, cons
}
#endif

void unusedVariable_wxBitmapHandler()
{
// cppcheck-suppress unusedVariable
wxBitmapHandler a;
}

void unreadVariable_wxGraphicsGradientStops()
{
// cppcheck-suppress unusedVariable
wxGraphicsGradientStops a;
// cppcheck-suppress unreadVariable
wxGraphicsGradientStops b(wxTransparentColour);
// cppcheck-suppress unreadVariable
wxGraphicsGradientStops c(wxTransparentColour, wxTransparentColour);
}

void unreadVariable_wxGraphicsGradientStop()
{
// cppcheck-suppress unusedVariable
wxGraphicsGradientStop a;
// cppcheck-suppress unreadVariable
wxGraphicsGradientStop b(wxTransparentColour);
// cppcheck-suppress unreadVariable
wxGraphicsGradientStop c(wxTransparentColour, 0.42);
}

void unusedVariable_wxFontMetrics()
{
// cppcheck-suppress unusedVariable
wxFontMetrics a;
}

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

0 comments on commit ff60150

Please sign in to comment.