std.cfg and windows.cfg: Improved support for <use-retval/> for functions like ftell(), [f]get[w]c().
This commit is contained in:
parent
8a0f856e95
commit
55ae961ac2
|
@ -832,6 +832,7 @@
|
||||||
<function name="fgetc,std::fgetc">
|
<function name="fgetc,std::fgetc">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
|
<use-retval/>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
<not-null/>
|
<not-null/>
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
|
@ -841,6 +842,7 @@
|
||||||
<function name="fgetwc,std::fgetwc">
|
<function name="fgetwc,std::fgetwc">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
|
<use-retval/>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
<not-null/>
|
<not-null/>
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
|
@ -1408,6 +1410,7 @@
|
||||||
<function name="getc,std::getc">
|
<function name="getc,std::getc">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
|
<use-retval/>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
<not-null/>
|
<not-null/>
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
|
@ -1417,6 +1420,7 @@
|
||||||
<function name="getwc,std::getwc">
|
<function name="getwc,std::getwc">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
|
<use-retval/>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
<not-null/>
|
<not-null/>
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
|
|
|
@ -2095,10 +2095,13 @@ HFONT CreateFont(
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</function>
|
||||||
<!-- __int64 _ftelli64(FILE *stream); -->
|
<!-- __int64 _ftelli64(FILE *stream);
|
||||||
<function name="_ftelli64">
|
long _ftell_nolock(FILE *stream);
|
||||||
|
__int64 _ftelli64_nolock(FILE *stream); -->
|
||||||
|
<function name="_ftelli64,_ftell_nolock,_ftelli64_nolock">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
<leak-ignore/>
|
<leak-ignore/>
|
||||||
|
<use-retval/>
|
||||||
<arg nr="1">
|
<arg nr="1">
|
||||||
<not-null/>
|
<not-null/>
|
||||||
<not-uninit/>
|
<not-uninit/>
|
||||||
|
|
|
@ -78,7 +78,7 @@ void nullpointer(int value)
|
||||||
// cppcheck-suppress nullPointer
|
// cppcheck-suppress nullPointer
|
||||||
feof(0);
|
feof(0);
|
||||||
// cppcheck-suppress nullPointer
|
// cppcheck-suppress nullPointer
|
||||||
fgetc(0);
|
(void)fgetc(0);
|
||||||
// cppcheck-suppress nullPointer
|
// cppcheck-suppress nullPointer
|
||||||
fclose(0);
|
fclose(0);
|
||||||
// cppcheck-suppress ignoredReturnValue
|
// cppcheck-suppress ignoredReturnValue
|
||||||
|
@ -265,7 +265,7 @@ void uninit_fgetc(void)
|
||||||
{
|
{
|
||||||
FILE *fp;
|
FILE *fp;
|
||||||
// cppcheck-suppress uninitvar
|
// cppcheck-suppress uninitvar
|
||||||
fgetc(fp);
|
(void)fgetc(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void uninit_fgetpos(void)
|
void uninit_fgetpos(void)
|
||||||
|
|
Loading…
Reference in New Issue