Skip to content

Commit

Permalink
wxwidgets.cfg: Added support for more interfaces (#6228)
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Apr 4, 2024
1 parent edfcc31 commit 57f9e04
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
25 changes: 21 additions & 4 deletions cfg/wxwidgets.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
<check>wxPosition</check>
<check>wxRealPoint</check>
<check>wxRegion</check>
<check>wxRegionContain</check>
<check>wxRegionIterator</check>
<check>wxRegEx</check>
<check>wxRect</check>
Expand Down Expand Up @@ -3612,6 +3613,10 @@
<define name="wxLAYOUT_LENGTH_X" value="0"/>
<define name="wxLAYOUT_MRU_LENGTH" value="0x10"/>
<define name="wxLAYOUT_QUERY" value="0x100"/>
<!-- enum wxRegionContain -->
<define name="wxOutRegion" value="0"/>
<define name="wxPartRegion" value="1"/>
<define name="wxInRegion" value="2"/>
<define name="wxLOG_FatalError" value="0"/>
<define name="wxLOG_Error" value="1"/>
<define name="wxLOG_Warning" value="2"/>
Expand Down Expand Up @@ -11058,14 +11063,16 @@
<not-uninit/>
</arg>
</function>
<!-- bool wxArrayString::IsEmpty()-->
<function name="wxArrayString::IsEmpty,std::vector::IsEmpty">
<!-- bool wxArrayString::IsEmpty() const-->
<!-- bool wxRegion::IsEmpty() const -->
<function name="wxArrayString::IsEmpty,std::vector::IsEmpty,wxRegion::IsEmpty">
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="bool"/>
<use-retval/>
<const/>
</function>
<!-- wxUniChar wxString::at(size_t n)const-->
<!-- wxUniChar wxString::at(size_t n) const-->
<function name="wxArrayString::at">
<noreturn>false</noreturn>
<leak-ignore/>
Expand Down Expand Up @@ -17006,7 +17013,8 @@ wxItemKind kind = wxITEM_NORMAL) -->
</function>
<!-- void wxTextEntry::Clear( void ) -->
<!-- void wxTextCtrl::Clear( void ) -->
<function name="wxTextCtrl::Clear,wxTextEntry::Clear">
<!-- void wxRegion::Clear( void ) -->
<function name="wxTextCtrl::Clear,wxTextEntry::Clear,wxRegion::Clear">
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="void"/>
Expand Down Expand Up @@ -17089,6 +17097,15 @@ wxItemKind kind = wxITEM_NORMAL) -->
<not-uninit/>
</arg>
</function>
<!-- wxRegionContain wxRegion::Contains(const wxPoint & pt) const -->
<function name="wxRegion::Contains">
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="wxRegionContain"/>
<use-retval/>
<const/>
<arg nr="1" default="true" direction="in"/>
</function>
<!-- bool wxLog::IsLevelEnabled( wxLogLevel level, const wxString & component ) -->
<!-- bool wxLogGui::IsLevelEnabled( wxLogLevel level, const wxString & component ) -->
<function name="wxLog::IsLevelEnabled,wxLogGui::IsLevelEnabled">
Expand Down
6 changes: 6 additions & 0 deletions test/cfg/wxwidgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ void unusedVariable_wxRegionIterator()
wxRegionIterator a;
}

void unusedVariable_wxRegionContain()
{
// cppcheck-suppress unusedVariable
wxRegionContain a;
}

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

0 comments on commit 57f9e04

Please sign in to comment.