Commit Graph

18944 Commits

Author SHA1 Message Date
amai2012 19e979315f
Correct detection of Microsoft extensions in MathLib::isValidIntegerSuffix. Remove public overloaded implementation which was not used outside mathlib.cpp. (#1531) 2018-12-20 12:20:31 +01:00
amai2012 0f4eac657d Make script less verbose 2018-12-19 22:18:24 +01:00
IOBYTE c31331d085 template simplifier: fix explicit instantiation with types starting with const and ending in * and &. (#1530) 2018-12-19 21:59:59 +01:00
Sebastian f8b8597a9b
windows.cfg: Add support for CreateFileA and CreateFileW (#1529)
References:
https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-createfilea
https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-createfilew
2018-12-19 20:20:05 +01:00
Daniel Marjamäki e2c433a0f8 Fixed #8914 (False positive with unary_function argument) 2018-12-19 19:43:05 +01:00
orbitcowboy ac15c56f49 wxwidgets.cfg: Added support for some missing constants from wx/image.h 2018-12-19 16:55:03 +01:00
orbitcowboy 5b23f21d7f wxwidgets.cfg: Added support for some missing constants from wx/dataview.h 2018-12-19 16:43:46 +01:00
orbitcowboy a4042cc2ef wxwidgets.cfg: Reordered defines, there are no functional change. 2018-12-19 16:41:26 +01:00
orbitcowboy e95d2c968b wxwidgets.cfg: Added support for some missing constants from wx/gauge.h 2018-12-19 16:39:48 +01:00
orbitcowboy e860bc7354 wxwidgets.cfg: Added support for some missing constants from wx/propdlg.h 2018-12-19 16:35:47 +01:00
orbitcowboy 9ed0d03081 wxwidgets.cfg: Added support for some constants from wx/font.h 2018-12-19 16:33:35 +01:00
orbitcowboy 985994f609 wxwidgets.cfg: Added support for some constants from wx/propdlg.h 2018-12-19 16:15:51 +01:00
orbitcowboy f0a365cfdc wxwidgets.cfg: Added support for some constants from wx/utils.h 2018-12-19 16:10:57 +01:00
orbitcowboy 832fb5fe76 wxwidgets.cfg: Added support for some constants from wx/timer.h 2018-12-19 16:06:28 +01:00
orbitcowboy f0eefd69d6 wxwidgets.cfg: Added support for some constants from wx/txtctrl.h 2018-12-19 16:04:36 +01:00
orbitcowboy 23eb8cdbc8 wxwidgets.cfg: Added support for constants from wx/anybutton.h 2018-12-19 15:54:01 +01:00
orbitcowboy a151f313e3 wxwidgets.cfg: Added support for constants from wx/anybutton.h 2018-12-19 15:33:54 +01:00
orbitcowboy ce0ee71b31 wxwidgets.cfg: Added support for constants from wx/filedlg.h 2018-12-19 15:29:01 +01:00
orbitcowboy c3d44b27bd wxwidgets.cfg: Added support for wxWINDOW_STYLE_MASK. 2018-12-19 15:19:42 +01:00
orbitcowboy fdd00a148a wxwidgets.cfg: Added support for more definitions from wx/defs.h. 2018-12-19 15:16:58 +01:00
amai2012 378ffed37e Address compiler warning 2018-12-19 14:39:04 +01:00
PKEuS 34874dd94f Optimization: Removed unnecessary calls to simplifyPath(). The Caller should do this, and our callers (mainly the test suite) more or less do so, as they all supply just dummy paths ("test.cpp") 2018-12-18 20:33:45 +01:00
orbitcowboy b555572f9a wxwidgets.cfg: Added support for constants from wx/valnum.h 2018-12-18 15:40:23 +01:00
orbitcowboy 13c8707b96 wxwidgets.cfg: Added support for DECLARE_APP(app) macro. 2018-12-18 15:34:25 +01:00
orbitcowboy 6768c83155 wxwidgets.cfg: Added support for constants from wx/cmdline.h 2018-12-18 15:31:32 +01:00
orbitcowboy ac7ebd6044 wxwidgets.cfg: Improved support for macros from wx/defs.h 2018-12-18 15:19:04 +01:00
Daniel Marjamäki bc34f0239d Disable the subfunction value flow analysis. It does not work well and needs to be rewritten. There are false positives. 2018-12-18 14:36:49 +01:00
orbitcowboy c58385f58a wxwidgets.cfg: Improved support for more wxWidgets types. 2018-12-18 09:22:41 +01:00
orbitcowboy c080b2750e wxwidgets.cfg: Added support for WXDLLIMPEXP_FWD_CORE. 2018-12-18 08:20:22 +01:00
Paul Fultz II 34330b51d1 Fix issue 8905: Condition 'a==0' is always false
This fixes the FP in:

```cpp
void f(const int a[]){ if (a == 0){} }
```
2018-12-18 08:16:43 +01:00
IOBYTE 1cba78090c Fix const anonymous struct. (#1527) 2018-12-18 08:15:12 +01:00
Daniel Marjamäki 0f63874c62 Take back the whole program analysis for null pointers and uninitialized variables 2018-12-18 07:56:33 +01:00
Daniel Marjamäki 643ddd4caa Code cleanup 2018-12-17 18:54:32 +01:00
Daniel Marjamäki 3b328f9187 CheckMemoryLeak: Cleanup the old memory leaks check 2018-12-17 18:12:50 +01:00
Daniel Marjamäki f118c22bb6 CheckUnusedVar: Cleanup checker 2018-12-17 17:48:45 +01:00
Daniel Marjamäki cf09fd6274 CheckUnusedVar: Code cleanup 2018-12-17 17:28:15 +01:00
orbitcowboy 9290122c2f wxwidgets.cfg: Added support for WX_DEFINE_ARRAY_PTR. 2018-12-17 16:58:56 +01:00
orbitcowboy 0221ec3fc2 wxwidgets.cfg: Added some wxLocal defintions. 2018-12-17 16:50:21 +01:00
Daniel Marjamäki fe38e256cc Fixed #7907 (FN: redundant assignment inside switchcase, overwritten by assignment outside of switch) 2018-12-17 16:10:47 +01:00
orbitcowboy 4558fd5a2c Merge branch 'master' of https://github.com/danmar/cppcheck 2018-12-17 15:49:03 +01:00
orbitcowboy a382657128 wxwidgets.cfg: Improved support for some defintions from wxGrid. 2018-12-17 15:48:26 +01:00
Daniel Marjamäki bf4e850e11 Fixed #4475 (New check: struct member is assigned a value that is not read) 2018-12-17 15:40:15 +01:00
Daniel Marjamäki 858d9a18a7 Fixed #3857 (false negative: (style) Variable 'var' is assigned a value that is never used) 2018-12-17 15:16:47 +01:00
orbitcowboy 8195a76035 wxwidgets.cfg: Added support for definitions from wx/defs.h 2018-12-17 14:08:53 +01:00
orbitcowboy 0fc62128f6 wxwidgets.cfg: Added support for definitions from wx/colour.h 2018-12-17 13:56:34 +01:00
orbitcowboy 04ffba3a8b wxwidgets.cfg: Added support for definitions from wx/artprov.h 2018-12-17 13:53:01 +01:00
orbitcowboy 548e529bfc wxwidgets.cfg: Added support for more constants from wx/defs.h. 2018-12-17 13:35:33 +01:00
orbitcowboy aba57e46c2 wxwidgets.cfg: Improved support for defines from wxDialog. 2018-12-17 13:19:58 +01:00
orbitcowboy ad29421c33 wxwidgets.cfg: EVT_SASH_DRAGGED_RANGE takes three arguments. 2018-12-17 09:23:50 +01:00
orbitcowboy 3473b6e5a8 wxwidgets.cfg: EVT_GRID_CMD_CELL_CHANGED requires two arguments. 2018-12-17 09:09:59 +01:00