gnu.cfg: Added returnValue-types.

This commit is contained in:
orbitcowboy 2017-08-02 14:34:06 +02:00
parent 274bc179bf
commit cc210679a5
2 changed files with 45 additions and 1 deletions

View File

@ -7,6 +7,7 @@
<!-- http://man7.org/linux/man-pages/man2/accept.2.html -->
<!-- int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags); -->
<function name="accept">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -25,6 +26,7 @@
</function>
<!-- long long atoq(const char *nptr); -->
<function name="atoq">
<returnValue type="long long"/>
<use-retval/>
<noreturn>false</noreturn>
<arg nr="1">
@ -34,6 +36,7 @@
</function>
<!-- char *strndupa(const char *s, size_t n); -->
<function name="strndupa">
<returnValue type="char *"/>
<use-retval/>
<noreturn>false</noreturn>
<arg nr="1">
@ -49,6 +52,7 @@
<!-- char *strsep(char **stringp, const char *delim); -->
<function name="strsep">
<use-retval/>
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -61,6 +65,7 @@
<!-- char *strdupa(const char *s); -->
<function name="strdupa">
<use-retval/>
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-null/>
@ -70,6 +75,7 @@
<!-- http://www.gnu.org/software/libc/manual/html_node/Backtraces.html -->
<!-- int backtrace (void **buffer, int size) -->
<function name="backtrace">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-null/>
@ -81,6 +87,7 @@
</function>
<!-- char ** backtrace_symbols (void *const *buffer, int size) -->
<function name="backtrace_symbols">
<returnValue type="char **"/>
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
@ -109,6 +116,7 @@
</function>
<!-- char *qecvt(long double value, int ndigit, int * decpt, int * sign); -->
<function name="ecvt">
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -125,6 +133,7 @@
</function>
<!-- char *qfcvt(double value, int ndigit, int * decpt, int * sign); -->
<function name="qfcvt">
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -141,6 +150,7 @@
</function>
<!-- char *qgcvt(long double value, int ndigit, char *buf); -->
<function name="qgcvt">
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -154,6 +164,7 @@
</function>
<!-- int ecvt_r (double value, int ndigit, int *decpt, int *neg, char *buf, size_t len); -->
<function name="ecvt_r">
<returnValue type="int"/>
<noreturn>false</noreturn>
<pure/>
<arg nr="1">
@ -178,6 +189,7 @@
</function>
<!-- int fcvt_r (double value, int ndigit, int *decpt, int *neg, char *buf, size_t len); -->
<function name="fcvt_r">
<returnValue type="int"/>
<noreturn>false</noreturn>
<pure/>
<arg nr="1">
@ -202,6 +214,7 @@
</function>
<!-- int qecvt_r (long double value, int ndigit, int *decpt, int *neg, char *buf, size_t len); -->
<function name="qecvt_r">
<returnValue type="int"/>
<noreturn>false</noreturn>
<pure/>
<arg nr="1">
@ -226,6 +239,7 @@
</function>
<!-- int qfcvt_r (long double value, int ndigit, int *decpt, int *neg, char *buf, size_t len); -->
<function name="qfcvt_r">
<returnValue type="int"/>
<noreturn>false</noreturn>
<pure/>
<arg nr="1">
@ -252,6 +266,7 @@
<!-- size_t strcasestr(const char *s1, const char *s2); -->
<function name="strcasestr">
<use-retval/>
<returnValue type="size_t"/>
<noreturn>false</noreturn>
<leak-ignore/>
<pure/>
@ -267,6 +282,7 @@
<!-- http://linux.die.net/man/2/getresuid -->
<!-- int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); -->
<function name="getresuid">
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<pure/>
@ -283,6 +299,7 @@
<!-- http://linux.die.net/man/2/getresuid -->
<!-- int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); -->
<function name="getresgid">
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<pure/>
@ -299,6 +316,7 @@
<!-- http://man7.org/linux/man-pages/man2/setresuid.2.html -->
<!-- int setresuid(uid_t ruid, uid_t euid, uid_t suid);-->
<function name="setresuid">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -314,6 +332,7 @@
<!-- http://man7.org/linux/man-pages/man2/setresuid.2.html -->
<!-- int setresgid(gid_t rgid, gid_t egid, gid_t sgid);-->
<function name="setresgid">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -328,6 +347,7 @@
</function>
<!-- int inet_aton (const char *name, struct in_addr *addr); -->
<function name="inet_aton">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -340,6 +360,7 @@
</function>
<!-- uint32_t inet_addr (const char *name); -->
<function name="inet_addr">
<returnValue type="uint32_t"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -349,6 +370,7 @@
</function>
<!-- uint32_t inet_network (const char *name); -->
<function name="inet_network">
<returnValue type="uint32_t"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -358,6 +380,7 @@
</function>
<!-- char * inet_ntoa (struct in_addr addr); -->
<function name="inet_ntoa">
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -366,6 +389,7 @@
</function>
<!-- struct in_addr inet_makeaddr (uint32_t net, uint32_t local); -->
<function name="inet_makeaddr">
<returnValue type="struct in_addr"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -381,6 +405,7 @@
</function>
<!-- uint32_t inet_lnaof (struct in_addr addr); -->
<function name="inet_lnaof">
<returnValue type="uint32_t"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -389,6 +414,7 @@
</function>
<!-- uint32_t inet_netof (struct in_addr addr); -->
<function name="inet_netof">
<returnValue type="uint32_t"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -397,6 +423,7 @@
</function>
<!-- int inet_pton (int af, const char *cp, void *buf); -->
<function name="inet_pton">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -412,6 +439,7 @@
</function>
<!-- const char * inet_ntop (int af, const void *cp, char *buf, socklen_t len);-->
<function name="inet_ntop">
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -430,6 +458,7 @@
</function>
<!-- char *canonicalize_file_name(const char *path); -->
<function name="canonicalize_file_name">
<returnValue type="char *"/>
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
@ -439,6 +468,7 @@
</function>
<!-- int execvpe(const char *file, char *const argv[], char *const envp[]); -->
<function name="execvpe">
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
@ -455,6 +485,7 @@
<!-- int mkostemp(char *template, int flags);
int mkstemps(char *template, int suffixlen);-->
<function name="mkostemp,mkstemps">
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
@ -467,6 +498,7 @@
</function>
<!-- int mkostemps(char *template, int suffixlen, int flags); -->
<function name="mkostemps">
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
@ -543,6 +575,7 @@
int ffsll(long long int i); -->
<function name="ffsl,ffsll">
<use-retval/>
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
@ -553,6 +586,7 @@
<!-- char *strchrnul(const char *s, int c); -->
<function name="strchrnul">
<use-retval/>
<returnValue type="char *"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
@ -568,6 +602,7 @@
<!-- int prlimit(pid_t pid, int resource, const struct rlimit *new_limit,
struct rlimit *old_limit); -->
<function name="prlimit">
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
@ -590,6 +625,7 @@
int epoll_create1(int flags); -->
<function name="epoll_create,epoll_create1">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-bool/>
<not-uninit/>
@ -598,6 +634,7 @@
<!-- int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event); -->
<function name="epoll_ctl">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-bool/>
<not-uninit/>
@ -618,6 +655,7 @@
<!-- int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout); -->
<function name="epoll_wait">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-bool/>
<not-uninit/>
@ -639,6 +677,7 @@
<!-- int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *sigmask); -->
<function name="epoll_pwait">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-bool/>
<not-uninit/>
@ -675,6 +714,7 @@
int epoll_create1(int flags); -->
<function name="epoll_create,epoll_create1">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-bool/>
<not-uninit/>
@ -682,6 +722,7 @@
</function>
<!-- int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event); -->
<function name="epoll_ctl">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-bool/>
@ -702,6 +743,7 @@
</function>
<!-- int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout); -->
<function name="epoll_wait">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-bool/>
@ -723,6 +765,7 @@
</function>
<!-- int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *sigmask); -->
<function name="epoll_pwait">
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-bool/>

View File

@ -1003,7 +1003,8 @@ void ResultsTree::saveErrors(Report *report, QStandardItem *item) const
}
}
void ResultsTree::readErrorItem(const QStandardItem *error, ErrorItem *item) const {
void ResultsTree::readErrorItem(const QStandardItem *error, ErrorItem *item) const
{
//Get error's user data
QVariant userdata = error->data();
//Convert it to QVariantMap