std.cfg: Added <not-bool/>-tags to <cctype> function args.

This commit is contained in:
orbitcowboy 2020-02-22 09:39:21 +01:00
parent cf10b1a220
commit be96abc21a
2 changed files with 117 additions and 0 deletions

View File

@ -2509,6 +2509,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>
@ -2532,6 +2533,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>
@ -2578,6 +2580,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>
@ -2615,6 +2618,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>
@ -2637,6 +2641,7 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1" direction="in">
<not-bool/>
<not-uninit/>
<valid>0:255</valid>
</arg>
@ -2661,6 +2666,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>
@ -2684,6 +2690,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>
@ -2707,6 +2714,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>
@ -2730,6 +2738,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>
@ -2753,6 +2762,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>
@ -2776,6 +2786,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>
@ -5393,6 +5404,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>
@ -5404,6 +5416,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

@ -3906,6 +3906,110 @@ void invalidFunctionArgBool_abs(bool b, double x, double y)
(void)abs(x<y); // #5635
}
int invalidFunctionArgBool_tolower(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)tolower(b);
// cppcheck-suppress invalidFunctionArgBool
return tolower(c != 0);
}
int invalidFunctionArgBool_toupper(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)toupper(b);
// cppcheck-suppress invalidFunctionArgBool
return toupper(c != 0);
}
bool invalidFunctionArgBool_iscntrl(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)iscntrl(b);
// cppcheck-suppress invalidFunctionArgBool
return iscntrl(c != 0);
}
bool invalidFunctionArgBool_isalpha(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)isalpha(b);
// cppcheck-suppress invalidFunctionArgBool
return isalpha(c != 0);
}
bool invalidFunctionArgBool_isalnum(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)isalnum(b);
// cppcheck-suppress invalidFunctionArgBool
return isalnum(c != 0);
}
bool invalidFunctionArgBool_isspace(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)isspace(b);
// cppcheck-suppress invalidFunctionArgBool
return isspace(c != 0);
}
bool invalidFunctionArgBool_isdigit(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)isdigit(b);
// cppcheck-suppress invalidFunctionArgBool
return isdigit(c != 0);
}
bool invalidFunctionArgBool_isgraph(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)isgraph(b);
// cppcheck-suppress invalidFunctionArgBool
return isgraph(c != 0);
}
bool invalidFunctionArgBool_islower(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)islower(b);
// cppcheck-suppress invalidFunctionArgBool
return islower(c != 0);
}
bool invalidFunctionArgBool_isprint(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)isprint(b);
// cppcheck-suppress invalidFunctionArgBool
return isprint(c != 0);
}
bool invalidFunctionArgBool_ispunct(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)ispunct(b);
// cppcheck-suppress invalidFunctionArgBool
return ispunct(c != 0);
}
bool invalidFunctionArgBool_isupper(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)isupper(b);
// cppcheck-suppress invalidFunctionArgBool
return isupper(c != 0);
}
bool invalidFunctionArgBool_isxdigit(bool b, int c)
{
// cppcheck-suppress invalidFunctionArgBool
(void)isxdigit(b);
// cppcheck-suppress invalidFunctionArgBool
return isxdigit(c != 0);
}
void invalidFunctionArg(char c)
{
// cppcheck-suppress asctime_sCalled