Skip to content

Commit 7bf6883

Browse files
committed
wxwidgets.cfg: Added support for more interfaces, found by daca@home report: http://cppcheck1.osuosl.org:8000/check_library_function_report.html
1 parent da6f10e commit 7bf6883

1 file changed

Lines changed: 152 additions & 3 deletions

File tree

cfg/wxwidgets.cfg

Lines changed: 152 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,9 @@
677677
<define name="wxMM_LOMETRIC" value="3"/>
678678
<define name="wxMM_TWIPS" value="4"/>
679679
<define name="wxMM_POINTS" value="5"/>
680+
<define name="wxFromStart" value="0"/>
681+
<define name="wxFromCurrent" value="1"/>
682+
<define name="wxFromEnd" value="2"/>
680683
<define name="wxDVC_DEFAULT_RENDERER_SIZE" value="20"/>
681684
<define name="wxDVC_DEFAULT_WIDTH" value="80"/>
682685
<define name="wxDVC_TOGGLE_DEFAULT_WIDTH" value="30"/>
@@ -3836,6 +3839,10 @@
38363839
<define name="wxFILE_EXISTS_SOCKET" value="0x0020"/>
38373840
<define name="wxFILE_EXISTS_NO_FOLLOW" value="0x1000"/>
38383841
<define name="wxFILE_EXISTS_ANY" value="0x1FFF"/>
3842+
<define name="wxFILE_KIND_UNKNOWN" value="0"/>
3843+
<define name="wxFILE_KIND_DISK" value="1"/>
3844+
<define name="wxFILE_KIND_TERMINAL" value="2"/>
3845+
<define name="wxFILE_KIND_PIPE" value="3"/>
38393846
<define name="wxPG_ITERATOR_CREATE_MASKS(FLAGS,A,B)" value="{ A = (FLAGS ^ 29732) &amp; 29732 &amp; 0xFFFF; B = ((FLAGS&lt;&lt;16) ^ 29732) &amp; 29732 &amp; 0xFFFF; }"/>
38403847
<define name="wxPG_ITERATOR_PARENTEXMASK_TEST(PWC,PARENTMASK)" value="( !PWC-&gt;HasFlag(PARENTMASK) &amp;&amp; PWC-&gt;GetChildCount() )"/>
38413848
<define name="wxPG_IT_CHILDREN(A)" value="((A)&lt;&lt;16)"/>
@@ -4655,6 +4662,26 @@
46554662
<define name="wxCROSS_CURSOR" value="wxStockGDI::GetCursor(wxStockGDI::CURSOR_CROSS)"/>
46564663
<define name="wxHOURGLASS_CURSOR" value="wxStockGDI::GetCursor(wxStockGDI::CURSOR_HOURGLASS)"/>
46574664
<define name="wxSTANDARD_CURSOR" value="wxStockGDI::GetCursor(wxStockGDI::CURSOR_STANDARD)"/>
4665+
<define name="wxS_IRUSR" value="00400"/>
4666+
<define name="wxS_IWUSR" value="00200"/>
4667+
<define name="wxS_IXUSR" value="00100"/>
4668+
<define name="wxS_IRGRP" value="00040"/>
4669+
<define name="wxS_IWGRP" value="00020"/>
4670+
<define name="wxS_IXGRP" value="00010"/>
4671+
<define name="wxS_IROTH" value="00004"/>
4672+
<define name="wxS_IWOTH" value="00002"/>
4673+
<define name="wxS_IXOTH" value="00001"/>
4674+
<define name="wxPOSIX_USER_READ" value="00400"/>
4675+
<define name="wxPOSIX_USER_WRITE" value="00200"/>
4676+
<define name="wxPOSIX_USER_EXECUTE" value="00100"/>
4677+
<define name="wxPOSIX_GROUP_READ" value="00040"/>
4678+
<define name="wxPOSIX_GROUP_WRITE" value="00020"/>
4679+
<define name="wxPOSIX_GROUP_EXECUTE" value="00010"/>
4680+
<define name="wxPOSIX_OTHERS_READ" value="00004"/>
4681+
<define name="wxPOSIX_OTHERS_WRITE" value="00002"/>
4682+
<define name="wxPOSIX_OTHERS_EXECUTE" value="00001"/>
4683+
<define name="wxS_DEFAULT" value="2"/>
4684+
<define name="wxS_DIR_DEFAULT" value="3"/>
46584685
<define name="wxPG_INVALID_VALUE" value="INT_MAX"/>
46594686
<define name="wxPG_DONT_RECURSE" value="0x00000000"/>
46604687
<define name="wxPG_BASE_OCT" value="(long)8"/>
@@ -6239,8 +6266,10 @@
62396266
<!--virtual bool wxFilePickerCtrl::Enable(bool enable = true)-->
62406267
<!--virtual bool wxStaticBitmap::Enable(bool enable = true)-->
62416268
<!--virtual bool wxSpinCtrl::Enable(bool enable = true)-->
6269+
<!--virtual bool wxSlider::Enable(bool enable = true)-->
6270+
<!--virtual bool wxChoice::Enable(bool enable = true)-->
62426271
<!--virtual bool wxOwnerDrawnComboBox::Enable(bool enable = true)-->
6243-
<function name="wxWindow::Enable,wxComboBox::Enable,wxButton::Enable,wxStaticBitmap::Enable,wxSpinCtrl::Enable,wxAnyButton::Enable,wxCommandLinkButton::Enable,wxToggleButton::Enable,wxOwnerDrawnComboBox::Enable,wxBitmapToggleButton::Enable,wxContextHelpButton::Enable,wxBitmapButton::Enable,wxPropertyGridManager::Enable,wxFilePickerCtrl::Enable">
6272+
<function name="wxWindow::Enable,wxSlider::Enable,wxChoice::Enable,wxComboBox::Enable,wxButton::Enable,wxStaticBitmap::Enable,wxSpinCtrl::Enable,wxAnyButton::Enable,wxCommandLinkButton::Enable,wxToggleButton::Enable,wxOwnerDrawnComboBox::Enable,wxBitmapToggleButton::Enable,wxContextHelpButton::Enable,wxBitmapButton::Enable,wxPropertyGridManager::Enable,wxFilePickerCtrl::Enable">
62446273
<noreturn>false</noreturn>
62456274
<leak-ignore/>
62466275
<returnValue type="bool"/>
@@ -7498,6 +7527,26 @@
74987527
</arg>
74997528
<arg nr="6" direction="in" default="wxScrolledWindow"/>
75007529
</function>
7530+
<!-- bool wxStaticText::Create(wxWindow * parent, wxWindowID id, const wxString & title, const wxPoint & pos = wxDefaultPosition, const wxSize & size = wxDefaultSize, long style = 0, const wxString & name = wxDialogNameStr) -->
7531+
<function name="wxStaticText::Create">
7532+
<noreturn>false</noreturn>
7533+
<leak-ignore/>
7534+
<returnValue type="bool"/>
7535+
<arg nr="1" direction="in">
7536+
<not-uninit/>
7537+
</arg>
7538+
<arg nr="2" direction="in">
7539+
<not-uninit/>
7540+
<not-bool/>
7541+
</arg>
7542+
<arg nr="3" direction="in"/>
7543+
<arg nr="4" direction="in" default="wxDefaultPosition"/>
7544+
<arg nr="5" direction="in" default="wxDefaultSize"/>
7545+
<arg nr="6" direction="in" default="0">
7546+
<not-bool/>
7547+
</arg>
7548+
<arg nr="7" direction="in" default="wxStaticTextNameStr"/>
7549+
</function>
75017550
<!-- bool wxDialog::Create(wxWindow * parent, wxWindowID id, const wxString & title, const wxPoint & pos = wxDefaultPosition, const wxSize & size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE, const wxString & name = wxDialogNameStr) -->
75027551
<function name="wxDialog::Create">
75037552
<noreturn>false</noreturn>
@@ -7542,6 +7591,18 @@
75427591
</arg>
75437592
<arg nr="2" direction="in"/>
75447593
</function>
7594+
<!-- void wxCheckListBox::Check (unsigned int item, bool check = true ) -->
7595+
<function name="wxCheckListBox::Check">
7596+
<noreturn>false</noreturn>
7597+
<leak-ignore/>
7598+
<arg nr="1" direction="in">
7599+
<not-uninit/>
7600+
<not-bool/>
7601+
</arg>
7602+
<arg nr="2" default="true" direction="in">
7603+
<not-uninit/>
7604+
</arg>
7605+
</function>
75457606
<!-- void wxGrid::SetReadOnly(int row, int col, bool isReadOnly = true) -->
75467607
<function name="wxGrid::SetReadOnly">
75477608
<noreturn>false</noreturn>
@@ -7764,6 +7825,22 @@
77647825
<not-bool/>
77657826
</arg>
77667827
</function>
7828+
<!-- bool wxFileName::Mkdir(int perm = wxS_DIR_DEFAULT, int flags = 0) const -->
7829+
<function name="wxFileName::Mkdir">
7830+
<use-retval/>
7831+
<returnValue type="bool"/>
7832+
<noreturn>false</noreturn>
7833+
<leak-ignore/>
7834+
<const/>
7835+
<arg nr="1" default="wxS_DIR_DEFAULT" direction="in">
7836+
<not-uninit/>
7837+
<not-bool/>
7838+
</arg>
7839+
<arg nr="2" default="0" direction="in">
7840+
<not-uninit/>
7841+
<not-bool/>
7842+
</arg>
7843+
</function>
77677844
<!-- void wxCommandEvent::SetInt(int intCommand) -->
77687845
<function name="wxCommandEvent::SetInt">
77697846
<noreturn>false</noreturn>
@@ -7892,7 +7969,8 @@
78927969
<!-- void wxTextCtrl::SetToolTip(const wxString & tipString) -->
78937970
<!-- void wxRadioBox::SetToolTip(const wxString & tipString) -->
78947971
<!-- void wxComboBox::SetToolTip(const wxString & tipString) -->
7895-
<function name="wxComboBox::SetToolTip,wxWindow::SetToolTip,wxCheckBox::SetToolTip,wxButton::SetToolTip,wxBitmapButton::SetToolTip,wxTextCtrl::SetToolTip,wxRadioBox::SetToolTip">
7972+
<!-- void wxStaticText::SetToolTip(const wxString & tipString) -->
7973+
<function name="wxComboBox::SetToolTip,wxWindow::SetToolTip,wxCheckBox::SetToolTip,wxButton::SetToolTip,wxBitmapButton::SetToolTip,wxTextCtrl::SetToolTip,wxRadioBox::SetToolTip,wxStaticText::SetToolTip">
78967974
<noreturn>false</noreturn>
78977975
<leak-ignore/>
78987976
<arg nr="1" direction="in"/>
@@ -8033,6 +8111,17 @@
80338111
</arg>
80348112
<arg nr="2" direction="in"/>
80358113
</function>
8114+
<!-- size_t wxStrlen ( const wxCharBuffer & s) -->
8115+
<!-- size_t wxStrlen ( const wxWCharBuffer & s ) -->
8116+
<!-- size_t wxStrlen ( const wxString & s ) -->
8117+
<!-- size_t wxStrlen ( const wxCStrData & s) -->
8118+
<function name="wxStrlen">
8119+
<noreturn>false</noreturn>
8120+
<leak-ignore/>
8121+
<returnValue type="size_t"/>
8122+
<use-retval/>
8123+
<arg nr="1" direction="in"/>
8124+
</function>
80368125
<!-- int wxAtoi(const wxString & str)-->
80378126
<function name="wxAtoi">
80388127
<noreturn>false</noreturn>
@@ -8736,6 +8825,17 @@
87368825
<leak-ignore/>
87378826
<arg nr="1" direction="in"/>
87388827
</function>
8828+
<!-- virtual wxControl* wxToolBar::FindControl(int id) -->
8829+
<function name="wxToolBar::FindControl">
8830+
<noreturn>false</noreturn>
8831+
<returnValue type="wxControl*"/>
8832+
<use-retval/>
8833+
<leak-ignore/>
8834+
<arg nr="1" direction="in">
8835+
<not-uninit/>
8836+
<valid>0:</valid>
8837+
</arg>
8838+
</function>
87398839
<!--virtual wxToolBarToolBase* wxToolBar::AddControl(wxControl * control, const wxString & label = wxEmptyString)-->
87408840
<function name="wxToolBar::AddControl">
87418841
<noreturn>false</noreturn>
@@ -9471,6 +9571,17 @@
94719571
<not-uninit/>
94729572
</arg>
94739573
</function>
9574+
<!-- bool wxDir::GetNext(wxString * filename) const -->
9575+
<function name="wxDir::GetNext">
9576+
<noreturn>false</noreturn>
9577+
<returnValue type="bool"/>
9578+
<const/>
9579+
<leak-ignore/>
9580+
<use-retval/>
9581+
<arg nr="1" direction="out">
9582+
<not-null/>
9583+
</arg>
9584+
</function>
94749585
<!-- bool wxDir::GetFirst(wxString * filename, const wxString & filespec = wxEmptyString, int flags = wxDIR_DEFAULT) const-->
94759586
<function name="wxDir::GetFirst">
94769587
<noreturn>false</noreturn>
@@ -9976,6 +10087,22 @@
997610087
<not-bool/>
997710088
</arg>
997810089
</function>
10090+
<!-- virtual wxInputStream& wxInputStream::Read (void * buffer, size_t size) -->
10091+
<!-- virtual wxInputStream& wxInputStream::ReadAll (void * buffer, size_t size) -->
10092+
<function name="wxInputStream::Read,wxInputStream::ReadAll">
10093+
<noreturn>false</noreturn>
10094+
<leak-ignore/>
10095+
<returnValue type="wxInputStream &amp;"/>
10096+
<arg nr="1" direction="out">
10097+
<not-null/>
10098+
<not-bool/>
10099+
</arg>
10100+
<arg nr="2" direction="in">
10101+
<not-uninit/>
10102+
<not-bool/>
10103+
<minsize type="argvalue" arg="1"/>
10104+
</arg>
10105+
</function>
997910106
<!-- void wxPropertyGridManager::SetSplitterPosition(int pos, int column = 0) -->
998010107
<function name="wxPropertyGridManager::SetSplitterPosition">
998110108
<noreturn>false</noreturn>
@@ -10110,6 +10237,14 @@
1011010237
<use-retval/>
1011110238
<arg nr="1" direction="in"/>
1011210239
</function>
10240+
<!-- wxString wxPathOnly(const wxString & path) -->
10241+
<function name="wxPathOnly">
10242+
<leak-ignore/>
10243+
<noreturn>false</noreturn>
10244+
<returnValue type="wxString"/>
10245+
<use-retval/>
10246+
<arg nr="1" direction="in"/>
10247+
</function>
1011310248
<!-- void wxGridCellAttr::GetAlignment( int * hAlign, int * vAlign ) -->
1011410249
<function name="wxGridCellAttr::GetAlignment">
1011510250
<leak-ignore/>
@@ -10451,9 +10586,11 @@
1045110586
<not-bool/>
1045210587
</arg>
1045310588
</function>
10589+
<!-- virtual void wxWindow::SetValidator(const wxValidator & validator) -->
10590+
<!-- virtual void wxTextCtrl::SetValidator(const wxValidator & validator) -->
1045410591
<!-- virtual void wxGridCellTextEditor::SetValidator(const wxValidator & validator) -->
1045510592
<!-- virtual void wxGridCellFloatEditor::SetValidator(const wxValidator & validator) -->
10456-
<function name="wxGridCellTextEditor::SetValidator,wxGridCellFloatEditor::SetValidator">
10593+
<function name="wxWindow::SetValidator,wxTextCtrl::SetValidator,wxGridCellTextEditor::SetValidator,wxGridCellFloatEditor::SetValidator">
1045710594
<leak-ignore/>
1045810595
<noreturn>false</noreturn>
1045910596
<returnValue type="void"/>
@@ -13283,6 +13420,18 @@ wxItemKind kind = wxITEM_NORMAL) -->
1328313420
<leak-ignore/>
1328413421
<arg nr="any" direction="in"/>
1328513422
</function>
13423+
<!--void wxCommandEvent::SetClientData(void * clientData)-->
13424+
<!--void wxCommandEvent::SetClientObject(void * clientObj)-->
13425+
<function name="wxCommandEvent::SetClientData,wxCommandEvent::SetClientObject">
13426+
<noreturn>false</noreturn>
13427+
<returnValue type="void"/>
13428+
<leak-ignore/>
13429+
<arg nr="1" direction="in">
13430+
<not-uninit/>
13431+
<not-null/>
13432+
<not-bool/>
13433+
</arg>
13434+
</function>
1328613435
<!--virtual void wxWindow::SetMinClientSize(const wxSize & size)-->
1328713436
<!--virtual void wxWindow::SetMinSize(const wxSize & size)-->
1328813437
<!--virtual void wxGrid::SetMinClientSize(const wxSize & size)-->

0 commit comments

Comments
 (0)