windows.cfg and posix.cfg: Added support for more functions, found by selfchecking cppchecks code.
This commit is contained in:
parent
17fad2cbdb
commit
2b3a12866a
|
@ -2514,6 +2514,16 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
<arg nr="1"/>
|
||||
<warn severity="portability">Non reentrant function 'ctermid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ctermid_r'.</warn>
|
||||
</function>
|
||||
<!-- char *realpath(const char *path, char *resolved_path); -->
|
||||
<function name="realpath">
|
||||
<use-retval/>
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1">
|
||||
<not-null/>
|
||||
</arg>
|
||||
<arg nr="2"/>
|
||||
</function>
|
||||
<memory>
|
||||
<alloc init="true">strdup</alloc>
|
||||
<alloc init="true">strndup</alloc>
|
||||
|
|
|
@ -1828,4 +1828,65 @@ HFONT CreateFont(
|
|||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- int _mbscmp(const unsigned char *string1, const unsigned char *string2); -->
|
||||
<function name="_mbscmp,_tcscmp">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1">
|
||||
<not-null/>
|
||||
<not-uninit/>
|
||||
<strz/>
|
||||
</arg>
|
||||
<arg nr="2">
|
||||
<not-null/>
|
||||
<not-uninit/>
|
||||
<strz/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- int _snprintf(char *s, size_t n, const char *format, ...);
|
||||
int _snwprintf(wchar_t *buffer, size_t count, const wchar_t *format, ...);-->
|
||||
<function name="_snprintf,_snwprintf,_sntprintf">
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1">
|
||||
<minsize type="argvalue" arg="2"/>
|
||||
</arg>
|
||||
<arg nr="2">
|
||||
<not-uninit/>
|
||||
<valid>0:</valid>
|
||||
</arg>
|
||||
<formatstr/>
|
||||
<arg nr="3">
|
||||
<formatstr/>
|
||||
<not-null/>
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- errno_t strcpy_s(char *strDestination, size_t numberOfElements, const char *strSource);
|
||||
errno_t wcscpy_s(wchar_t *strDestination, size_t numberOfElements, const wchar_t *strSource);
|
||||
errno_t _mbscpy_s(unsigned char *strDestination, size_t numberOfElements, const unsigned char *strSource); -->
|
||||
<function name="strcpy_s,wcscpy_s,_mbscpy_s,_tcscpy_s">
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1">
|
||||
<not-null/>
|
||||
</arg>
|
||||
<arg nr="2">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
<arg nr="3">
|
||||
<not-null/>
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- int _CrtSetDbgFlag(int newFlag); -->
|
||||
<function name="_CrtSetDbgFlag">
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
</function>
|
||||
</def>
|
||||
|
|
Loading…
Reference in New Issue