Commit Graph

22640 Commits

Author SHA1 Message Date
Oliver Stöneberg 1af959af2c
fixed -Wextra-semi-stmt Clang warnings (#2553)
* fixed -Wextra-semi-stmt Clang warnings

* adjusted REDIRECT macro to require a semicolon

* testmathlib.cpp: rolled back accidental change
2020-04-21 17:27:51 +02:00
Daniel Marjamäki c60652630f manual: cleaned up chapter about bug hunting 2020-04-21 08:39:23 +02:00
Daniel Marjamäki bda73600e0 Tokenizer: Improved removal of unused template (#9588) 2020-04-20 20:48:22 +02:00
Daniel Marjamäki 7921aa891a Thank you Z3 2020-04-20 20:34:47 +02:00
Daniel Marjamäki da6e0308c5 Fixed #9195 (False positive: shadowFunction when constructor is shadowed) 2020-04-20 18:02:10 +02:00
Daniel Marjamäki e93959186e AUTHORS: Added Zorgovskiy 2020-04-20 10:43:21 +02:00
Daniel Marjamäki 86b707607c manual: describe bug hunting better 2020-04-20 10:40:39 +02:00
Zorgovskiy 08fc956990
Fixes issue #9664 (#2614) 2020-04-20 08:59:35 +02:00
Daniel Marjamäki 5626d22835 Tweak message. --std=posix will be deprecated in 2.05 2020-04-19 21:25:20 +02:00
Daniel Marjamäki 219180b00a Fixed #9038 (Auto type with explicit pointer symbol detected as integer) 2020-04-19 20:08:47 +02:00
Daniel Marjamäki f1f9f1f6fb AUTHORS: Add lg2de 2020-04-19 18:21:08 +02:00
Lukas Grützmacher 095fd2bc62
add command line option to select single project configuration of loaded solution (#2523)
* add command line option to select single project configuration of loaded solution

* Update cmdlineparser.cpp

* Update manual.md

* fix initialization
2020-04-19 18:19:28 +02:00
John Coffey f9074e7b21
Added a header row including the ID to the CSV report. (#2481)
Co-authored-by: John Coffey <jcoffey@gableseng.com>
2020-04-19 18:14:16 +02:00
Frank Zingsheim 559d6fc873
CMake correction to "fixed OSS-Fuzz builds and added CMake targets" (28cd5d7) (#2613) 2020-04-19 17:46:07 +02:00
Daniel Marjamäki e8bbfdbfee Fixed #9559 (Multiple checks to std::atomic are not redundant) 2020-04-19 17:29:40 +02:00
Daniel Marjamäki 3c56ccc33f Fixed #9531 (Syntax Error: AST broken, 'for' doesn't have two operands.) 2020-04-19 17:00:22 +02:00
amai2012 3eced58301
Limit IRC action to upstrream repo 2020-04-19 11:44:22 +02:00
amai2012 594281c73a Improve specification of version attributes 2020-04-19 11:30:04 +02:00
amai2012 6c9681fd6b Use choice for severity attribute 2020-04-19 11:24:14 +02:00
amai2012 12aa8b0e65 Run dmake 2020-04-19 11:17:59 +02:00
amai2012 582f33ea5e
Create coverage data with HAVE_RULES=yes (#2612) 2020-04-19 11:04:02 +02:00
amai2012 c837e4ba12
Implement IRC notification (#2609)
Notify #cppcheck channel on freenode on various events including push and pull request
2020-04-19 10:52:19 +02:00
amai2012 67a70ee228
CI builds now support RULES (#2608)
For Windows the PCRE library has to be built.
On ubuntu and macos the pre-installed library is being used.
2020-04-19 10:46:51 +02:00
Paul Fultz II e2efb338b6
Fix issue 9678: False positive: generic valueflow forward analysis (#2611) 2020-04-19 08:28:07 +02:00
Daniel Marjamäki 54978847c5 Fixed #8916 (FP: followVar does not seem to handle non-const method call properly) 2020-04-18 19:54:55 +02:00
Daniel Marjamäki de53f63f76 Fixed #9665 (Tokenizer::setVarId: for loop variables) 2020-04-18 12:08:53 +02:00
amai2012 13d88d7132 Add ..\externals to include path 2020-04-18 11:03:26 +02:00
Daniel Marjamäki e41a06772d AUTHORS: Add michaelgruner 2020-04-18 09:39:27 +02:00
Daniel Marjamäki 4ba2aa82bb astyle formatting
[ci skip]
2020-04-18 09:38:23 +02:00
Carl Michael Grüner Monzón 7c93f51885
Consider pre{inc,dec}rements on assert checks (#2605)
* Consider pre{inc,dec}rements on assert checks

* Simplify code by using new AST APIs

* Fix assert test with invalid syntax
2020-04-18 09:26:24 +02:00
Paul Fultz II 453a69dd8c
Fix issue 9677: False positive: returning pointer to oject that will not be invalid (#2607)
* Fix issue 9677: False positive: returning pointer to oject that will not be invalid

* Formatting
2020-04-18 09:23:10 +02:00
Daniel Marjamäki aa1bbf2e62 Fixed #9679 (False positive: use this after free (lambda not executed directly)) 2020-04-17 20:20:45 +02:00
amai2012 cd13798b6c
GitHub action: Build Windows GUI (#2606)
Add Windows x64 GUI build. Provide artifacts for GUI and CLI binaries including 3rd party components.
2020-04-17 11:57:53 +02:00
amai2012 ae5cbc8048
Rename workflow 2020-04-16 21:37:32 +02:00
amai2012 6ccce18ad8
GitHub action: add Windows CLI build (#2604)
Build and run tests on Windows x64
2020-04-16 21:19:57 +02:00
Daniel Marjamäki 75a369d217 cppcheckdata: Set Function.nestedIn attribute 2020-04-16 12:25:03 +02:00
Daniel Marjamäki e4bea02cad Fixed #7578 (varid not set for 'pointer to array' member variable in method) 2020-04-15 20:56:21 +02:00
Daniel Marjamäki 266c8d2c09 Remove temporary daca bailouts 2020-04-15 19:54:56 +02:00
orbitcowboy ce8c94390f wxwidgets.cfg: Added support for more interfaces. 2020-04-15 17:11:08 +02:00
amai2012 e35d678c28 Rename script file 2020-04-15 12:13:02 +02:00
Paul Fultz II 985c82730e
Add regression test for 9573: ValueFlow: Wrong tracking of value in function call (#2603) 2020-04-15 08:09:36 +02:00
amai2012 3be79aee98
Cure invalid constant
https://lgtm.com/projects/g/danmar/cppcheck?mode=list poined out this "implicit string concatenation"
2020-04-14 15:47:44 +02:00
orbitcowboy 36b4a5566a wxwidgets.cfg: Added support for more macros and constants 2020-04-14 08:25:28 +02:00
Daniel Marjamäki 98be091d80 Fixed typedef simplification for array of function pointers 2020-04-13 16:28:01 +02:00
Daniel Marjamäki 9ccf068393 astyle formatting
[ci skip]
2020-04-13 13:48:05 +02:00
Oliver Stöneberg 2c1e36e63e
cleaned up includes based on include-what-you-use (#2600)
* cleaned up includes based on include-what-you-use

* check.h: trying to work around Visual Studio 2012 bug

* fixed Visual Studio compilation
2020-04-13 13:44:48 +02:00
Daniel Marjamäki 5c02eea0b6 AUTHORS: add shaneasd 2020-04-13 13:40:20 +02:00
Daniel Marjamäki 0747bc7ba3 Clang import; Ensure Function::arg is set 2020-04-13 13:37:34 +02:00
Daniel Marjamäki e1543587e0 Clang import; Bailout if clang reports error message 2020-04-13 12:52:24 +02:00
Daniel Marjamäki 2f5e585e59 astyle formatting
[ci skip]
2020-04-13 12:52:00 +02:00