std config: Remove misspelled function "strbprk" (#1065)

Remove misspelled function configuration "strbprk" (also from the
tests). The correct function "strpbrk" is already configured and tested.
This commit is contained in:
Sebastian 2018-01-29 17:28:44 +01:00 committed by amai2012
parent f5a11a6510
commit 4b5e4f989a
2 changed files with 2 additions and 26 deletions

View File

@ -4570,7 +4570,8 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<valid>0:</valid> <valid>0:</valid>
</arg> </arg>
</function> </function>
<!-- char * strpbrk(const char *cs, const char *ct); --> <!-- const char *strpbrk(const char *str1, const char *str2); -->
<!-- char *strpbrk( char *str1, const char *str2); -->
<function name="strpbrk,std::strpbrk"> <function name="strpbrk,std::strpbrk">
<use-retval/> <use-retval/>
<returnValue type="char *"/> <returnValue type="char *"/>
@ -4922,23 +4923,6 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<valid>0:255</valid> <valid>0:255</valid>
</arg> </arg>
</function> </function>
<!-- const char * strpbrk(const char * str1, const char * str2);-->
<!-- char * strpbrk(char * str1, const char * str2); -->
<function name="strbprk">
<use-retval/>
<pure/>
<returnValue type="char *"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2">
<not-null/>
<not-uninit/>
</arg>
</function>
<!-- const wchar_t* wcsrchr(const wchar_t* ws, wchar_t wc);--> <!-- const wchar_t* wcsrchr(const wchar_t* ws, wchar_t wc);-->
<!-- wchar_t* wcsrchr(wchar_t* ws, wchar_t wc); --> <!-- wchar_t* wcsrchr(wchar_t* ws, wchar_t wc); -->
<function name="wcsrchr,std::wcsrchr"> <function name="wcsrchr,std::wcsrchr">

View File

@ -3180,14 +3180,6 @@ void uninivar_strrchr(void)
(void)strrchr(str,c); (void)strrchr(str,c);
} }
void uninivar_strbprk(void)
{
char *cs;
char *ct;
// cppcheck-suppress uninitvar
(void)strbprk(cs,ct);
}
void uninivar_wcsrchr(void) void uninivar_wcsrchr(void)
{ {
wchar_t* ws; wchar_t* ws;