Commit Graph

14553 Commits

Author SHA1 Message Date
chrchr-github 2cf4b3a6f3
Fix functionConst TODO () 2023-07-24 16:26:23 +02:00
chrchr-github 101ddea1e6
Fix FP constStatement with template parameters on operator () 2023-07-21 17:33:18 +02:00
chrchr-github a6b0129725
Fix FP uninitvar with label matching variable name () 2023-07-20 10:45:44 +02:00
chrchr-github d2546d5252
Fix False positive: unreadVariable in else () 2023-07-18 21:11:03 +02:00
chrchr-github 2878c68ec0
Fix FP unknownMacro () 2023-07-18 12:16:54 +02:00
Paul Fultz II 92caa835b6
Fix 11806: FP uninitvar for reference to unitvar in ternary ?: operator () 2023-07-17 10:34:54 +02:00
chrchr-github e4827cb3df
Fix False positive when getting a span via an out argument ()
We didn't warn for the TODO even before this change.
2023-07-15 17:53:40 +02:00
chrchr-github 72212331fb
Fix False positive: uninitialized variable '*(&var) = 0' () 2023-07-14 19:14:33 +02:00
chrchr-github a4a29bfbc5
Fix FP selfInitialization after initialization of previous member from initializer list () 2023-07-14 10:33:05 +02:00
chrchr-github 48dd4dc33e
Fix FP negativeContainerIndex / wrong return value from virtual function () 2023-07-13 20:38:47 +02:00
chrchr-github 258581ce2e
Fix FP uselessOverride with macro () 2023-07-13 12:18:29 +02:00
chrchr-github c0bd9f8bbd
Fix FP duplInheritedMember - different return type () 2023-07-12 15:56:07 +02:00
Daniel Marjamäki 3508464c6d
dump: fix dump output for typedef info, file is <stdout> () 2023-07-12 11:21:59 +02:00
chrchr-github 709fec88f9
Revert "Fix FN: minsize not checked for string literal, buffer… ()
… access out of bounds not found ()"

This reverts commit 9ad18f51af.
2023-07-11 22:19:01 +02:00
chrchr-github 8d3fd88d3f
Fix FP stlcstr for string in shared_ptr copied elsewhere () 2023-07-10 15:27:33 +02:00
chrchr-github 9ad18f51af
Fix FN: minsize not checked for string literal, buffer access out of bounds not found () 2023-07-08 14:46:32 +02:00
chrchr-github 49b79b7674
Extend duplInheritedMember check to functions () 2023-07-08 12:05:19 +02:00
chrchr-github 218650dc85
Fix FP duplicateExpression with double negation () 2023-07-07 23:30:59 +02:00
chrchr-github d6d3c7b3fc
Fix , FP unreadVariable () 2023-07-07 20:18:15 +02:00
chrchr-github e73183a182
Fix FP uselessOverride with shadowed member functions ()
We should probably use `getDuplInheritedMemberFunctionsRecursive()` as
part of the `duplInheritedMember` check.
2023-07-07 20:17:58 +02:00
chrchr-github cc38ef4168
Fix FP constParameterReference / FP stlcstrConstructor / FP unknownMacro () 2023-07-07 15:54:07 +02:00
chrchr-github c738627d15
Fix uselessOverride FPs () 2023-07-07 13:18:00 +02:00
chrchr-github fa03f49d2b
Fix nullptr deref in compilePrecedence2() (II) () 2023-07-07 10:42:11 +02:00
Daniel Marjamäki 2ff9e60650
Fix (dump: add token attribute isTemplateArg) () 2023-07-05 23:12:22 +02:00
chrchr-github dde45455bf
uselessOverride: Detect code duplication in overriding function () 2023-07-05 22:58:01 +02:00
chrchr-github ee5cf0f141
Fix nullptr deref in compilePrecedence2() () 2023-07-05 22:34:25 +02:00
Daniel Marjamäki 3f832df6cb
lib/version.h: add fix version option () 2023-07-02 18:13:28 +02:00
Daniel Marjamäki 72245b1b15
xml: use version from configuration if provided () 2023-07-02 18:13:11 +02:00
chrchr-github db49687ae5
Fix getOverriddenFunction(), add test () 2023-07-01 17:23:26 +02:00
chrchr-github b99931c59c
Fix FP uselessOverride - grandchildren calling grandfather () 2023-07-01 14:11:28 +02:00
Daniel Marjamäki 96955ccfe9
Tokenizer: detect unknown macro 'if (x) MACRO }' () 2023-07-01 13:17:41 +02:00
Paul Fultz II 59a8944e30
Fix 11656: FP: containerOutOfBounds std::array () 2023-07-01 09:43:57 +02:00
chrchr-github 6d9fa6f10a
Fix FP uselessOverride - overloaded virtual member function () 2023-06-30 15:21:08 +02:00
chrchr-github e9feeef81d
Fix FPs: uselessOverride () 2023-06-29 20:46:12 +02:00
chrchr-github a40e5817bf
Fix Detect useless overriding functions () 2023-06-29 07:43:35 +02:00
chrchr-github 818ebb8d7e
Fix autovarInvalidDeallocation regression () 2023-06-29 07:42:53 +02:00
Daniel Marjamäki 1b4ec0def4
Fix (GUI: configure check level) () 2023-06-28 19:55:57 +02:00
Daniel Marjamäki 55af68aaf7
Update type for Settings::checksMaxTime. ()
It's a time offset not a size. It should not have value SIZE_MAX that
makes it ineffective (overflow in calculation of stop time).
2023-06-28 19:52:33 +02:00
chrchr-github 4f71bbe986
Detect lambda with template argument () 2023-06-27 16:19:12 +02:00
chrchr-github 0a72cd3b72
Fix debug: simplifyUsing: unmatched body end () 2023-06-27 15:45:25 +02:00
chrchr-github e063656173
checkLibraryCheckType: handle global scope operator / Fix FN unreadVariable () 2023-06-27 14:28:14 +02:00
Paul Fultz II 63b7e6a283
Fix 11088: False positive: Array index out of bounds (function pointer parameter is array) () 2023-06-27 10:44:11 +02:00
Anton Lindqvist 4ebb8eaf0c
Ignore zero valued enum entries from badBitmaskCheck ()
Usage of zero valued enum entries can be used for documenting purposes
and should be ignored just like zeroes expanded from macros.
2023-06-26 10:43:20 +02:00
chrchr-github 7507d400de
Fix regression: wrong array size () 2023-06-26 06:51:01 +02:00
chrchr-github 9dc38f80c0
Fix FP functionConst with template function () 2023-06-25 20:38:54 +02:00
Paul Fultz II a2ee32695f
Fix 11530: FP arrayIndexOutOfBounds with array of functions () 2023-06-25 20:38:44 +02:00
Paul Fultz II 4f466a5961
Fix 11505: FP zerodivcond with modulo () 2023-06-25 20:38:32 +02:00
chrchr-github 9b892f3239
Partial fix for Handle lambda return types () 2023-06-25 12:01:59 +02:00
Daniel Marjamäki 87c2b8df04
Tokenizer: dumpfile will say if type token is _Atomic () 2023-06-25 11:22:30 +02:00
Paul Fultz II 60321edd0d
Fix 11784: FP arrayIndexOutOfBounds when increment is counted twice () 2023-06-24 20:08:55 +02:00