Daniel Marjamäki
ec4d68e231
Modernize: use enum class
2019-07-17 10:43:18 +02:00
Daniel Marjamäki
2afd5f5dd0
Modernize: Use enum class
2019-07-17 10:39:06 +02:00
Daniel Marjamäki
b15e6801a4
Replace 'unsigned' with 'nonneg' in tokenizer
2019-07-17 10:36:49 +02:00
Sebastian
64fea0d270
appveyor.yml: Add Cygwin build and tests ( #2006 )
2019-07-17 10:22:08 +02:00
Daniel Marjamäki
e9b12b1fe0
Replace 'unsigned' with 'nonneg'
2019-07-17 10:14:25 +02:00
versat
61ddda6252
run dmake
2019-07-17 10:02:28 +02:00
Daniel Marjamäki
e124b31334
Replace 'unsigned' with 'nonneg'
2019-07-17 09:11:42 +02:00
Daniel Marjamäki
c04f31a2c2
Refactoring: Use common function
2019-07-17 09:04:42 +02:00
Daniel Marjamäki
5800692fa1
Move and refactor the CheckMemoryLeak::isclass
2019-07-17 08:59:09 +02:00
Rikard Falkeborn
8513fb81d2
Fix #9206 (FP with global variable allocated in condition) ( #2007 )
2019-07-17 07:43:07 +02:00
Georgy Komarov
413a5a4865
MISRA: Fix rules suppression, add tests ( #1996 )
...
* MISRA: Fix suppressed rules line numbers
Line numbers represented as strings in lxml ETree, but we use it in
integer comparison later.
* MISRA: Use standard library function instead file_prefix.
* MISRA: Use pytest's capsys for capturing, add suppressions tests.
* travis.yml: Update pytest version
2019-07-16 22:32:41 +02:00
Daniel Marjamäki
b3688f22e8
Unknown macro: Detect and warn about unknown macro before throw/return
2019-07-16 20:32:46 +02:00
Daniel Marjamäki
7b48fb6b32
Revert "cfg: Add python macros to fix daca crashes"
...
This reverts commit 760586dd0a
.
2019-07-16 16:52:48 +02:00
orbitcowboy
d17ab72e3c
wxwidgets.cfg: Added support for wxGrid::XYToCell().
2019-07-16 16:49:42 +02:00
versat
ab227cbf6e
sqlite3.cfg: Add more functions reported as missing by daca@home
2019-07-16 16:21:05 +02:00
versat
8e00f4ddfb
sqlite3.cfg: Add some functions reported as missing by daca@home
2019-07-16 14:59:33 +02:00
Sebastian
820ffdeee8
gtk.cfg: Add some macros and functions reported as missing by daca@home ( #2005 )
2019-07-16 13:42:01 +02:00
orbitcowboy
2ae5ac7dc2
windows.cfg: Removed TEXT()-macro since it is handled internally.
2019-07-16 13:40:41 +02:00
Daniel Marjamäki
760586dd0a
cfg: Add python macros to fix daca crashes
2019-07-16 13:30:59 +02:00
orbitcowboy
1f7fdb229a
windows.cfg: Added support for GetFullPathName(). Reference: https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfullpathnamea
2019-07-16 13:23:39 +02:00
orbitcowboy
f2e70f9236
wxwidgets.cfg: Added support for wxFile::ReadAll().
2019-07-16 13:14:20 +02:00
orbitcowboy
29983aac0c
windows.cfg: Added support for more platform types and some macros defined in winnt.h
2019-07-16 13:10:04 +02:00
Sebastian
7d7078f126
Makefile/dmake: Increase stack size to 8M for Cygwin builds to avoid segfaults ( #2001 )
...
* Makefile: Increase stack size to 8M for Cygwin builds to avoid segfaults
See https://github.com/danmar/cppcheck/pull/1988
and https://github.com/danmar/cppcheck/pull/1998
* dmake.cpp: Add parameter to CXXFLAGS for increased stack size in Cygwin
2019-07-16 12:14:18 +02:00
Daniel Marjamäki
b4a05a3dd0
Refactoring: Use enum class
2019-07-16 11:12:35 +02:00
Daniel Marjamäki
32eda27391
Refactoring: Use enum class
2019-07-16 10:51:26 +02:00
versat
4e89b13adf
checkio.cpp: Fix forgotten "nonneg" change which breaks build
2019-07-16 09:30:36 +02:00
Daniel Marjamäki
7a4a9eba4b
remove cast
2019-07-16 09:28:48 +02:00
Daniel Marjamäki
5a6b89100d
Removed casts
2019-07-16 09:14:44 +02:00
Daniel Marjamäki
ef73a10e30
Replace 'unsigned' with 'nonneg' in checkother
2019-07-16 09:10:10 +02:00
Daniel Marjamäki
3637c486c4
Replace 'unsigned' with 'nonneg' in checkclass
2019-07-16 09:03:45 +02:00
Daniel Marjamäki
e877683f01
Replace 'unsigned' with 'nonneg' in checkleakautovar
2019-07-16 08:54:21 +02:00
Daniel Marjamäki
c57d3e069a
Replace 'unsigned' with 'nonneg' in checkfunctions
2019-07-16 08:49:02 +02:00
Daniel Marjamäki
a038ba7dce
replace 'unsigned' with 'nonneg' in checkio
2019-07-16 08:37:26 +02:00
Daniel Marjamäki
5dc4f44091
Replace 'unsigned' with 'nonneg' in checkcondition
2019-07-16 08:21:25 +02:00
Rikard Falkeborn
e19068504d
Configure xrealloc and adjust gnu memory functions ( #2003 )
...
Remove <noreturn> tag, since the functions do not return unless there
was no error.
2019-07-16 08:12:21 +02:00
Daniel Marjamäki
1888b39314
Use 'nonneg' instead of 'unsigned' in checkbufferoverrun
2019-07-16 07:59:35 +02:00
amai2012
63fa4afa7a
GetModuleFileName might be useful w/o return code
2019-07-16 06:07:31 +02:00
Daniel Marjamäki
7e3626c84e
Travis: Check the naming conventions again
2019-07-15 20:58:07 +02:00
Daniel Marjamäki
8198bd5e8f
Rename variables in threadexecutor according to our naming convention
2019-07-15 18:45:06 +02:00
Daniel Marjamäki
96a1c6dec5
Rename errorlist=>mShowAllErrors
2019-07-15 18:31:12 +02:00
Daniel Marjamäki
a6194b81aa
Rename _errorList=>mShownErrors
2019-07-15 18:29:09 +02:00
Daniel Marjamäki
5037ad3d42
Rename _settings=>mSettings
2019-07-15 18:24:27 +02:00
Daniel Marjamäki
0fa8a51815
Rename variable _files=>mFiles
2019-07-15 18:21:52 +02:00
Daniel Marjamäki
122ae198b7
Rename errorOutput=>mErrorOutput
2019-07-15 18:16:07 +02:00
Daniel Marjamäki
876d8c9829
Rename member variable exceptionOutput=>mExceptionOutput
2019-07-15 18:11:26 +02:00
Oliver Stöneberg
4561229906
donate-cpu.py: treat signal 6 (SIGABRT) as crash as well so we get a … ( #1995 )
...
* donate-cpu.py: treat signal 6 (SIGABRT) as crash as well so we get a stack trace in the result
* donate-cpu.py: simplified returncode/signal check / also generate stack traces for SIGILL, SIGFPE, SIGBUS
* donate-cpu.py: avoid usage of "not" in if
* donate-cpu.py: do not overwrite returncode in crash handling
2019-07-15 15:37:31 +02:00
Rikard Falkeborn
dcc375ca64
Update gtk memory functions ( #2000 )
...
* Improve configuration of g_try_realloc and g_try_realloc_n
* Mark g_realloc and similar functions as realloc functions
* Remove g_new, g_new0, etc as <alloc> functions, these are defined as
macros and handled as the functions they're expanded to.
* Add tests. TODO tests will be resolved by using the library
configuration in the checker.
2019-07-15 14:51:58 +02:00
Daniel Marjamäki
5eff1b0f4a
Replace 'unsigned' with 'nonneg' in checkstl
2019-07-15 14:05:23 +02:00
Daniel Marjamäki
5bc0347fd5
Remove 'unsigned' in match compiler
2019-07-15 13:49:35 +02:00
Daniel Marjamäki
38182bf37b
Replace 'unsigned' with 'nonneg' in valueflow
2019-07-15 13:47:17 +02:00