Commit Graph

25493 Commits

Author SHA1 Message Date
chrchr-github 95dc05b21d
Fix false negative: (style) Unused variable: std::pair () 2022-01-13 08:05:05 +01:00
chrchr-github af0a585a70
Partial fix for False negative: stlOutOfBounds, cast () 2022-01-13 08:03:24 +01:00
Oliver Stöneberg 34317f86ab
reduce.py: several improvements () 2022-01-13 07:52:47 +01:00
Oliver Stöneberg 4f508c93c4
reduce.py: improved --segfault / added detection of "hang" caused by reduced code / cleanups () 2022-01-12 22:26:32 +01:00
chrchr-github 59837be152
Remove redundant type check () 2022-01-12 22:25:37 +01:00
Kuletco bd2c4bb0a6
Update zh_CN translation () 2022-01-12 22:10:05 +01:00
Maurice Gilden 44b182c9a7
Improve definitions for googletest ASSERT_* macros ()
This avoids assertWithSideEffect and follows more closely what the real macros
are doing, similar to the ones in boost.cfg and cppunit.cfg.
2022-01-12 22:09:17 +01:00
afestini 423c4f8207
Htmlreport changes () 2022-01-12 22:07:12 +01:00
chrchr-github 7aa0ec3e95
Fix regression: unreadVariable for trivial initialization () 2022-01-12 22:06:03 +01:00
chrchr-github 1b89c998f5
Fix FP returnTempReference with overloaded operator+= () 2022-01-12 22:05:30 +01:00
Paul Fultz II fa651272f0
Fix 10001: Syntax error on valid C++ code () 2022-01-12 22:04:28 +01:00
chrchr-github e4c8798974
Fix FP containerOutOfBounds with QList [inconclusive] () 2022-01-12 22:03:57 +01:00
chrchr-github 1670805a8d
Fix FP unreadVariable with std::shared_lock () 2022-01-10 07:43:02 +01:00
chrchr-github df3da38483
Fix Unused QString / unused std::array / unused variable with c++11 braced initializer not detected () 2022-01-10 07:36:49 +01:00
Paul Fultz II 4ef20f8f1e
Fix 10683: FP danglingTemporaryLifetime with pointer to vector () 2022-01-10 07:34:26 +01:00
Paul Fultz II fe7595cd9d
Fix 10677: crash during valueFlowInferCondition () 2022-01-09 22:43:08 +01:00
orbitcowboy 4a3a287248 Improved test case for ticket 1586 2022-01-08 18:39:19 +01:00
orbitcowboy 89e60af516 Ticket - Added regression test 2022-01-08 17:45:45 +01:00
Paul Fultz II 0c9eb5d190
Fix 10681: FP ctuuninitvar with array member () 2022-01-08 10:47:28 +01:00
chrchr-github 635c09643d
Add tests for , () 2022-01-07 12:34:57 +01:00
shaneasd 8f7996211b
remove nullScope from TestSymbolDatabase () 2022-01-06 15:23:43 +01:00
chrchr-github 9fda86eb6d
Fix () 2022-01-06 15:21:05 +01:00
chrchr-github 6c55f9cf88
Add test for () 2022-01-06 15:19:10 +01:00
Michael Løiten 303b85c043
Fix deadlink in documentation () 2022-01-06 00:09:40 +01:00
Paul Fultz II feb5c58636
Remove appveyor () 2022-01-05 11:23:40 +01:00
Paul Fultz II 1682344a80
Fix 10678: FP nullPointerArithmeticRedundantCheck in while loop () 2022-01-04 21:19:45 +01:00
chrchr-github fe077fc141
Add test for () 2022-01-04 20:50:00 +01:00
Oliver Stöneberg 0ba9cb4e64
fixed some unusedFunction warnings () 2022-01-04 15:48:08 +01:00
Oliver Stöneberg 4b5fba19bd
added CMake option CPPCHK_GLIBCXX_DEBUG to make usage of _GLIBCXX_DEBUG in Debug build configurable () 2022-01-04 15:45:36 +01:00
chrchr-github 184ef4e739
Fix MSVC build () 2022-01-04 15:38:37 +01:00
Oliver Stöneberg 8502584dc1
avoid duplicated downloads in CI by caching files / aligned PCRE and Z3 versions in dev and release builds () 2022-01-04 11:16:28 +01:00
chrchr-github c05e2cc6c4
Fix False positive: objectIndex () 2022-01-04 10:37:16 +01:00
Paul Fultz II 119ec0582a
Fix 10676: FP: Array index -1 is out of bounds. () 2022-01-04 10:21:54 +01:00
Daniel Marjamäki 3524a0a3eb exprengine: reduce max buffer size to int_max 2022-01-03 20:55:46 +01:00
Daniel Marjamäki 0cba2962ba exprengine: fix appveyor failure 2022-01-03 20:39:15 +01:00
Daniel Marjamäki d53352b2c2 exprengine: use MAX_BUFFER_SIZE constant 2022-01-03 19:55:44 +01:00
Daniel Marjamäki 33446d0c75 exprengine; add CONTRACT #define so contract-handling can be enabled/disabled 2022-01-03 17:10:18 +01:00
Daniel Marjamäki 33305ef4ec exprengine: better checking for uninit variables 2022-01-03 12:47:13 +01:00
Oliver Stöneberg 6739995e79
removed or annotated some code which is only used in test code () 2022-01-03 12:40:20 +01:00
guillaume-uH57J9 dfd22919bc
donate_cpu_lib.py: fix callstack capture, fix dependency check ()
* donate_cpu_lib.py: fix callstack capture, fix dependency check

check_requirements: verify that module psutil is available. 
scan_package: collect crash callstack regardless of cppcheck_path and cppcheck version

* donate_cpu_lib.pu: remove debug code

* donate_cpu_lib.py: add parameter capture_callstack
2022-01-02 22:16:00 +01:00
Paul Fultz II 01a8890d6d
Fix 9760: False positive: constParameter on parameter used to take non-const pointer via array decaying () 2022-01-02 08:15:38 +01:00
Paul Fultz II 71a44395c8
Fix 10659: FP knownConditionTrueFalse - C++17 structured binding () 2022-01-02 08:14:50 +01:00
KenPatrickLehrmann af289c8357
Handle (&foo)-> in isVariableChanged () 2022-01-02 08:14:10 +01:00
Armin Müller d5daba331f
Typos found by running "codespell" () 2022-01-02 08:12:08 +01:00
Paul Fultz II ccea1da33a
Add missing valueflow attributes to cppcheckdata.py () 2022-01-02 08:11:36 +01:00
Paul Fultz II 50862d1ace
Fix 10665: Crash in ExpressionAnalyzer () 2022-01-02 08:09:23 +01:00
Paul Fultz II 4b04c86249
Add regression for 9917: false positive: bitwiseOnBoolean when lhs is non-boolean () 2022-01-02 08:08:28 +01:00
Paul Fultz II 0c952ca05d
Fix 10223: ValueFlow; known value for a volatile variable () 2022-01-01 23:15:14 +01:00
Paul Fultz II 7bf0ca8d00
Fix 10672: crash: CheckAutoVariables () 2022-01-01 00:14:36 +01:00
chrchr-github 922e27de4c
Fix FP Same expression on both sides of '||' () 2021-12-31 08:24:05 +01:00