Commit Graph

11271 Commits

Author SHA1 Message Date
Daniel Marjamäki 637aca8d59 Fixed (False positive: shadow variable in static method) 2022-01-28 16:03:06 +01:00
chrchr-github d55010c441
Fix FP uninitMemberVar (inconclusive) () 2022-01-28 15:05:13 +01:00
chrchr-github c74eeb6bad
Fix FN uninitVar with std::array () 2022-01-27 19:45:27 +01:00
chrchr-github f429245da2
Fix FP format string requires unsigned long (for sizeof(var)) () 2022-01-27 19:43:52 +01:00
Oliver Stöneberg 171da2e6f9
avoid dependency on transitive includes - based on include-what-you-use () 2022-01-27 19:03:20 +01:00
Paul Fultz II 40147c1e4b
Fix 10719: Crash in valueFlowIterators() ()
* Fix 10719: Crash in valueFlowIterators()

* Format
2022-01-26 06:42:41 +01:00
Paul Fultz II 1a949c00b0
Fix 10723: Assertion 'tok && tok->exprId() > 0 && "Missing expr id for symbolic value"' in valueFlowSmartPointer() ()
* Fix 10723:  Assertion 'tok && tok->exprId() > 0 && "Missing expr id for symbolic value"' in valueFlowSmartPointer()

* Format
2022-01-26 06:28:13 +01:00
chrchr-github c132235a76
Add test for ()
* Fix  False positive: uninitStructMember

* Fix  False positive: unreadVariable alias

* Use Token::Match

* Add test for 
2022-01-25 22:05:54 +01:00
orbitcowboy cf6d30f358 Merge branch 'main' of https://github.com/danmar/cppcheck into main 2022-01-25 13:08:25 +01:00
orbitcowboy 00997283cb Code formatting 2022-01-25 13:08:05 +01:00
chrchr-github f49cfcd23c
Fix False positive: uninitStructMember () 2022-01-25 12:14:20 +01:00
chrchr-github ea81ce933e
Fix FP invalidFunctionArg with resize() () 2022-01-25 12:13:49 +01:00
chrchr-github d05e43ce15
Fix False positive: unreadVariable alias () 2022-01-24 21:52:45 +01:00
chrchr-github 9d6e5c2a05
Fix uninitMemberVar - member initialized via function call () 2022-01-24 21:52:00 +01:00
chrchr-github 158f3d494e
Fix false positive: redundantInitialization with std::shared_ptr () 2022-01-24 21:50:50 +01:00
chrchr-github d64dadcd31
Fix Crash in CheckClass::checkConstFunc() () 2022-01-24 21:50:01 +01:00
chrchr-github b491fcc489
Add test cases for , () 2022-01-24 15:06:40 +01:00
Paul Fultz II 01e14a12f1
Fix 10755: Assertion "!maxValue->isKnown()" from valueFlowInferCondition ()
* Fix 10755: Assertion "!maxValue->isKnown()" from valueFlowInferCondition

* Format
2022-01-22 12:25:20 +01:00
Paul Fultz II 8b1ed9cbe1
Another fix for 10739: internalAstError with decltype ()
* Another fix for 10739: internalAstError with decltype

* Format
2022-01-22 07:22:57 +01:00
chrchr-github b23ca879ed
Fix FP functionConst with overloaded operator[] [inconclusive] () 2022-01-21 20:40:10 +01:00
Paul Fultz II a7dbd288c4
Fix 10738: FP knownEmptyContainer with auto reference ()
* Fix 10738: FP knownEmptyContainer with auto reference

* Format
2022-01-21 09:56:55 +01:00
Paul Fultz II 6c2b1f093d
Another fix for 10728: Crash in CheckStl::checkDereferenceInvalidIterator2() ()
* Another fix for 10728: Crash in CheckStl::checkDereferenceInvalidIterator2()

* Format
2022-01-21 09:56:41 +01:00
Paul Fultz II 0737cc4d8c
Fix 10708: Assertion "!maxValue->isKnown()" from valueFlowInferCondition ()
* Fix 10708: Assertion "!maxValue->isKnown()" from valueFlowInferCondition

* Format
2022-01-21 09:56:24 +01:00
Paul Fultz II 57b50e4b00
Fix 10739: internalAstError with decltype () 2022-01-20 21:36:48 +01:00
chrchr-github 7f9ef8c321
Add test cases for , , ()
* Add test case for  and 

* Add test case for ##9256
2022-01-20 16:15:38 +01:00
chrchr-github 4d44d0c079
Fix FP deallocuse after auto_ptr () 2022-01-19 21:39:45 +01:00
chrchr-github 089ca67d78
Use TODO_ASSERT () 2022-01-18 22:03:52 +01:00
Oliver Stöneberg 55ff684f34
added unusedFunction self check to CI / cleanups () 2022-01-18 22:02:25 +01:00
Rikard Falkeborn e106654993
Fix : Uncaughty exception in CheckMemoryLeak::getReallocationType() () 2022-01-18 20:50:06 +01:00
chrchr-github 1e2863cd33
Fix FP functionConst with aggregate initialization [inconclusive] () 2022-01-18 20:49:35 +01:00
chrchr-github ca2e0ca287
Fix FP functionConst with extra parentheses () 2022-01-18 20:21:25 +01:00
chrchr-github cb5a50c6a7
Fix FN passedByValue with QString () 2022-01-18 20:17:05 +01:00
Paul Fultz II 7b793af451
Fix 10728: Crash in CheckStl::checkDereferenceInvalidIterator2 ()
* Fix 10728: Crash in CheckStl::checkDereferenceInvalidIterator2

* Format
2022-01-18 14:48:02 +01:00
orbitcowboy b6c010c17e Added regression test for Ticket 7981. 2022-01-18 13:09:02 +01:00
chrchr-github c2fc4973ad
Fix False positive for explicit one-argument constructor if co… () 2022-01-17 20:51:23 +01:00
chrchr-github 9c56e7ea8d
Fix FN uninitialized variable usage not detected () 2022-01-17 20:35:30 +01:00
chrchr-github 605fd7cf98
Fix FP functionConst (inconclusive) with nested members () 2022-01-17 20:33:32 +01:00
Paul Fultz II 7406dd8c94
Fix 10721: Crash in Tokenizer::simplifyTokenList1 () 2022-01-16 12:46:20 +01:00
Paul Fultz II abb0563cef
Fix 10726: Crash in CheckExceptionSafety::checkRethrowCopy () 2022-01-16 12:35:51 +01:00
Paul Fultz II 89bc226738
Fix 10718: Crash in CheckOther::checkDuplicateExpression () 2022-01-16 12:34:20 +01:00
Paul Fultz II 4af98f21d6
Fix 10588: crash () 2022-01-16 12:33:31 +01:00
Paul Fultz II 9220c8175d
Remove todo assert () 2022-01-16 12:32:46 +01:00
Paul Fultz II 55ff010df3
Fix 10717: Crash in SymbolDatabase::setValueTypeInTokenList ()
* Fix 10717: Crash in SymbolDatabase::setValueTypeInTokenList

* Format
2022-01-15 07:56:56 +01:00
Paul Fultz II 0b1cd8626d
Fix 10664: Crash in Token::linkAt ()
* Fix 10664: Crash in Token::linkAt

* Format
2022-01-14 23:51:01 +01:00
Paul Fultz II 2b6a89e30e
Fix 10716: Crash in CheckStl::checkDereferenceInvalidIterator2 ()
* Fix 10716: Crash in CheckStl::checkDereferenceInvalidIterator2

* Format
2022-01-14 23:50:33 +01:00
chrchr-github 781a145680
Fix regression: functionStatic related to overload resolution () 2022-01-14 17:55:50 +01:00
chrchr-github 12abf85d1d
Add test case for , use TODO_ASSERT, enable test case ()
* Add test case for , use TODO_ASSERT, enable test case

* Comment
2022-01-13 19:52:02 +01:00
Armin Müller 5a05631c84
Typos found by running "codespell" () 2022-01-13 17:24:26 +01:00
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