Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wxwidgets.cfg: Added support for more interfaces #6228

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading