std.cfg: Added <not-bool/>-tags to <cctype> function args.
This commit is contained in:
parent
cf10b1a220
commit
be96abc21a
13
cfg/std.cfg
13
cfg/std.cfg
|
@ -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>
|
||||
|
|
104
test/cfg/std.c
104
test/cfg/std.c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue