generated cfg tests: updated test files

This commit is contained in:
Daniel Marjamäki 2018-03-18 13:22:33 +01:00
parent cf180dcc6b
commit 914eea7ed1
12 changed files with 4666 additions and 4666 deletions

View File

@ -4,13 +4,13 @@
// ./generate_cfg_tests cfg/avr.cfg > generated-cfg-tests-avr.cpp
//
// Recommended cppcheck command line:
// $ cppcheck --enable=warning,information --inline-suppr generated-cfg-tests-avr.cpp
// $ cppcheck --enable=warning,information --inline-suppr --platform=unix64 generated-cfg-tests-avr.cpp
// => 'unmatched suppression' warnings are false negatives.
//
void test__toascii__noreturn() {
int x = 100;
if (cond) x=1; else toascii(arg1);
int x = 1;
if (cond) { x=100; toascii(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -22,8 +22,8 @@ void test__toascii__leakignore() {
}
void test__vfprintf_P__noreturn() {
int x = 100;
if (cond) x=1; else vfprintf_P(arg1, arg2);
int x = 1;
if (cond) { x=100; vfprintf_P(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -46,8 +46,8 @@ void test__vfprintf_P__arg1__notuninit() {
}
void test__printf_P__noreturn() {
int x = 100;
if (cond) x=1; else printf_P(arg1);
int x = 1;
if (cond) { x=100; printf_P(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -59,8 +59,8 @@ void test__printf_P__leakignore() {
}
void test__sprintf_P__noreturn() {
int x = 100;
if (cond) x=1; else sprintf_P(arg1, arg2);
int x = 1;
if (cond) { x=100; sprintf_P(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -72,8 +72,8 @@ void test__sprintf_P__leakignore() {
}
void test__snprintf_P__noreturn() {
int x = 100;
if (cond) x=1; else snprintf_P(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; snprintf_P(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -85,8 +85,8 @@ void test__snprintf_P__leakignore() {
}
void test__vsprintf_P__noreturn() {
int x = 100;
if (cond) x=1; else vsprintf_P(arg1, arg2);
int x = 1;
if (cond) { x=100; vsprintf_P(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -98,8 +98,8 @@ void test__vsprintf_P__leakignore() {
}
void test__vsnprintf_P__noreturn() {
int x = 100;
if (cond) x=1; else vsnprintf_P(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; vsnprintf_P(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -111,8 +111,8 @@ void test__vsnprintf_P__leakignore() {
}
void test__fprintf_P__noreturn() {
int x = 100;
if (cond) x=1; else fprintf_P(arg1, arg2);
int x = 1;
if (cond) { x=100; fprintf_P(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -135,8 +135,8 @@ void test__fprintf_P__arg1__notuninit() {
}
void test__fputs_P__noreturn() {
int x = 100;
if (cond) x=1; else fputs_P(arg1, arg2);
int x = 1;
if (cond) { x=100; fputs_P(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -170,8 +170,8 @@ void test__fputs_P__arg2__notuninit() {
}
void test__puts_P__noreturn() {
int x = 100;
if (cond) x=1; else puts_P(arg1);
int x = 1;
if (cond) { x=100; puts_P(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -199,8 +199,8 @@ void test__puts_P__arg1__notuninit() {
}
void test__scanf_P__noreturn() {
int x = 100;
if (cond) x=1; else scanf_P(arg1, arg2);
int x = 1;
if (cond) { x=100; scanf_P(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -218,8 +218,8 @@ void test__scanf_P__arg1__notuninit() {
}
void test__fscanf_P__noreturn() {
int x = 100;
if (cond) x=1; else fscanf_P(arg1, arg2);
int x = 1;
if (cond) { x=100; fscanf_P(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -237,8 +237,8 @@ void test__fscanf_P__arg1__notuninit() {
}
void test__sscanf_P__noreturn() {
int x = 100;
if (cond) x=1; else sscanf_P(arg1, arg2);
int x = 1;
if (cond) { x=100; sscanf_P(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -250,8 +250,8 @@ void test__sscanf_P__leakignore() {
}
void test__fdevopen__noreturn() {
int x = 100;
if (cond) x=1; else fdevopen(arg1, arg2);
int x = 1;
if (cond) { x=100; fdevopen(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -279,8 +279,8 @@ void test__fdevopen__arg2__notuninit() {
}
void test__ltoa__noreturn() {
int x = 100;
if (cond) x=1; else ltoa(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; ltoa(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -320,8 +320,8 @@ void test__ltoa__arg3__notuninit() {
}
void test__utoa__noreturn() {
int x = 100;
if (cond) x=1; else utoa(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; utoa(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -361,8 +361,8 @@ void test__utoa__arg3__notuninit() {
}
void test__ultoa__noreturn() {
int x = 100;
if (cond) x=1; else ultoa(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; ultoa(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -402,8 +402,8 @@ void test__ultoa__arg3__notuninit() {
}
void test__random__noreturn() {
int x = 100;
if (cond) x=1; else random();
int x = 1;
if (cond) { x=100; random(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -415,8 +415,8 @@ void test__random__leakignore() {
}
void test__random_r__noreturn() {
int x = 100;
if (cond) x=1; else random_r(arg1);
int x = 1;
if (cond) { x=100; random_r(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -433,8 +433,8 @@ void test__random_r__arg1__notnull() {
}
void test__srandom__noreturn() {
int x = 100;
if (cond) x=1; else srandom(arg1);
int x = 1;
if (cond) { x=100; srandom(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -452,8 +452,8 @@ void test__srandom__arg1__notuninit() {
}
void test__dtostre__noreturn() {
int x = 100;
if (cond) x=1; else dtostre(arg1, arg2);
int x = 1;
if (cond) { x=100; dtostre(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -476,8 +476,8 @@ void test__dtostre__arg2__notnull() {
}
void test__dtostrf__noreturn() {
int x = 100;
if (cond) x=1; else dtostrf(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; dtostrf(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -512,8 +512,8 @@ void test__dtostrf__arg4__notnull() {
}
void test__ffs__noreturn() {
int x = 100;
if (cond) x=1; else ffs(arg1);
int x = 1;
if (cond) { x=100; ffs(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -531,8 +531,8 @@ void test__ffs__arg1__notuninit() {
}
void test__ffsl__noreturn() {
int x = 100;
if (cond) x=1; else ffsl(arg1);
int x = 1;
if (cond) { x=100; ffsl(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -550,8 +550,8 @@ void test__ffsl__arg1__notuninit() {
}
void test__ffsll__noreturn() {
int x = 100;
if (cond) x=1; else ffsll(arg1);
int x = 1;
if (cond) { x=100; ffsll(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -569,8 +569,8 @@ void test__ffsll__arg1__notuninit() {
}
void test__memccpy__noreturn() {
int x = 100;
if (cond) x=1; else memccpy(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; memccpy(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}

View File

@ -4,13 +4,13 @@
// ./generate_cfg_tests cfg/bsd.cfg > generated-cfg-tests-bsd.cpp
//
// Recommended cppcheck command line:
// $ cppcheck --enable=warning,information --inline-suppr generated-cfg-tests-bsd.cpp
// $ cppcheck --enable=warning,information --inline-suppr --platform=unix64 generated-cfg-tests-bsd.cpp
// => 'unmatched suppression' warnings are false negatives.
//
void test__fts_open__noreturn() {
int x = 100;
if (cond) x=1; else fts_open(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; fts_open(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -39,8 +39,8 @@ void test__fts_open__arg3__notuninit() {
}
void test__fts_read__noreturn() {
int x = 100;
if (cond) x=1; else fts_read(arg1);
int x = 1;
if (cond) { x=100; fts_read(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -57,8 +57,8 @@ void test__fts_read__arg1__notuninit() {
}
void test__readpassphrase__noreturn() {
int x = 100;
if (cond) x=1; else readpassphrase(arg1, arg2);
int x = 1;
if (cond) { x=100; readpassphrase(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -76,8 +76,8 @@ void test__readpassphrase__arg2__notuninit() {
}
void test__fts_set__noreturn() {
int x = 100;
if (cond) x=1; else fts_set(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; fts_set(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -101,8 +101,8 @@ void test__fts_set__arg3__notuninit() {
}
void test__fts_set_clientptr__noreturn() {
int x = 100;
if (cond) x=1; else fts_set_clientptr(arg1, arg2);
int x = 1;
if (cond) { x=100; fts_set_clientptr(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -120,8 +120,8 @@ void test__fts_set_clientptr__arg2__notuninit() {
}
void test__fts_get_clientptr__noreturn() {
int x = 100;
if (cond) x=1; else fts_get_clientptr(arg1);
int x = 1;
if (cond) { x=100; fts_get_clientptr(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -133,8 +133,8 @@ void test__fts_get_clientptr__arg1__notuninit() {
}
void test__fts_get_stream__noreturn() {
int x = 100;
if (cond) x=1; else fts_get_stream(arg1);
int x = 1;
if (cond) { x=100; fts_get_stream(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -146,8 +146,8 @@ void test__fts_get_stream__arg1__notuninit() {
}
void test__fts_close__noreturn() {
int x = 100;
if (cond) x=1; else fts_close(arg1);
int x = 1;
if (cond) { x=100; fts_close(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -159,8 +159,8 @@ void test__fts_close__arg1__notuninit() {
}
void test__readpassphrase__noreturn() {
int x = 100;
if (cond) x=1; else readpassphrase(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; readpassphrase(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -200,8 +200,8 @@ void test__readpassphrase__arg4__notuninit() {
}
void test__setfib__noreturn() {
int x = 100;
if (cond) x=1; else setfib(arg1);
int x = 1;
if (cond) { x=100; setfib(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -213,8 +213,8 @@ void test__setfib__arg1__notuninit() {
}
void test__strtonum__noreturn() {
int x = 100;
if (cond) x=1; else strtonum(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; strtonum(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}

View File

@ -4,13 +4,13 @@
// ./generate_cfg_tests cfg/gnu.cfg > generated-cfg-tests-gnu.cpp
//
// Recommended cppcheck command line:
// $ cppcheck --enable=warning,information --inline-suppr generated-cfg-tests-gnu.cpp
// $ cppcheck --enable=warning,information --inline-suppr --platform=unix64 generated-cfg-tests-gnu.cpp
// => 'unmatched suppression' warnings are false negatives.
//
void test__accept__noreturn() {
int x = 100;
if (cond) x=1; else accept(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; accept(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -51,8 +51,8 @@ void test__accept__arg4__notuninit() {
}
void test__atoq__noreturn() {
int x = 100;
if (cond) x=1; else result = atoq(arg1);
int x = 1;
if (cond) { x=100; result = atoq(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -74,8 +74,8 @@ void test__atoq__arg1__notuninit() {
}
void test__strndupa__noreturn() {
int x = 100;
if (cond) x=1; else result = strndupa(arg1, arg2);
int x = 1;
if (cond) { x=100; result = strndupa(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -103,8 +103,8 @@ void test__strndupa__arg2__notuninit() {
}
void test__strsep__noreturn() {
int x = 100;
if (cond) x=1; else result = strsep(arg1, arg2);
int x = 1;
if (cond) { x=100; result = strsep(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -132,8 +132,8 @@ void test__strsep__arg2__notuninit() {
}
void test__strdupa__noreturn() {
int x = 100;
if (cond) x=1; else result = strdupa(arg1);
int x = 1;
if (cond) { x=100; result = strdupa(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -155,8 +155,8 @@ void test__strdupa__arg1__notuninit() {
}
void test__backtrace__noreturn() {
int x = 100;
if (cond) x=1; else backtrace(arg1, arg2);
int x = 1;
if (cond) { x=100; backtrace(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -173,8 +173,8 @@ void test__backtrace__arg2__notuninit() {
}
void test__backtrace_symbols__noreturn() {
int x = 100;
if (cond) x=1; else result = backtrace_symbols(arg1, arg2);
int x = 1;
if (cond) { x=100; result = backtrace_symbols(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -202,8 +202,8 @@ void test__backtrace_symbols__arg2__notuninit() {
}
void test__backtrace_symbols_fd__noreturn() {
int x = 100;
if (cond) x=1; else backtrace_symbols_fd(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; backtrace_symbols_fd(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -232,8 +232,8 @@ void test__backtrace_symbols_fd__arg3__notuninit() {
}
void test__ecvt__noreturn() {
int x = 100;
if (cond) x=1; else ecvt(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; ecvt(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -261,8 +261,8 @@ void test__ecvt__arg4__notnull() {
}
void test__qfcvt__noreturn() {
int x = 100;
if (cond) x=1; else qfcvt(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; qfcvt(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -290,8 +290,8 @@ void test__qfcvt__arg4__notnull() {
}
void test__qgcvt__noreturn() {
int x = 100;
if (cond) x=1; else qgcvt(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; qgcvt(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -314,8 +314,8 @@ void test__qgcvt__arg3__notnull() {
}
void test__ecvt_r__noreturn() {
int x = 100;
if (cond) x=1; else ecvt_r(arg1, arg2, arg3, arg4, arg5, arg6);
int x = 1;
if (cond) { x=100; ecvt_r(arg1, arg2, arg3, arg4, arg5, arg6); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -359,8 +359,8 @@ void test__ecvt_r__arg6__notuninit() {
}
void test__fcvt_r__noreturn() {
int x = 100;
if (cond) x=1; else fcvt_r(arg1, arg2, arg3, arg4, arg5, arg6);
int x = 1;
if (cond) { x=100; fcvt_r(arg1, arg2, arg3, arg4, arg5, arg6); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -404,8 +404,8 @@ void test__fcvt_r__arg6__notuninit() {
}
void test__qecvt_r__noreturn() {
int x = 100;
if (cond) x=1; else qecvt_r(arg1, arg2, arg3, arg4, arg5, arg6);
int x = 1;
if (cond) { x=100; qecvt_r(arg1, arg2, arg3, arg4, arg5, arg6); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -449,8 +449,8 @@ void test__qecvt_r__arg6__notuninit() {
}
void test__qfcvt_r__noreturn() {
int x = 100;
if (cond) x=1; else qfcvt_r(arg1, arg2, arg3, arg4, arg5, arg6);
int x = 1;
if (cond) { x=100; qfcvt_r(arg1, arg2, arg3, arg4, arg5, arg6); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -494,8 +494,8 @@ void test__qfcvt_r__arg6__notuninit() {
}
void test__strcasestr__noreturn() {
int x = 100;
if (cond) x=1; else result = strcasestr(arg1, arg2);
int x = 1;
if (cond) { x=100; result = strcasestr(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -539,8 +539,8 @@ void test__strcasestr__arg2__notuninit() {
}
void test__getresuid__noreturn() {
int x = 100;
if (cond) x=1; else getresuid(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; getresuid(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -572,8 +572,8 @@ void test__getresuid__arg3__notnull() {
}
void test__getresgid__noreturn() {
int x = 100;
if (cond) x=1; else getresgid(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; getresgid(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -605,8 +605,8 @@ void test__getresgid__arg3__notnull() {
}
void test__setresuid__noreturn() {
int x = 100;
if (cond) x=1; else setresuid(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; setresuid(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -636,8 +636,8 @@ void test__setresuid__arg3__notuninit() {
}
void test__setresgid__noreturn() {
int x = 100;
if (cond) x=1; else setresgid(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; setresgid(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -667,8 +667,8 @@ void test__setresgid__arg3__notuninit() {
}
void test__inet_aton__noreturn() {
int x = 100;
if (cond) x=1; else inet_aton(arg1, arg2);
int x = 1;
if (cond) { x=100; inet_aton(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -696,8 +696,8 @@ void test__inet_aton__arg2__notnull() {
}
void test__inet_addr__noreturn() {
int x = 100;
if (cond) x=1; else inet_addr(arg1);
int x = 1;
if (cond) { x=100; inet_addr(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -720,8 +720,8 @@ void test__inet_addr__arg1__notuninit() {
}
void test__inet_network__noreturn() {
int x = 100;
if (cond) x=1; else inet_network(arg1);
int x = 1;
if (cond) { x=100; inet_network(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -744,8 +744,8 @@ void test__inet_network__arg1__notuninit() {
}
void test__inet_ntoa__noreturn() {
int x = 100;
if (cond) x=1; else inet_ntoa(arg1);
int x = 1;
if (cond) { x=100; inet_ntoa(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -763,8 +763,8 @@ void test__inet_ntoa__arg1__notuninit() {
}
void test__inet_makeaddr__noreturn() {
int x = 100;
if (cond) x=1; else inet_makeaddr(arg1, arg2);
int x = 1;
if (cond) { x=100; inet_makeaddr(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -788,8 +788,8 @@ void test__inet_makeaddr__arg2__notuninit() {
}
void test__inet_lnaof__noreturn() {
int x = 100;
if (cond) x=1; else inet_lnaof(arg1);
int x = 1;
if (cond) { x=100; inet_lnaof(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -807,8 +807,8 @@ void test__inet_lnaof__arg1__notuninit() {
}
void test__inet_netof__noreturn() {
int x = 100;
if (cond) x=1; else inet_netof(arg1);
int x = 1;
if (cond) { x=100; inet_netof(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -826,8 +826,8 @@ void test__inet_netof__arg1__notuninit() {
}
void test__inet_pton__noreturn() {
int x = 100;
if (cond) x=1; else inet_pton(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; inet_pton(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -861,8 +861,8 @@ void test__inet_pton__arg3__notnull() {
}
void test__inet_ntop__noreturn() {
int x = 100;
if (cond) x=1; else inet_ntop(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; inet_ntop(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -902,8 +902,8 @@ void test__inet_ntop__arg4__notuninit() {
}
void test__canonicalize_file_name__noreturn() {
int x = 100;
if (cond) x=1; else result = canonicalize_file_name(arg1);
int x = 1;
if (cond) { x=100; result = canonicalize_file_name(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -925,8 +925,8 @@ void test__canonicalize_file_name__arg1__notnull() {
}
void test__execvpe__noreturn() {
int x = 100;
if (cond) x=1; else execvpe(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; execvpe(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -961,8 +961,8 @@ void test__execvpe__arg3__notuninit() {
}
void test__mkostemp__noreturn() {
int x = 100;
if (cond) x=1; else mkostemp(arg1, arg2);
int x = 1;
if (cond) { x=100; mkostemp(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -991,8 +991,8 @@ void test__mkostemp__arg2__notuninit() {
}
void test__mkstemps__noreturn() {
int x = 100;
if (cond) x=1; else mkstemps(arg1, arg2);
int x = 1;
if (cond) { x=100; mkstemps(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1021,8 +1021,8 @@ void test__mkstemps__arg2__notuninit() {
}
void test__mkostemps__noreturn() {
int x = 100;
if (cond) x=1; else mkostemps(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; mkostemps(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1057,8 +1057,8 @@ void test__mkostemps__arg3__notuninit() {
}
void test__memmem__noreturn() {
int x = 100;
if (cond) x=1; else result = memmem(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; result = memmem(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1109,8 +1109,8 @@ void test__memmem__arg4__notuninit() {
}
void test__memrchr__noreturn() {
int x = 100;
if (cond) x=1; else memrchr(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; memrchr(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1149,8 +1149,8 @@ void test__memrchr__arg3__notbool() {
}
void test__rawmemchr__noreturn() {
int x = 100;
if (cond) x=1; else rawmemchr(arg1, arg2);
int x = 1;
if (cond) { x=100; rawmemchr(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1184,8 +1184,8 @@ void test__rawmemchr__arg2__notuninit() {
}
void test__ffsl__noreturn() {
int x = 100;
if (cond) x=1; else result = ffsl(arg1);
int x = 1;
if (cond) { x=100; result = ffsl(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1208,8 +1208,8 @@ void test__ffsl__arg1__notuninit() {
}
void test__ffsll__noreturn() {
int x = 100;
if (cond) x=1; else result = ffsll(arg1);
int x = 1;
if (cond) { x=100; result = ffsll(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1232,8 +1232,8 @@ void test__ffsll__arg1__notuninit() {
}
void test__strchrnul__noreturn() {
int x = 100;
if (cond) x=1; else result = strchrnul(arg1, arg2);
int x = 1;
if (cond) { x=100; result = strchrnul(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1267,8 +1267,8 @@ void test__strchrnul__arg2__notuninit() {
}
void test__prlimit__noreturn() {
int x = 100;
if (cond) x=1; else prlimit(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; prlimit(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1298,8 +1298,8 @@ void test__prlimit__arg3__notuninit() {
}
void test__epoll_create__noreturn() {
int x = 100;
if (cond) x=1; else epoll_create(arg1);
int x = 1;
if (cond) { x=100; epoll_create(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1316,8 +1316,8 @@ void test__epoll_create__arg1__notuninit() {
}
void test__epoll_create1__noreturn() {
int x = 100;
if (cond) x=1; else epoll_create1(arg1);
int x = 1;
if (cond) { x=100; epoll_create1(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1334,8 +1334,8 @@ void test__epoll_create1__arg1__notuninit() {
}
void test__epoll_ctl__noreturn() {
int x = 100;
if (cond) x=1; else epoll_ctl(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; epoll_ctl(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1384,8 +1384,8 @@ void test__epoll_ctl__arg4__notnull() {
}
void test__epoll_wait__noreturn() {
int x = 100;
if (cond) x=1; else epoll_wait(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; epoll_wait(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1434,8 +1434,8 @@ void test__epoll_wait__arg4__notuninit() {
}
void test__epoll_pwait__noreturn() {
int x = 100;
if (cond) x=1; else epoll_pwait(arg1, arg2, arg3, arg4, arg5);
int x = 1;
if (cond) { x=100; epoll_pwait(arg1, arg2, arg3, arg4, arg5); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}

View File

@ -4,13 +4,13 @@
// ./generate_cfg_tests cfg/motif.cfg > generated-cfg-tests-motif.cpp
//
// Recommended cppcheck command line:
// $ cppcheck --enable=warning,information --inline-suppr generated-cfg-tests-motif.cpp
// $ cppcheck --enable=warning,information --inline-suppr --platform=unix64 generated-cfg-tests-motif.cpp
// => 'unmatched suppression' warnings are false negatives.
//
void test__MrmCloseHierarchy__noreturn() {
int x = 100;
if (cond) x=1; else MrmCloseHierarchy(arg1);
int x = 1;
if (cond) { x=100; MrmCloseHierarchy(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -22,8 +22,8 @@ void test__MrmCloseHierarchy__arg1__notuninit() {
}
void test__MrmOpenHierarchy__noreturn() {
int x = 100;
if (cond) x=1; else result = MrmOpenHierarchy(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; result = MrmOpenHierarchy(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -34,8 +34,8 @@ void test__MrmOpenHierarchy__useretval() {
}
void test__MrmOpenHierarchyPerDisplay__noreturn() {
int x = 100;
if (cond) x=1; else result = MrmOpenHierarchyPerDisplay(arg1, arg2, arg3, arg4, arg5);
int x = 1;
if (cond) { x=100; result = MrmOpenHierarchyPerDisplay(arg1, arg2, arg3, arg4, arg5); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -46,8 +46,8 @@ void test__MrmOpenHierarchyPerDisplay__useretval() {
}
void test__XmFontListEntryFree__noreturn() {
int x = 100;
if (cond) x=1; else XmFontListEntryFree(arg1);
int x = 1;
if (cond) { x=100; XmFontListEntryFree(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -59,8 +59,8 @@ void test__XmFontListEntryFree__arg1__notuninit() {
}
void test__XmFontListCreate__noreturn() {
int x = 100;
if (cond) x=1; else result = XmFontListCreate(arg1, arg2);
int x = 1;
if (cond) { x=100; result = XmFontListCreate(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -83,8 +83,8 @@ void test__XmFontListCreate__arg2__notuninit() {
}
void test__XmFontListAppendEntry__noreturn() {
int x = 100;
if (cond) x=1; else result = XmFontListAppendEntry(arg1, arg2);
int x = 1;
if (cond) { x=100; result = XmFontListAppendEntry(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -107,8 +107,8 @@ void test__XmFontListAppendEntry__arg2__notuninit() {
}
void test__XmStringCreateLocalized__noreturn() {
int x = 100;
if (cond) x=1; else result = XmStringCreateLocalized(arg1);
int x = 1;
if (cond) { x=100; result = XmStringCreateLocalized(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -136,8 +136,8 @@ void test__XmStringCreateLocalized__arg1__notuninit() {
}
void test__XmStringCreateSimple__noreturn() {
int x = 100;
if (cond) x=1; else result = XmStringCreateSimple(arg1);
int x = 1;
if (cond) { x=100; result = XmStringCreateSimple(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -165,8 +165,8 @@ void test__XmStringCreateSimple__arg1__notuninit() {
}
void test__XmStringFree__noreturn() {
int x = 100;
if (cond) x=1; else XmStringFree(arg1);
int x = 1;
if (cond) { x=100; XmStringFree(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -178,8 +178,8 @@ void test__XmStringFree__arg1__notuninit() {
}
void test__XmStringGenerate__noreturn() {
int x = 100;
if (cond) x=1; else XmStringGenerate(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; XmStringGenerate(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -191,8 +191,8 @@ void test__XmStringGenerate__leakignore() {
}
void test__XmTextGetString__noreturn() {
int x = 100;
if (cond) x=1; else XmTextGetString(arg1);
int x = 1;
if (cond) { x=100; XmTextGetString(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -210,8 +210,8 @@ void test__XmTextGetString__arg1__notuninit() {
}
void test__XmTextGetStringWcs__noreturn() {
int x = 100;
if (cond) x=1; else XmTextGetStringWcs(arg1);
int x = 1;
if (cond) { x=100; XmTextGetStringWcs(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -240,8 +240,8 @@ void test__XtAsprintf__arg2__notuninit() {
}
void test__XtFree__noreturn() {
int x = 100;
if (cond) x=1; else XtFree(arg1);
int x = 1;
if (cond) { x=100; XtFree(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -253,8 +253,8 @@ void test__XtFree__arg1__notuninit() {
}
void test__XtSetValues__noreturn() {
int x = 100;
if (cond) x=1; else XtSetValues(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; XtSetValues(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -266,8 +266,8 @@ void test__XtSetValues__leakignore() {
}
void test__XtGetValues__noreturn() {
int x = 100;
if (cond) x=1; else XtGetValues(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; XtGetValues(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -279,8 +279,8 @@ void test__XtGetValues__leakignore() {
}
void test__XtSetSubvalues__noreturn() {
int x = 100;
if (cond) x=1; else XtSetSubvalues(arg1, arg2, arg3, arg4, arg5);
int x = 1;
if (cond) { x=100; XtSetSubvalues(arg1, arg2, arg3, arg4, arg5); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -292,8 +292,8 @@ void test__XtSetSubvalues__leakignore() {
}
void test__XtGetSubvalues__noreturn() {
int x = 100;
if (cond) x=1; else XtGetSubvalues(arg1, arg2, arg3, arg4, arg5);
int x = 1;
if (cond) { x=100; XtGetSubvalues(arg1, arg2, arg3, arg4, arg5); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -305,8 +305,8 @@ void test__XtGetSubvalues__leakignore() {
}
void test__XtMalloc__noreturn() {
int x = 100;
if (cond) x=1; else result = XtMalloc(arg1);
int x = 1;
if (cond) { x=100; result = XtMalloc(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -323,8 +323,8 @@ void test__XtMalloc__arg1__notuninit() {
}
void test__XtNew__noreturn() {
int x = 100;
if (cond) x=1; else result = XtNew(arg1);
int x = 1;
if (cond) { x=100; result = XtNew(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -341,8 +341,8 @@ void test__XtNew__arg1__notuninit() {
}
void test__XtNewString__noreturn() {
int x = 100;
if (cond) x=1; else result = XtNewString(arg1);
int x = 1;
if (cond) { x=100; result = XtNewString(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -359,8 +359,8 @@ void test__XtNewString__arg1__notuninit() {
}
void test__XtCalloc__noreturn() {
int x = 100;
if (cond) x=1; else result = XtCalloc(arg1, arg2);
int x = 1;
if (cond) { x=100; result = XtCalloc(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -383,8 +383,8 @@ void test__XtCalloc__arg2__notuninit() {
}
void test__XOpenDisplay__noreturn() {
int x = 100;
if (cond) x=1; else XOpenDisplay(arg1);
int x = 1;
if (cond) { x=100; XOpenDisplay(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -402,8 +402,8 @@ void test__XOpenDisplay__arg1__notuninit() {
}
void test__XCloseDisplay__noreturn() {
int x = 100;
if (cond) x=1; else XCloseDisplay(arg1);
int x = 1;
if (cond) { x=100; XCloseDisplay(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -421,8 +421,8 @@ void test__XCloseDisplay__arg1__notuninit() {
}
void test__XtDatabase__noreturn() {
int x = 100;
if (cond) x=1; else XtDatabase(arg1);
int x = 1;
if (cond) { x=100; XtDatabase(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -440,8 +440,8 @@ void test__XtDatabase__arg1__notuninit() {
}
void test__XtScreenDatabase__noreturn() {
int x = 100;
if (cond) x=1; else XtScreenDatabase(arg1);
int x = 1;
if (cond) { x=100; XtScreenDatabase(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}

File diff suppressed because it is too large Load Diff

View File

@ -4,13 +4,13 @@
// ./generate_cfg_tests cfg/qt.cfg > generated-cfg-tests-qt.cpp
//
// Recommended cppcheck command line:
// $ cppcheck --enable=warning,information --inline-suppr generated-cfg-tests-qt.cpp
// $ cppcheck --enable=warning,information --inline-suppr --platform=unix64 generated-cfg-tests-qt.cpp
// => 'unmatched suppression' warnings are false negatives.
//
void test__connect__noreturn() {
int x = 100;
if (cond) x=1; else connect(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; connect(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -50,8 +50,8 @@ void test__connect__arg4__notuninit() {
}
void test__disconnect__noreturn() {
int x = 100;
if (cond) x=1; else disconnect(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; disconnect(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -91,8 +91,8 @@ void test__disconnect__arg4__notuninit() {
}
void test__tr__noreturn() {
int x = 100;
if (cond) x=1; else result = tr(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; result = tr(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -132,8 +132,8 @@ void test__tr__arg3__notuninit() {
}
void test__QObject__tr__noreturn() {
int x = 100;
if (cond) x=1; else result = QObject::tr(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; result = QObject::tr(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -173,8 +173,8 @@ void test__QObject__tr__arg3__notuninit() {
}
void test__QSettings__setValue__noreturn() {
int x = 100;
if (cond) x=1; else QSettings::setValue(arg1, arg2);
int x = 1;
if (cond) { x=100; QSettings::setValue(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -203,8 +203,8 @@ void test__QSettings__setValue__arg2__notuninit() {
}
void test__QSettings__value__noreturn() {
int x = 100;
if (cond) x=1; else result = QSettings::value(arg1, arg2);
int x = 1;
if (cond) { x=100; result = QSettings::value(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -232,8 +232,8 @@ void test__QSettings__value__arg2__notuninit() {
}
void test__QString__sprintf__noreturn() {
int x = 100;
if (cond) x=1; else QString::sprintf(arg1);
int x = 1;
if (cond) { x=100; QString::sprintf(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -251,8 +251,8 @@ void test__QString__sprintf__arg1__notuninit() {
}
void test__QString__asprintf__noreturn() {
int x = 100;
if (cond) x=1; else QString::asprintf(arg1);
int x = 1;
if (cond) { x=100; QString::asprintf(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -270,8 +270,8 @@ void test__QString__asprintf__arg1__notuninit() {
}
void test__QList__at__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::at(arg1);
int x = 1;
if (cond) { x=100; result = QList::at(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -288,8 +288,8 @@ void test__QList__at__arg1__notuninit() {
}
void test__QString__at__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::at(arg1);
int x = 1;
if (cond) { x=100; result = QString::at(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -306,8 +306,8 @@ void test__QString__at__arg1__notuninit() {
}
void test__QStringList__at__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::at(arg1);
int x = 1;
if (cond) { x=100; result = QStringList::at(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -324,8 +324,8 @@ void test__QStringList__at__arg1__notuninit() {
}
void test__QString__capacity__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::capacity();
int x = 1;
if (cond) { x=100; result = QString::capacity(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -336,8 +336,8 @@ void test__QString__capacity__useretval() {
}
void test__QList__begin__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::begin();
int x = 1;
if (cond) { x=100; result = QList::begin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -348,8 +348,8 @@ void test__QList__begin__useretval() {
}
void test__QList__end__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::end();
int x = 1;
if (cond) { x=100; result = QList::end(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -360,8 +360,8 @@ void test__QList__end__useretval() {
}
void test__QList__cbegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::cbegin();
int x = 1;
if (cond) { x=100; result = QList::cbegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -372,8 +372,8 @@ void test__QList__cbegin__useretval() {
}
void test__QList__cend__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::cend();
int x = 1;
if (cond) { x=100; result = QList::cend(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -384,8 +384,8 @@ void test__QList__cend__useretval() {
}
void test__QList__constBegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::constBegin();
int x = 1;
if (cond) { x=100; result = QList::constBegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -396,8 +396,8 @@ void test__QList__constBegin__useretval() {
}
void test__QList__constEnd__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::constEnd();
int x = 1;
if (cond) { x=100; result = QList::constEnd(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -408,8 +408,8 @@ void test__QList__constEnd__useretval() {
}
void test__QList__rbegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::rbegin();
int x = 1;
if (cond) { x=100; result = QList::rbegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -420,8 +420,8 @@ void test__QList__rbegin__useretval() {
}
void test__QList__rend__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::rend();
int x = 1;
if (cond) { x=100; result = QList::rend(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -432,8 +432,8 @@ void test__QList__rend__useretval() {
}
void test__QList__crbegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::crbegin();
int x = 1;
if (cond) { x=100; result = QList::crbegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -444,8 +444,8 @@ void test__QList__crbegin__useretval() {
}
void test__QList__crend__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::crend();
int x = 1;
if (cond) { x=100; result = QList::crend(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -456,8 +456,8 @@ void test__QList__crend__useretval() {
}
void test__QString__begin__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::begin();
int x = 1;
if (cond) { x=100; result = QString::begin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -468,8 +468,8 @@ void test__QString__begin__useretval() {
}
void test__QString__end__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::end();
int x = 1;
if (cond) { x=100; result = QString::end(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -480,8 +480,8 @@ void test__QString__end__useretval() {
}
void test__QString__cbegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::cbegin();
int x = 1;
if (cond) { x=100; result = QString::cbegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -492,8 +492,8 @@ void test__QString__cbegin__useretval() {
}
void test__QString__cend__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::cend();
int x = 1;
if (cond) { x=100; result = QString::cend(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -504,8 +504,8 @@ void test__QString__cend__useretval() {
}
void test__QString__constBegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::constBegin();
int x = 1;
if (cond) { x=100; result = QString::constBegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -516,8 +516,8 @@ void test__QString__constBegin__useretval() {
}
void test__QString__constEnd__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::constEnd();
int x = 1;
if (cond) { x=100; result = QString::constEnd(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -528,8 +528,8 @@ void test__QString__constEnd__useretval() {
}
void test__QString__rbegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::rbegin();
int x = 1;
if (cond) { x=100; result = QString::rbegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -540,8 +540,8 @@ void test__QString__rbegin__useretval() {
}
void test__QString__rend__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::rend();
int x = 1;
if (cond) { x=100; result = QString::rend(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -552,8 +552,8 @@ void test__QString__rend__useretval() {
}
void test__QString__crbegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::crbegin();
int x = 1;
if (cond) { x=100; result = QString::crbegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -564,8 +564,8 @@ void test__QString__crbegin__useretval() {
}
void test__QString__crend__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::crend();
int x = 1;
if (cond) { x=100; result = QString::crend(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -576,8 +576,8 @@ void test__QString__crend__useretval() {
}
void test__QStringList__begin__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::begin();
int x = 1;
if (cond) { x=100; result = QStringList::begin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -588,8 +588,8 @@ void test__QStringList__begin__useretval() {
}
void test__QStringList__end__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::end();
int x = 1;
if (cond) { x=100; result = QStringList::end(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -600,8 +600,8 @@ void test__QStringList__end__useretval() {
}
void test__QStringList__cbegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::cbegin();
int x = 1;
if (cond) { x=100; result = QStringList::cbegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -612,8 +612,8 @@ void test__QStringList__cbegin__useretval() {
}
void test__QStringList__cend__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::cend();
int x = 1;
if (cond) { x=100; result = QStringList::cend(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -624,8 +624,8 @@ void test__QStringList__cend__useretval() {
}
void test__QStringList__constBegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::constBegin();
int x = 1;
if (cond) { x=100; result = QStringList::constBegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -636,8 +636,8 @@ void test__QStringList__constBegin__useretval() {
}
void test__QStringList__constEnd__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::constEnd();
int x = 1;
if (cond) { x=100; result = QStringList::constEnd(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -648,8 +648,8 @@ void test__QStringList__constEnd__useretval() {
}
void test__QStringList__rbegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::rbegin();
int x = 1;
if (cond) { x=100; result = QStringList::rbegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -660,8 +660,8 @@ void test__QStringList__rbegin__useretval() {
}
void test__QStringList__rend__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::rend();
int x = 1;
if (cond) { x=100; result = QStringList::rend(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -672,8 +672,8 @@ void test__QStringList__rend__useretval() {
}
void test__QStringList__crbegin__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::crbegin();
int x = 1;
if (cond) { x=100; result = QStringList::crbegin(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -684,8 +684,8 @@ void test__QStringList__crbegin__useretval() {
}
void test__QStringList__crend__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::crend();
int x = 1;
if (cond) { x=100; result = QStringList::crend(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -696,8 +696,8 @@ void test__QStringList__crend__useretval() {
}
void test__QString__chop__noreturn() {
int x = 100;
if (cond) x=1; else QString::chop(arg1);
int x = 1;
if (cond) { x=100; QString::chop(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -709,22 +709,22 @@ void test__QString__chop__arg1__notuninit() {
}
void test__QList__clear__noreturn() {
int x = 100;
if (cond) x=1; else QList::clear();
int x = 1;
if (cond) { x=100; QList::clear(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
void test__QString__clear__noreturn() {
int x = 100;
if (cond) x=1; else QString::clear();
int x = 1;
if (cond) { x=100; QString::clear(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
void test__QString__compare__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::compare(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; result = QString::compare(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -759,8 +759,8 @@ void test__QString__compare__arg3__notuninit() {
}
void test__QList__contains__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::contains(arg1);
int x = 1;
if (cond) { x=100; result = QList::contains(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -777,8 +777,8 @@ void test__QList__contains__arg1__notuninit() {
}
void test__QList__startsWith__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::startsWith(arg1);
int x = 1;
if (cond) { x=100; result = QList::startsWith(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -795,8 +795,8 @@ void test__QList__startsWith__arg1__notuninit() {
}
void test__QList__endsWith__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::endsWith(arg1);
int x = 1;
if (cond) { x=100; result = QList::endsWith(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -813,8 +813,8 @@ void test__QList__endsWith__arg1__notuninit() {
}
void test__QString__contains__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::contains(arg1, arg2);
int x = 1;
if (cond) { x=100; result = QString::contains(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -837,8 +837,8 @@ void test__QString__contains__arg2__notuninit() {
}
void test__QString__startsWith__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::startsWith(arg1, arg2);
int x = 1;
if (cond) { x=100; result = QString::startsWith(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -861,8 +861,8 @@ void test__QString__startsWith__arg2__notuninit() {
}
void test__QString__endsWith__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::endsWith(arg1, arg2);
int x = 1;
if (cond) { x=100; result = QString::endsWith(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -885,8 +885,8 @@ void test__QString__endsWith__arg2__notuninit() {
}
void test__QStringList__contains__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::contains(arg1);
int x = 1;
if (cond) { x=100; result = QStringList::contains(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -903,8 +903,8 @@ void test__QStringList__contains__arg1__notuninit() {
}
void test__QStringList__startsWith__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::startsWith(arg1);
int x = 1;
if (cond) { x=100; result = QStringList::startsWith(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -921,8 +921,8 @@ void test__QStringList__startsWith__arg1__notuninit() {
}
void test__QStringList__endsWith__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::endsWith(arg1);
int x = 1;
if (cond) { x=100; result = QStringList::endsWith(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -939,8 +939,8 @@ void test__QStringList__endsWith__arg1__notuninit() {
}
void test__QList__count__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::count();
int x = 1;
if (cond) { x=100; result = QList::count(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -951,8 +951,8 @@ void test__QList__count__useretval() {
}
void test__QList__length__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::length();
int x = 1;
if (cond) { x=100; result = QList::length(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -963,8 +963,8 @@ void test__QList__length__useretval() {
}
void test__QList__size__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::size();
int x = 1;
if (cond) { x=100; result = QList::size(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -975,8 +975,8 @@ void test__QList__size__useretval() {
}
void test__QString__count__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::count();
int x = 1;
if (cond) { x=100; result = QString::count(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -987,8 +987,8 @@ void test__QString__count__useretval() {
}
void test__QString__length__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::length();
int x = 1;
if (cond) { x=100; result = QString::length(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -999,8 +999,8 @@ void test__QString__length__useretval() {
}
void test__QString__size__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::size();
int x = 1;
if (cond) { x=100; result = QString::size(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1011,8 +1011,8 @@ void test__QString__size__useretval() {
}
void test__QStringList__count__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::count();
int x = 1;
if (cond) { x=100; result = QStringList::count(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1023,8 +1023,8 @@ void test__QStringList__count__useretval() {
}
void test__QStringList__length__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::length();
int x = 1;
if (cond) { x=100; result = QStringList::length(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1035,8 +1035,8 @@ void test__QStringList__length__useretval() {
}
void test__QStringList__size__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::size();
int x = 1;
if (cond) { x=100; result = QStringList::size(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1047,8 +1047,8 @@ void test__QStringList__size__useretval() {
}
void test__QList__empty__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::empty();
int x = 1;
if (cond) { x=100; result = QList::empty(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1059,8 +1059,8 @@ void test__QList__empty__useretval() {
}
void test__QList__isEmpty__QString__isEmpty__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::isEmpty::QString::isEmpty();
int x = 1;
if (cond) { x=100; result = QList::isEmpty::QString::isEmpty(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1071,8 +1071,8 @@ void test__QList__isEmpty__QString__isEmpty__useretval() {
}
void test__QString__isNull__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::isNull();
int x = 1;
if (cond) { x=100; result = QString::isNull(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1083,8 +1083,8 @@ void test__QString__isNull__useretval() {
}
void test__QStringList__empty__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::empty();
int x = 1;
if (cond) { x=100; result = QStringList::empty(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1095,8 +1095,8 @@ void test__QStringList__empty__useretval() {
}
void test__QStringList__isEmpty____noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::isEmpty::();
int x = 1;
if (cond) { x=100; result = QStringList::isEmpty::(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1107,8 +1107,8 @@ void test__QStringList__isEmpty____useretval() {
}
void test__QString__fromStdString__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::fromStdString(arg1);
int x = 1;
if (cond) { x=100; result = QString::fromStdString(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1119,8 +1119,8 @@ void test__QString__fromStdString__useretval() {
}
void test__QList__indexOf__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::indexOf(arg1);
int x = 1;
if (cond) { x=100; result = QList::indexOf(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1137,8 +1137,8 @@ void test__QList__indexOf__arg1__notuninit() {
}
void test__QStringList__indexOf__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::indexOf(arg1);
int x = 1;
if (cond) { x=100; result = QStringList::indexOf(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1155,8 +1155,8 @@ void test__QStringList__indexOf__arg1__notuninit() {
}
void test__QString__indexOf__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::indexOf();
int x = 1;
if (cond) { x=100; result = QString::indexOf(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1167,8 +1167,8 @@ void test__QString__indexOf__useretval() {
}
void test__QString__isRightToLeft__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::isRightToLeft();
int x = 1;
if (cond) { x=100; result = QString::isRightToLeft(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1179,8 +1179,8 @@ void test__QString__isRightToLeft__useretval() {
}
void test__QList__lastIndexOf__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::lastIndexOf(arg1, arg2);
int x = 1;
if (cond) { x=100; result = QList::lastIndexOf(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1203,8 +1203,8 @@ void test__QList__lastIndexOf__arg2__notuninit() {
}
void test__QStringList__lastIndexOf__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::lastIndexOf(arg1, arg2);
int x = 1;
if (cond) { x=100; result = QStringList::lastIndexOf(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1227,8 +1227,8 @@ void test__QStringList__lastIndexOf__arg2__notuninit() {
}
void test__QString__lastIndexOf__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::lastIndexOf(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; result = QString::lastIndexOf(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1257,8 +1257,8 @@ void test__QString__lastIndexOf__arg3__notuninit() {
}
void test__QString__left__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::left(arg1);
int x = 1;
if (cond) { x=100; result = QString::left(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1275,8 +1275,8 @@ void test__QString__left__arg1__notuninit() {
}
void test__QList__mid__noreturn() {
int x = 100;
if (cond) x=1; else result = QList::mid(arg1, arg2);
int x = 1;
if (cond) { x=100; result = QList::mid(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1299,8 +1299,8 @@ void test__QList__mid__arg2__notuninit() {
}
void test__QString__mid__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::mid(arg1, arg2);
int x = 1;
if (cond) { x=100; result = QString::mid(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1323,8 +1323,8 @@ void test__QString__mid__arg2__notuninit() {
}
void test__QStringList__mid__noreturn() {
int x = 100;
if (cond) x=1; else result = QStringList::mid(arg1, arg2);
int x = 1;
if (cond) { x=100; result = QStringList::mid(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1347,8 +1347,8 @@ void test__QStringList__mid__arg2__notuninit() {
}
void test__QString__number__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::number();
int x = 1;
if (cond) { x=100; result = QString::number(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1365,8 +1365,8 @@ void test__QString__number__leakignore() {
}
void test__QString__right__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::right(arg1);
int x = 1;
if (cond) { x=100; result = QString::right(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1394,8 +1394,8 @@ void test__QString__right__arg1__notuninit() {
}
void test__QString__split__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::split(arg1);
int x = 1;
if (cond) { x=100; result = QString::split(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1418,8 +1418,8 @@ void test__QString__split__arg1__notuninit() {
}
void test__QString__toInt__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::toInt(arg1, arg2);
int x = 1;
if (cond) { x=100; result = QString::toInt(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1448,8 +1448,8 @@ void test__QString__toInt__arg2__notuninit() {
}
void test__QString__toLower__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::toLower();
int x = 1;
if (cond) { x=100; result = QString::toLower(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1460,8 +1460,8 @@ void test__QString__toLower__useretval() {
}
void test__QString__toStdString__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::toStdString();
int x = 1;
if (cond) { x=100; result = QString::toStdString(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1472,8 +1472,8 @@ void test__QString__toStdString__useretval() {
}
void test__QString__toUpper__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::toUpper();
int x = 1;
if (cond) { x=100; result = QString::toUpper(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1484,8 +1484,8 @@ void test__QString__toUpper__useretval() {
}
void test__QString__toUtf8__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::toUtf8();
int x = 1;
if (cond) { x=100; result = QString::toUtf8(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1496,8 +1496,8 @@ void test__QString__toUtf8__useretval() {
}
void test__QString__trimmed__noreturn() {
int x = 100;
if (cond) x=1; else result = QString::trimmed();
int x = 1;
if (cond) { x=100; result = QString::trimmed(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1508,8 +1508,8 @@ void test__QString__trimmed__useretval() {
}
void test__QMetaObject__connectSlotsByName__noreturn() {
int x = 100;
if (cond) x=1; else QMetaObject::connectSlotsByName(arg1);
int x = 1;
if (cond) { x=100; QMetaObject::connectSlotsByName(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1526,8 +1526,8 @@ void test__QMetaObject__connectSlotsByName__arg1__notnull() {
}
void test__QDir__fromNativeSeparators__noreturn() {
int x = 100;
if (cond) x=1; else result = QDir::fromNativeSeparators(arg1);
int x = 1;
if (cond) { x=100; result = QDir::fromNativeSeparators(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1544,8 +1544,8 @@ void test__QDir__fromNativeSeparators__arg1__notuninit() {
}
void test__QDir__toNativeSeparators__noreturn() {
int x = 100;
if (cond) x=1; else result = QDir::toNativeSeparators(arg1);
int x = 1;
if (cond) { x=100; result = QDir::toNativeSeparators(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1562,8 +1562,8 @@ void test__QDir__toNativeSeparators__arg1__notuninit() {
}
void test__QFile__open__noreturn() {
int x = 100;
if (cond) x=1; else QFile::open();
int x = 1;
if (cond) { x=100; QFile::open(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1575,8 +1575,8 @@ void test__QFile__open__leakignore() {
}
void test__QFile__remove__noreturn() {
int x = 100;
if (cond) x=1; else QFile::remove();
int x = 1;
if (cond) { x=100; QFile::remove(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1588,8 +1588,8 @@ void test__QFile__remove__leakignore() {
}
void test__QFile__rename__noreturn() {
int x = 100;
if (cond) x=1; else QFile::rename();
int x = 1;
if (cond) { x=100; QFile::rename(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1601,8 +1601,8 @@ void test__QFile__rename__leakignore() {
}
void test__QFile__size__noreturn() {
int x = 100;
if (cond) x=1; else result = QFile::size();
int x = 1;
if (cond) { x=100; result = QFile::size(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1613,8 +1613,8 @@ void test__QFile__size__useretval() {
}
void test__QIODevice__size__noreturn() {
int x = 100;
if (cond) x=1; else result = QIODevice::size();
int x = 1;
if (cond) { x=100; result = QIODevice::size(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}

View File

@ -4,13 +4,13 @@
// ./generate_cfg_tests cfg/sdl.cfg > generated-cfg-tests-sdl.cpp
//
// Recommended cppcheck command line:
// $ cppcheck --enable=warning,information --inline-suppr generated-cfg-tests-sdl.cpp
// $ cppcheck --enable=warning,information --inline-suppr --platform=unix64 generated-cfg-tests-sdl.cpp
// => 'unmatched suppression' warnings are false negatives.
//
void test__SDL_mutexP__noreturn() {
int x = 100;
if (cond) x=1; else SDL_mutexP(arg1);
int x = 1;
if (cond) { x=100; SDL_mutexP(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -26,8 +26,8 @@ void test__SDL_mutexP__arg1__notnull() {
}
void test__SDL_mutexV__noreturn() {
int x = 100;
if (cond) x=1; else SDL_mutexV(arg1);
int x = 1;
if (cond) { x=100; SDL_mutexV(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -43,8 +43,8 @@ void test__SDL_mutexV__arg1__notnull() {
}
void test__SDL_RWsize__noreturn() {
int x = 100;
if (cond) x=1; else SDL_RWsize(arg1);
int x = 1;
if (cond) { x=100; SDL_RWsize(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -60,8 +60,8 @@ void test__SDL_RWsize__arg1__notnull() {
}
void test__SDL_RWread__noreturn() {
int x = 100;
if (cond) x=1; else SDL_RWread(arg1, arg2);
int x = 1;
if (cond) { x=100; SDL_RWread(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -87,8 +87,8 @@ void test__SDL_RWread__arg2__notnull() {
}
void test__IMG_isPNG__noreturn() {
int x = 100;
if (cond) x=1; else IMG_isPNG(arg1);
int x = 1;
if (cond) { x=100; IMG_isPNG(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -104,8 +104,8 @@ void test__IMG_isPNG__arg1__notnull() {
}
void test__IMG_isJPG__noreturn() {
int x = 100;
if (cond) x=1; else IMG_isJPG(arg1);
int x = 1;
if (cond) { x=100; IMG_isJPG(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}

View File

@ -4,13 +4,13 @@
// ./generate_cfg_tests cfg/sfml.cfg > generated-cfg-tests-sfml.cpp
//
// Recommended cppcheck command line:
// $ cppcheck --enable=warning,information --inline-suppr generated-cfg-tests-sfml.cpp
// $ cppcheck --enable=warning,information --inline-suppr --platform=unix64 generated-cfg-tests-sfml.cpp
// => 'unmatched suppression' warnings are false negatives.
//
void test__sf__err__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::err();
int x = 1;
if (cond) { x=100; result = sf::err(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -27,8 +27,8 @@ void test__sf__err__leakignore() {
}
void test__sf__sleep__noreturn() {
int x = 100;
if (cond) x=1; else sf::sleep(arg1);
int x = 1;
if (cond) { x=100; sf::sleep(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -46,8 +46,8 @@ void test__sf__sleep__arg1__notuninit() {
}
void test__sf__Time__asSeconds__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::Time::asSeconds();
int x = 1;
if (cond) { x=100; result = sf::Time::asSeconds(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -64,8 +64,8 @@ void test__sf__Time__asSeconds__leakignore() {
}
void test__sf__Time__asMilliseconds__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::Time::asMilliseconds();
int x = 1;
if (cond) { x=100; result = sf::Time::asMilliseconds(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -82,8 +82,8 @@ void test__sf__Time__asMilliseconds__leakignore() {
}
void test__sf__Time__asMicroseconds__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::Time::asMicroseconds();
int x = 1;
if (cond) { x=100; result = sf::Time::asMicroseconds(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -100,8 +100,8 @@ void test__sf__Time__asMicroseconds__leakignore() {
}
void test__sf__String__clear__noreturn() {
int x = 100;
if (cond) x=1; else sf::String::clear();
int x = 1;
if (cond) { x=100; sf::String::clear(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -113,8 +113,8 @@ void test__sf__String__clear__leakignore() {
}
void test__sf__String__isEmpty__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::String::isEmpty();
int x = 1;
if (cond) { x=100; result = sf::String::isEmpty(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -131,8 +131,8 @@ void test__sf__String__isEmpty__leakignore() {
}
void test__sf__String__getSize__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::String::getSize();
int x = 1;
if (cond) { x=100; result = sf::String::getSize(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -149,8 +149,8 @@ void test__sf__String__getSize__leakignore() {
}
void test__sf__String__find__noreturn() {
int x = 100;
if (cond) x=1; else sf::String::find(arg1, arg2);
int x = 1;
if (cond) { x=100; sf::String::find(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -179,8 +179,8 @@ void test__sf__String__find__arg2__notuninit() {
}
void test__sf__String__substring__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::String::substring(arg1, arg2);
int x = 1;
if (cond) { x=100; result = sf::String::substring(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -209,8 +209,8 @@ void test__sf__String__substring__arg2__notuninit() {
}
void test__sf__String__erase__noreturn() {
int x = 100;
if (cond) x=1; else sf::String::erase(arg1, arg2);
int x = 1;
if (cond) { x=100; sf::String::erase(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -234,8 +234,8 @@ void test__sf__String__erase__arg2__notuninit() {
}
void test__sf__RenderTarget__clear__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTarget::clear(arg1);
int x = 1;
if (cond) { x=100; sf::RenderTarget::clear(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -253,8 +253,8 @@ void test__sf__RenderTarget__clear__arg1__notuninit() {
}
void test__sf__RenderWindow__clear__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::clear(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::clear(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -272,8 +272,8 @@ void test__sf__RenderWindow__clear__arg1__notuninit() {
}
void test__sf__RenderTexture__clear__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTexture::clear(arg1);
int x = 1;
if (cond) { x=100; sf::RenderTexture::clear(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -291,8 +291,8 @@ void test__sf__RenderTexture__clear__arg1__notuninit() {
}
void test__sf__RenderTarget__setView__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTarget::setView(arg1);
int x = 1;
if (cond) { x=100; sf::RenderTarget::setView(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -310,8 +310,8 @@ void test__sf__RenderTarget__setView__arg1__notuninit() {
}
void test__sf__RenderWindow__setView__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setView(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setView(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -329,8 +329,8 @@ void test__sf__RenderWindow__setView__arg1__notuninit() {
}
void test__sf__RenderTexture__setView__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTexture::setView(arg1);
int x = 1;
if (cond) { x=100; sf::RenderTexture::setView(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -348,8 +348,8 @@ void test__sf__RenderTexture__setView__arg1__notuninit() {
}
void test__sf__RenderTarget__getView__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTarget::getView();
int x = 1;
if (cond) { x=100; result = sf::RenderTarget::getView(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -366,8 +366,8 @@ void test__sf__RenderTarget__getView__leakignore() {
}
void test__sf__RenderTarget__getDefaultView__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTarget::getDefaultView();
int x = 1;
if (cond) { x=100; result = sf::RenderTarget::getDefaultView(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -384,8 +384,8 @@ void test__sf__RenderTarget__getDefaultView__leakignore() {
}
void test__sf__RenderWindow__getView__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::getView();
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::getView(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -402,8 +402,8 @@ void test__sf__RenderWindow__getView__leakignore() {
}
void test__sf__RenderWindow__getDefaultView__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::getDefaultView();
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::getDefaultView(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -420,8 +420,8 @@ void test__sf__RenderWindow__getDefaultView__leakignore() {
}
void test__sf__RenderTexture__getView__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTexture::getView();
int x = 1;
if (cond) { x=100; result = sf::RenderTexture::getView(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -438,8 +438,8 @@ void test__sf__RenderTexture__getView__leakignore() {
}
void test__sf__RenderTexture__getDefaultView__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTexture::getDefaultView();
int x = 1;
if (cond) { x=100; result = sf::RenderTexture::getDefaultView(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -456,8 +456,8 @@ void test__sf__RenderTexture__getDefaultView__leakignore() {
}
void test__sf__RenderTarget__getViewport__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTarget::getViewport(arg1);
int x = 1;
if (cond) { x=100; result = sf::RenderTarget::getViewport(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -480,8 +480,8 @@ void test__sf__RenderTarget__getViewport__arg1__notuninit() {
}
void test__sf__RenderWindow__getViewport__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::getViewport(arg1);
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::getViewport(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -504,8 +504,8 @@ void test__sf__RenderWindow__getViewport__arg1__notuninit() {
}
void test__sf__RenderTexture__getViewport__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTexture::getViewport(arg1);
int x = 1;
if (cond) { x=100; result = sf::RenderTexture::getViewport(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -528,8 +528,8 @@ void test__sf__RenderTexture__getViewport__arg1__notuninit() {
}
void test__sf__RenderTarget__mapPixelToCoords__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTarget::mapPixelToCoords(arg1, arg2);
int x = 1;
if (cond) { x=100; result = sf::RenderTarget::mapPixelToCoords(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -558,8 +558,8 @@ void test__sf__RenderTarget__mapPixelToCoords__arg2__notuninit() {
}
void test__sf__RenderTarget__mapCoordsToPixel__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTarget::mapCoordsToPixel(arg1, arg2);
int x = 1;
if (cond) { x=100; result = sf::RenderTarget::mapCoordsToPixel(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -588,8 +588,8 @@ void test__sf__RenderTarget__mapCoordsToPixel__arg2__notuninit() {
}
void test__sf__RenderWindow__mapPixelToCoords__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::mapPixelToCoords(arg1, arg2);
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::mapPixelToCoords(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -618,8 +618,8 @@ void test__sf__RenderWindow__mapPixelToCoords__arg2__notuninit() {
}
void test__sf__RenderWindow__mapCoordsToPixel__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::mapCoordsToPixel(arg1, arg2);
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::mapCoordsToPixel(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -648,8 +648,8 @@ void test__sf__RenderWindow__mapCoordsToPixel__arg2__notuninit() {
}
void test__sf__RenderTexture__mapPixelToCoords__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTexture::mapPixelToCoords(arg1, arg2);
int x = 1;
if (cond) { x=100; result = sf::RenderTexture::mapPixelToCoords(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -678,8 +678,8 @@ void test__sf__RenderTexture__mapPixelToCoords__arg2__notuninit() {
}
void test__sf__RenderTexture__mapCoordsToPixel__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTexture::mapCoordsToPixel(arg1, arg2);
int x = 1;
if (cond) { x=100; result = sf::RenderTexture::mapCoordsToPixel(arg1, arg2); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -708,8 +708,8 @@ void test__sf__RenderTexture__mapCoordsToPixel__arg2__notuninit() {
}
void test__sf__RenderTarget__draw__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTarget::draw(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; sf::RenderTarget::draw(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -745,8 +745,8 @@ void test__sf__RenderTarget__draw__arg4__notuninit() {
}
void test__sf__RenderWindow__draw__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::draw(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; sf::RenderWindow::draw(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -782,8 +782,8 @@ void test__sf__RenderWindow__draw__arg4__notuninit() {
}
void test__sf__RenderTexture__draw__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTexture::draw(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; sf::RenderTexture::draw(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -819,8 +819,8 @@ void test__sf__RenderTexture__draw__arg4__notuninit() {
}
void test__sf__RenderTarget__getSize__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTarget::getSize();
int x = 1;
if (cond) { x=100; result = sf::RenderTarget::getSize(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -837,8 +837,8 @@ void test__sf__RenderTarget__getSize__leakignore() {
}
void test__sf__RenderWindow__getSize__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::getSize();
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::getSize(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -855,8 +855,8 @@ void test__sf__RenderWindow__getSize__leakignore() {
}
void test__sf__RenderTexture__getSize__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderTexture::getSize();
int x = 1;
if (cond) { x=100; result = sf::RenderTexture::getSize(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -873,8 +873,8 @@ void test__sf__RenderTexture__getSize__leakignore() {
}
void test__sf__RenderTarget__setActive__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTarget::setActive(arg1);
int x = 1;
if (cond) { x=100; sf::RenderTarget::setActive(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -892,8 +892,8 @@ void test__sf__RenderTarget__setActive__arg1__notuninit() {
}
void test__sf__RenderWindow__setActive__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setActive(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setActive(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -911,8 +911,8 @@ void test__sf__RenderWindow__setActive__arg1__notuninit() {
}
void test__sf__RenderTexture__setActive__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTexture::setActive(arg1);
int x = 1;
if (cond) { x=100; sf::RenderTexture::setActive(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -930,8 +930,8 @@ void test__sf__RenderTexture__setActive__arg1__notuninit() {
}
void test__sf__Window__setActive__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setActive(arg1);
int x = 1;
if (cond) { x=100; sf::Window::setActive(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -949,8 +949,8 @@ void test__sf__Window__setActive__arg1__notuninit() {
}
void test__sf__RenderTarget__pushGLStates__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTarget::pushGLStates();
int x = 1;
if (cond) { x=100; sf::RenderTarget::pushGLStates(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -962,8 +962,8 @@ void test__sf__RenderTarget__pushGLStates__leakignore() {
}
void test__sf__RenderTarget__popGLStates__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTarget::popGLStates();
int x = 1;
if (cond) { x=100; sf::RenderTarget::popGLStates(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -975,8 +975,8 @@ void test__sf__RenderTarget__popGLStates__leakignore() {
}
void test__sf__RenderTarget__resetGLStates__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTarget::resetGLStates();
int x = 1;
if (cond) { x=100; sf::RenderTarget::resetGLStates(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -988,8 +988,8 @@ void test__sf__RenderTarget__resetGLStates__leakignore() {
}
void test__sf__RenderWindow__pushGLStates__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::pushGLStates();
int x = 1;
if (cond) { x=100; sf::RenderWindow::pushGLStates(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1001,8 +1001,8 @@ void test__sf__RenderWindow__pushGLStates__leakignore() {
}
void test__sf__RenderWindow__popGLStates__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::popGLStates();
int x = 1;
if (cond) { x=100; sf::RenderWindow::popGLStates(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1014,8 +1014,8 @@ void test__sf__RenderWindow__popGLStates__leakignore() {
}
void test__sf__RenderWindow__resetGLStates__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::resetGLStates();
int x = 1;
if (cond) { x=100; sf::RenderWindow::resetGLStates(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1027,8 +1027,8 @@ void test__sf__RenderWindow__resetGLStates__leakignore() {
}
void test__sf__RenderTexture__pushGLStates__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTexture::pushGLStates();
int x = 1;
if (cond) { x=100; sf::RenderTexture::pushGLStates(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1040,8 +1040,8 @@ void test__sf__RenderTexture__pushGLStates__leakignore() {
}
void test__sf__RenderTexture__popGLStates__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTexture::popGLStates();
int x = 1;
if (cond) { x=100; sf::RenderTexture::popGLStates(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1053,8 +1053,8 @@ void test__sf__RenderTexture__popGLStates__leakignore() {
}
void test__sf__RenderTexture__resetGLStates__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderTexture::resetGLStates();
int x = 1;
if (cond) { x=100; sf::RenderTexture::resetGLStates(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1066,8 +1066,8 @@ void test__sf__RenderTexture__resetGLStates__leakignore() {
}
void test__sf__Window__create__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::create(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; sf::Window::create(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1103,8 +1103,8 @@ void test__sf__Window__create__arg4__notuninit() {
}
void test__sf__RenderWindow__create__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::create(arg1, arg2, arg3, arg4);
int x = 1;
if (cond) { x=100; sf::RenderWindow::create(arg1, arg2, arg3, arg4); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1140,8 +1140,8 @@ void test__sf__RenderWindow__create__arg4__notuninit() {
}
void test__sf__Window__close__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::close();
int x = 1;
if (cond) { x=100; sf::Window::close(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1153,8 +1153,8 @@ void test__sf__Window__close__leakignore() {
}
void test__sf__RenderWindow__close__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::close();
int x = 1;
if (cond) { x=100; sf::RenderWindow::close(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1166,8 +1166,8 @@ void test__sf__RenderWindow__close__leakignore() {
}
void test__sf__Window__isOpen__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::Window::isOpen();
int x = 1;
if (cond) { x=100; result = sf::Window::isOpen(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1184,8 +1184,8 @@ void test__sf__Window__isOpen__leakignore() {
}
void test__sf__RenderWindow__isOpen__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::isOpen();
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::isOpen(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1202,8 +1202,8 @@ void test__sf__RenderWindow__isOpen__leakignore() {
}
void test__sf__Window__getSettings__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::Window::getSettings();
int x = 1;
if (cond) { x=100; result = sf::Window::getSettings(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1220,8 +1220,8 @@ void test__sf__Window__getSettings__leakignore() {
}
void test__sf__RenderWindow__getSettings__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::getSettings();
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::getSettings(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1238,8 +1238,8 @@ void test__sf__RenderWindow__getSettings__leakignore() {
}
void test__sf__Window__pollEvent__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::pollEvent(arg1);
int x = 1;
if (cond) { x=100; sf::Window::pollEvent(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1251,8 +1251,8 @@ void test__sf__Window__pollEvent__leakignore() {
}
void test__sf__Window__waitEvent__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::waitEvent(arg1);
int x = 1;
if (cond) { x=100; sf::Window::waitEvent(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1264,8 +1264,8 @@ void test__sf__Window__waitEvent__leakignore() {
}
void test__sf__RenderWindow__pollEvent__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::pollEvent(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::pollEvent(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1277,8 +1277,8 @@ void test__sf__RenderWindow__pollEvent__leakignore() {
}
void test__sf__RenderWindow__waitEvent__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::waitEvent(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::waitEvent(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1290,8 +1290,8 @@ void test__sf__RenderWindow__waitEvent__leakignore() {
}
void test__sf__Window__getPosition__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::Window::getPosition();
int x = 1;
if (cond) { x=100; result = sf::Window::getPosition(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1308,8 +1308,8 @@ void test__sf__Window__getPosition__leakignore() {
}
void test__sf__RenderWindow__getPosition__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::getPosition();
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::getPosition(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1326,8 +1326,8 @@ void test__sf__RenderWindow__getPosition__leakignore() {
}
void test__sf__Window__setPosition__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setPosition(arg1);
int x = 1;
if (cond) { x=100; sf::Window::setPosition(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1345,8 +1345,8 @@ void test__sf__Window__setPosition__arg1__notuninit() {
}
void test__sf__RenderWindow__setPosition__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setPosition(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setPosition(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1364,8 +1364,8 @@ void test__sf__RenderWindow__setPosition__arg1__notuninit() {
}
void test__sf__Window__getSize__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::Window::getSize();
int x = 1;
if (cond) { x=100; result = sf::Window::getSize(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1382,8 +1382,8 @@ void test__sf__Window__getSize__leakignore() {
}
void test__sf__RenderWindow__getSize__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::getSize();
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::getSize(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1400,8 +1400,8 @@ void test__sf__RenderWindow__getSize__leakignore() {
}
void test__sf__Window__setSize__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setSize(arg1);
int x = 1;
if (cond) { x=100; sf::Window::setSize(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1419,8 +1419,8 @@ void test__sf__Window__setSize__arg1__notuninit() {
}
void test__sf__RenderWindow__setSize__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setSize(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setSize(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1438,8 +1438,8 @@ void test__sf__RenderWindow__setSize__arg1__notuninit() {
}
void test__sf__Window__setTitle__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setTitle(arg1);
int x = 1;
if (cond) { x=100; sf::Window::setTitle(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1457,8 +1457,8 @@ void test__sf__Window__setTitle__arg1__notuninit() {
}
void test__sf__RenderWindow__setTitle__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setTitle(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setTitle(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1476,8 +1476,8 @@ void test__sf__RenderWindow__setTitle__arg1__notuninit() {
}
void test__sf__Window__setIcon__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setIcon(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; sf::Window::setIcon(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1512,8 +1512,8 @@ void test__sf__Window__setIcon__arg3__notuninit() {
}
void test__sf__RenderWindow__setIcon__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setIcon(arg1, arg2, arg3);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setIcon(arg1, arg2, arg3); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1548,8 +1548,8 @@ void test__sf__RenderWindow__setIcon__arg3__notuninit() {
}
void test__sf__Window__setVisible__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setVisible(arg1);
int x = 1;
if (cond) { x=100; sf::Window::setVisible(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1567,8 +1567,8 @@ void test__sf__Window__setVisible__arg1__notuninit() {
}
void test__sf__Window__setVerticalSyncEnabled__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setVerticalSyncEnabled(arg1);
int x = 1;
if (cond) { x=100; sf::Window::setVerticalSyncEnabled(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1586,8 +1586,8 @@ void test__sf__Window__setVerticalSyncEnabled__arg1__notuninit() {
}
void test__sf__Window__setMouseCursorVisible__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setMouseCursorVisible(arg1);
int x = 1;
if (cond) { x=100; sf::Window::setMouseCursorVisible(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1605,8 +1605,8 @@ void test__sf__Window__setMouseCursorVisible__arg1__notuninit() {
}
void test__sf__Window__setMouseCursorGrabbed__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setMouseCursorGrabbed(arg1);
int x = 1;
if (cond) { x=100; sf::Window::setMouseCursorGrabbed(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1624,8 +1624,8 @@ void test__sf__Window__setMouseCursorGrabbed__arg1__notuninit() {
}
void test__sf__Window__setKeyRepeatEnabled__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setKeyRepeatEnabled(arg1);
int x = 1;
if (cond) { x=100; sf::Window::setKeyRepeatEnabled(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1643,8 +1643,8 @@ void test__sf__Window__setKeyRepeatEnabled__arg1__notuninit() {
}
void test__sf__RenderWindow__setVisible__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setVisible(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setVisible(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1662,8 +1662,8 @@ void test__sf__RenderWindow__setVisible__arg1__notuninit() {
}
void test__sf__RenderWindow__setVerticalSyncEnabled__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setVerticalSyncEnabled(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setVerticalSyncEnabled(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1681,8 +1681,8 @@ void test__sf__RenderWindow__setVerticalSyncEnabled__arg1__notuninit() {
}
void test__sf__RenderWindow__setMouseCursorVisible__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setMouseCursorVisible(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setMouseCursorVisible(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1700,8 +1700,8 @@ void test__sf__RenderWindow__setMouseCursorVisible__arg1__notuninit() {
}
void test__sf__RenderWindow__setMouseCursorGrabbed__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setMouseCursorGrabbed(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setMouseCursorGrabbed(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1719,8 +1719,8 @@ void test__sf__RenderWindow__setMouseCursorGrabbed__arg1__notuninit() {
}
void test__sf__RenderWindow__setKeyRepeatEnabled__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setKeyRepeatEnabled(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setKeyRepeatEnabled(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1738,8 +1738,8 @@ void test__sf__RenderWindow__setKeyRepeatEnabled__arg1__notuninit() {
}
void test__sf__Window__setFramerateLimit__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setFramerateLimit(arg1);
int x = 1;
if (cond) { x=100; sf::Window::setFramerateLimit(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1757,8 +1757,8 @@ void test__sf__Window__setFramerateLimit__arg1__notuninit() {
}
void test__sf__RenderWindow__setFramerateLimit__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setFramerateLimit(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setFramerateLimit(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1776,8 +1776,8 @@ void test__sf__RenderWindow__setFramerateLimit__arg1__notuninit() {
}
void test__sf__Window__setJoystickThreshold__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::setJoystickThreshold(arg1);
int x = 1;
if (cond) { x=100; sf::Window::setJoystickThreshold(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1795,8 +1795,8 @@ void test__sf__Window__setJoystickThreshold__arg1__notuninit() {
}
void test__sf__RenderWindow__setJoystickThreshold__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::setJoystickThreshold(arg1);
int x = 1;
if (cond) { x=100; sf::RenderWindow::setJoystickThreshold(arg1); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1814,8 +1814,8 @@ void test__sf__RenderWindow__setJoystickThreshold__arg1__notuninit() {
}
void test__sf__Window__requestFocus__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::requestFocus();
int x = 1;
if (cond) { x=100; sf::Window::requestFocus(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1827,8 +1827,8 @@ void test__sf__Window__requestFocus__leakignore() {
}
void test__sf__RenderWindow__requestFocus__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::requestFocus();
int x = 1;
if (cond) { x=100; sf::RenderWindow::requestFocus(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1840,8 +1840,8 @@ void test__sf__RenderWindow__requestFocus__leakignore() {
}
void test__sf__Window__hasFocus__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::Window::hasFocus();
int x = 1;
if (cond) { x=100; result = sf::Window::hasFocus(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1858,8 +1858,8 @@ void test__sf__Window__hasFocus__leakignore() {
}
void test__sf__RenderWindow__hasFocus__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::hasFocus();
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::hasFocus(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1876,8 +1876,8 @@ void test__sf__RenderWindow__hasFocus__leakignore() {
}
void test__sf__Window__display__noreturn() {
int x = 100;
if (cond) x=1; else sf::Window::display();
int x = 1;
if (cond) { x=100; sf::Window::display(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1889,8 +1889,8 @@ void test__sf__Window__display__leakignore() {
}
void test__sf__RenderWindow__display__noreturn() {
int x = 100;
if (cond) x=1; else sf::RenderWindow::display();
int x = 1;
if (cond) { x=100; sf::RenderWindow::display(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1902,8 +1902,8 @@ void test__sf__RenderWindow__display__leakignore() {
}
void test__sf__Window__getSystemHandle__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::Window::getSystemHandle();
int x = 1;
if (cond) { x=100; result = sf::Window::getSystemHandle(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}
@ -1920,8 +1920,8 @@ void test__sf__Window__getSystemHandle__leakignore() {
}
void test__sf__RenderWindow__getSystemHandle__noreturn() {
int x = 100;
if (cond) x=1; else result = sf::RenderWindow::getSystemHandle();
int x = 1;
if (cond) { x=100; result = sf::RenderWindow::getSystemHandle(); }
// cppcheck-suppress shiftTooManyBits
x = 1 << x;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -54,7 +54,7 @@ int main(int argc, char **argv)
std::cout << "// " << argv[0] << ' ' << cfgfile << " > " << testfile << std::endl;
std::cout << "//" << std::endl;
std::cout << "// Recommended cppcheck command line:" << std::endl;
std::cout << "// $ cppcheck --enable=warning,information --inline-suppr " << testfile << std::endl;
std::cout << "// $ cppcheck --enable=warning,information --inline-suppr --platform=unix64 " << testfile << std::endl;
std::cout << "// => 'unmatched suppression' warnings are false negatives." << std::endl;
std::cout << "//" << std::endl << std::endl ;
@ -135,8 +135,8 @@ static void testfunction(const tinyxml2::XMLElement *node, const std::string &fu
if (noreturn) {
std::cout << "void test__" << replaceCharInString(functionName,':','_') << "__noreturn() {" << std::endl;
std::cout << " int x = 100;" << std::endl;
std::cout << " if (cond) x=1; else " << functionCall(functionName, useretval, -1, numberOfArgs, "") << ';' << std::endl;
std::cout << " int x = 1;" << std::endl;
std::cout << " if (cond) { x=100; " << functionCall(functionName, useretval, -1, numberOfArgs, "") << "; }" << std::endl;
std::cout << " // cppcheck-suppress shiftTooManyBits" << std::endl;
std::cout << " x = 1 << x;" << std::endl;
std::cout << "}" << std::endl << std::endl;