std.cfg: add std:: functions

This commit is contained in:
Daniel Marjamäki 2015-08-13 11:03:21 +02:00
parent b927b77fc4
commit c0998cbc11
1 changed files with 27 additions and 23 deletions

View File

@ -5,7 +5,7 @@
<noreturn>true</noreturn> <noreturn>true</noreturn>
</function> </function>
<!-- int abs (int j); --> <!-- int abs (int j); -->
<function name="abs"> <function name="abs,std::abs">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -136,7 +136,7 @@
</arg> </arg>
</function> </function>
<!-- char *asctime(const struct tm *tm) --> <!-- char *asctime(const struct tm *tm) -->
<function name="asctime"> <function name="asctime,std::asctime">
<use-retval/> <use-retval/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -148,6 +148,10 @@
<!-- void assert (int expression) --> <!-- void assert (int expression) -->
<function name="assert"> <function name="assert">
<leak-ignore/> <leak-ignore/>
<arg nr="1">
<not-uninit/>
<valid>1</valid>
</arg>
</function> </function>
<!-- double sqrt(double x); --> <!-- double sqrt(double x); -->
<function name="sqrt"> <function name="sqrt">
@ -2383,7 +2387,7 @@
</arg> </arg>
</function> </function>
<!-- int isalnum ( int c ); --> <!-- int isalnum ( int c ); -->
<function name="isalnum"> <function name="isalnum,std::isalnum">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -2404,7 +2408,7 @@
</arg> </arg>
</function> </function>
<!-- int isalpha ( int c ); --> <!-- int isalpha ( int c ); -->
<function name="isalpha"> <function name="isalpha,std::isalpha">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -2446,7 +2450,7 @@
</arg> </arg>
</function> </function>
<!-- int iscntrl ( int c ); --> <!-- int iscntrl ( int c ); -->
<function name="iscntrl"> <function name="iscntrl,std::iscntrl">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -2480,7 +2484,7 @@
</arg> </arg>
</function> </function>
<!-- int isdigit ( int c ); --> <!-- int isdigit ( int c ); -->
<function name="isdigit"> <function name="isdigit,std::isdigit">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -2501,7 +2505,7 @@
</arg> </arg>
</function> </function>
<!-- int isgraph ( int c ); --> <!-- int isgraph ( int c ); -->
<function name="isgraph"> <function name="isgraph,std::isgraph">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -2522,7 +2526,7 @@
</arg> </arg>
</function> </function>
<!-- int islower ( int c ); --> <!-- int islower ( int c ); -->
<function name="islower"> <function name="islower,std::islower">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -2543,7 +2547,7 @@
</arg> </arg>
</function> </function>
<!-- int isprint ( int c ); --> <!-- int isprint ( int c ); -->
<function name="isprint"> <function name="isprint,std::isprint">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -2585,7 +2589,7 @@
</arg> </arg>
</function> </function>
<!-- int isspace ( int c ); --> <!-- int isspace ( int c ); -->
<function name="isspace"> <function name="isspace,std::isspace">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -2606,7 +2610,7 @@
</arg> </arg>
</function> </function>
<!-- int isupper ( int c ); --> <!-- int isupper ( int c ); -->
<function name="isupper"> <function name="isupper,std::isupper">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -2627,7 +2631,7 @@
</arg> </arg>
</function> </function>
<!-- int isxdigit ( int c ); --> <!-- int isxdigit ( int c ); -->
<function name="isxdigit"> <function name="isxdigit,std::isxdigit">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -3649,7 +3653,7 @@
</arg> </arg>
</function> </function>
<!-- int memcmp(const void *s1, const void *s2, size_t n);--> <!-- int memcmp(const void *s1, const void *s2, size_t n);-->
<function name="memcmp"> <function name="memcmp,std::memcmp">
<use-retval/> <use-retval/>
<pure/> <pure/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
@ -3670,7 +3674,7 @@
</arg> </arg>
</function> </function>
<!-- void * memcpy(void *ct, const void *cs, size_t n);--> <!-- void * memcpy(void *ct, const void *cs, size_t n);-->
<function name="memcpy"> <function name="memcpy,std::memcpy">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
<arg nr="1"> <arg nr="1">
@ -3706,7 +3710,7 @@
</arg> </arg>
</function> </function>
<!-- void * memmove(void *ct, const void *cs, size_t n); --> <!-- void * memmove(void *ct, const void *cs, size_t n); -->
<function name="memmove"> <function name="memmove,std::memmove">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
<arg nr="1"> <arg nr="1">
@ -3742,7 +3746,7 @@
</arg> </arg>
</function> </function>
<!-- void *memset(void *s, int c, size_t n); --> <!-- void *memset(void *s, int c, size_t n); -->
<function name="memset"> <function name="memset,std::memset">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
<arg nr="1"> <arg nr="1">
@ -4409,7 +4413,7 @@
<alloc init="true">tmpfile</alloc> <alloc init="true">tmpfile</alloc>
</resource> </resource>
<!-- char * strcat(char *deststr, const char *srcstr); --> <!-- char * strcat(char *deststr, const char *srcstr); -->
<function name="strcat"> <function name="strcat,std::strcat">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
<arg nr="1"> <arg nr="1">
@ -4447,7 +4451,7 @@
</arg> </arg>
</function> </function>
<!-- char * strchr(const char *cs, int c); --> <!-- char * strchr(const char *cs, int c); -->
<function name="strchr"> <function name="strchr,std::strchr">
<use-retval/> <use-retval/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -4474,7 +4478,7 @@
</arg> </arg>
</function> </function>
<!-- int strcmp(const char *str1, const char *str2); --> <!-- int strcmp(const char *str1, const char *str2); -->
<function name="strcmp"> <function name="strcmp,std::strcmp">
<use-retval/> <use-retval/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<pure/> <pure/>
@ -4570,7 +4574,7 @@
</arg> </arg>
</function> </function>
<!-- size_t strlen(const char *string); --> <!-- size_t strlen(const char *string); -->
<function name="strlen"> <function name="strlen,std::strlen">
<use-retval/> <use-retval/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
@ -4625,7 +4629,7 @@
</arg> </arg>
</function> </function>
<!-- char * strncat(char *ct, const char *s, size_t n); --> <!-- char * strncat(char *ct, const char *s, size_t n); -->
<function name="strncat"> <function name="strncat,std::strncat">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>
<arg nr="1"> <arg nr="1">
@ -4661,7 +4665,7 @@
</arg> </arg>
</function> </function>
<!-- int strncmp(const char *s1, const char *s2, size_t n); --> <!-- int strncmp(const char *s1, const char *s2, size_t n); -->
<function name="strncmp"> <function name="strncmp,std::strncmp">
<use-retval/> <use-retval/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<pure/> <pure/>
@ -4699,7 +4703,7 @@
</arg> </arg>
</function> </function>
<!-- size_t strstr(const char *s1, const char *s2); --> <!-- size_t strstr(const char *s1, const char *s2); -->
<function name="strstr"> <function name="strstr,std::strstr">
<use-retval/> <use-retval/>
<noreturn>false</noreturn> <noreturn>false</noreturn>
<leak-ignore/> <leak-ignore/>