std.cfg: Added <not-bool/>-tag to isblank() function arg.

This commit is contained in:
orbitcowboy 2020-02-22 09:43:15 +01:00
parent be96abc21a
commit a62ddc6edd
2 changed files with 9 additions and 0 deletions

View File

@ -2557,6 +2557,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
<valid>0:255</valid>
</arg>
</function>

View File

@ -3986,6 +3986,14 @@ bool invalidFunctionArgBool_isprint(bool b, int c)
return isprint(c != 0);
}
bool invalidFunctionArgBool_isblank(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)isblank(b);
// cppcheck-suppress invalidFunctionArgBool
return isblank(c != 0);
}
bool invalidFunctionArgBool_ispunct(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool