Improved testing of std.cfg regarding uninitialized variables.
This commit is contained in:
parent
651e225069
commit
89c4e08fc4
22
cfg/std.cfg
22
cfg/std.cfg
|
@ -64,7 +64,7 @@
|
|||
<!-- double acosh(double x); -->
|
||||
<!-- float acoshf(float x); -->
|
||||
<!-- long double acoshl(long double x); -->
|
||||
<function name="acosh,std::acosh,acoshf,acoshl">
|
||||
<function name="acosh,std::acosh,acoshf,std::acoshf,acoshl,std::acoshl">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -189,7 +189,7 @@
|
|||
<!-- double asinh(double x); -->
|
||||
<!-- float asinhf(float x); -->
|
||||
<!-- long double asinhl(long double x); -->
|
||||
<function name="asinh,std::asinh,asinhf,asinhl">
|
||||
<function name="asinh,std::asinh,asinhf,std::asinhf,asinhl,std::asinhl">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -402,7 +402,7 @@
|
|||
<!-- double tgamma(double x); -->
|
||||
<!-- float tgammaf(float x); -->
|
||||
<!-- long double tgammal(long double x); -->
|
||||
<function name="tgamma,std::tgamma,tgammaf,tgammal">
|
||||
<function name="tgamma,std::tgamma,tgammaf,std::tgammaf,tgammal,std::tgammal">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -414,7 +414,7 @@
|
|||
<!-- double trunc(double x); -->
|
||||
<!-- float truncf(float x); -->
|
||||
<!-- long double truncl(long double x); -->
|
||||
<function name="trunc,std::trunc,truncf,truncl">
|
||||
<function name="trunc,std::trunc,truncf,std::truncf,truncl,std::truncl">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -426,7 +426,7 @@
|
|||
<!-- double atanh(double x); -->
|
||||
<!-- float atanhf(float x); -->
|
||||
<!-- long double atanhl(long double x); -->
|
||||
<function name="atanh,std::atanh,atanhf,atanhl">
|
||||
<function name="atanh,std::atanh,atanhf,std::atanhf,atanhl,std::atanhl">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -523,7 +523,7 @@
|
|||
<!-- double copysign(double x, double y); -->
|
||||
<!-- float copysignf(float x, float y); -->
|
||||
<!-- long double copysign(long double x, long double y); -->
|
||||
<function name="copysign,std::copysign,copysignf,copysignl">
|
||||
<function name="copysign,std::copysign,copysignf,std::copysignf,copysignl,std::copysignl">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -553,7 +553,7 @@
|
|||
<!-- double cbrt(double x); -->
|
||||
<!-- float cbrtf(float x); -->
|
||||
<!-- long double cbrtl(long double x); -->
|
||||
<function name="cbrt,std::cbrt,cbrtf,cbrtl">
|
||||
<function name="cbrt,std::cbrt,cbrtf,std::cbrtf,cbrtl,std::cbrtl">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -655,7 +655,7 @@
|
|||
<!-- double erf(double x); -->
|
||||
<!-- float erff(float f); -->
|
||||
<!-- long double erfl(long double x); -->
|
||||
<function name="erf,std::erf,erff,erfl">
|
||||
<function name="erf,std::erf,erff,std::erff,erfl,std::erfl">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -667,7 +667,7 @@
|
|||
<!-- double erfc(double x); -->
|
||||
<!-- float erfcf(float x); -->
|
||||
<!-- long double erfcl(long double x); -->
|
||||
<function name="erfc,std::erfc,erfcf,erfcl">
|
||||
<function name="erfc,std::erfc,erfcf,std::erfcf,erfcl,std::erfcl">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -727,7 +727,7 @@
|
|||
<!-- double exp2(double x); -->
|
||||
<!-- float exp2f(float x); -->
|
||||
<!-- long double exp2l(long double x);-->
|
||||
<function name="exp2,std::exp2,exp2f,exp2l">
|
||||
<function name="exp2,std::exp2,exp2f,std::exp2f,exp2l,std::exp2l">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
|
@ -739,7 +739,7 @@
|
|||
<!-- double expm1(double x); -->
|
||||
<!-- float expm1f(float x); -->
|
||||
<!-- long double expm1l(long double x); -->
|
||||
<function name="expm1,std::expm1,expm1f,expm1l">
|
||||
<function name="expm1,std::expm1,expm1f,std::expm1f,expm1l,std::expm1l">
|
||||
<use-retval/>
|
||||
<pure/>
|
||||
<noreturn>false</noreturn>
|
||||
|
|
|
@ -135,7 +135,7 @@ void uninitvar_acosh(void)
|
|||
{
|
||||
float f;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::acosh(f);
|
||||
(void)std::acoshf(f);
|
||||
|
||||
double d;
|
||||
// cppcheck-suppress uninitvar
|
||||
|
@ -143,7 +143,7 @@ void uninitvar_acosh(void)
|
|||
|
||||
long double ld;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::acosh(ld);
|
||||
(void)std::acoshl(ld);
|
||||
}
|
||||
|
||||
void uninitvar_asctime(void)
|
||||
|
@ -218,7 +218,7 @@ void uninitvar_asinh(void)
|
|||
{
|
||||
float f;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::asinh(f);
|
||||
(void)std::asinhf(f);
|
||||
|
||||
double d;
|
||||
// cppcheck-suppress uninitvar
|
||||
|
@ -226,7 +226,7 @@ void uninitvar_asinh(void)
|
|||
|
||||
long double ld;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::asinh(ld);
|
||||
(void)std::asinhl(ld);
|
||||
}
|
||||
|
||||
void uninitvar_wcsftime(wchar_t* ptr)
|
||||
|
@ -287,7 +287,7 @@ void uninitvar_tgamma(void)
|
|||
{
|
||||
float f;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::tgamma(f);
|
||||
(void)std::tgammaf(f);
|
||||
|
||||
double d;
|
||||
// cppcheck-suppress uninitvar
|
||||
|
@ -295,14 +295,14 @@ void uninitvar_tgamma(void)
|
|||
|
||||
long double ld;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::tgamma(ld);
|
||||
(void)std::tgammal(ld);
|
||||
}
|
||||
|
||||
void uninitvar_trunc(void)
|
||||
{
|
||||
float f;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::trunc(f);
|
||||
(void)std::truncf(f);
|
||||
|
||||
double d;
|
||||
// cppcheck-suppress uninitvar
|
||||
|
@ -310,14 +310,14 @@ void uninitvar_trunc(void)
|
|||
|
||||
long double ld;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::trunc(ld);
|
||||
(void)std::truncl(ld);
|
||||
}
|
||||
|
||||
void uninitvar_atanh(void)
|
||||
{
|
||||
float f;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::atanh(f);
|
||||
(void)std::atanhf(f);
|
||||
|
||||
double d;
|
||||
// cppcheck-suppress uninitvar
|
||||
|
@ -325,7 +325,7 @@ void uninitvar_atanh(void)
|
|||
|
||||
long double ld;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::atanh(ld);
|
||||
(void)std::atanhl(ld);
|
||||
}
|
||||
|
||||
void uninitvar_atan2(void)
|
||||
|
@ -375,7 +375,7 @@ void uninitvar_copysign(void)
|
|||
{
|
||||
float f1, f2;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::copysign(f1, f2);
|
||||
(void)std::copysignf(f1, f2);
|
||||
|
||||
double d1, d2;
|
||||
// cppcheck-suppress uninitvar
|
||||
|
@ -383,14 +383,14 @@ void uninitvar_copysign(void)
|
|||
|
||||
long double ld1, ld2;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::copysign(ld1, ld2);
|
||||
(void)std::copysignl(ld1, ld2);
|
||||
}
|
||||
|
||||
void uninitvar_cbrt(void)
|
||||
{
|
||||
float f;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::cbrt(f);
|
||||
(void)std::cbrtf(f);
|
||||
|
||||
double d;
|
||||
// cppcheck-suppress uninitvar
|
||||
|
@ -398,7 +398,7 @@ void uninitvar_cbrt(void)
|
|||
|
||||
long double ld;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::cbrt(ld);
|
||||
(void)std::cbrtl(ld);
|
||||
}
|
||||
|
||||
void uninitvar_cos(void)
|
||||
|
@ -520,7 +520,7 @@ void uninitvar_erf(void)
|
|||
{
|
||||
float f;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::erf(f);
|
||||
(void)std::erff(f);
|
||||
|
||||
double d;
|
||||
// cppcheck-suppress uninitvar
|
||||
|
@ -528,14 +528,14 @@ void uninitvar_erf(void)
|
|||
|
||||
long double ld;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::erf(ld);
|
||||
(void)std::erfl(ld);
|
||||
}
|
||||
|
||||
void uninitvar_erfc(void)
|
||||
{
|
||||
float f;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::erfc(f);
|
||||
(void)std::erfcf(f);
|
||||
|
||||
double d;
|
||||
// cppcheck-suppress uninitvar
|
||||
|
@ -543,7 +543,7 @@ void uninitvar_erfc(void)
|
|||
|
||||
long double ld;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::erfc(ld);
|
||||
(void)std::erfcl(ld);
|
||||
}
|
||||
|
||||
void uninitvar_exp(void)
|
||||
|
@ -565,7 +565,7 @@ void uninitvar_exp2(void)
|
|||
{
|
||||
float f;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::exp2(f);
|
||||
(void)std::exp2f(f);
|
||||
|
||||
double d;
|
||||
// cppcheck-suppress uninitvar
|
||||
|
@ -573,14 +573,14 @@ void uninitvar_exp2(void)
|
|||
|
||||
long double ld;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::exp2(ld);
|
||||
(void)std::exp2l(ld);
|
||||
}
|
||||
|
||||
void uninitvar_expm1(void)
|
||||
{
|
||||
float f;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::expm1(f);
|
||||
(void)std::expm1f(f);
|
||||
|
||||
double d;
|
||||
// cppcheck-suppress uninitvar
|
||||
|
@ -588,7 +588,7 @@ void uninitvar_expm1(void)
|
|||
|
||||
long double ld;
|
||||
// cppcheck-suppress uninitvar
|
||||
(void)std::expm1(ld);
|
||||
(void)std::expm1l(ld);
|
||||
}
|
||||
|
||||
void uninitvar_fabs(void)
|
||||
|
|
Loading…
Reference in New Issue