Commit Graph

25467 Commits

Author SHA1 Message Date
Oliver Stöneberg 4af8734c29
release-windows.yml: disabled some unnecessary PCRE build options () 2022-02-02 13:00:54 +01:00
chrchr-github 2b13a27140
Fix FP uninitdata - writing pointer to stream () 2022-02-02 12:24:32 +01:00
Oliver Stöneberg d928b57829
cache remaining Qt installations in CI () 2022-02-01 17:26:52 +01:00
Oliver Stöneberg d6ae089ca5
fixed most of the Qt deprecation warnings () 2022-02-01 17:26:16 +01:00
shaneasd 4127885282
improve noConstructor message () 2022-02-01 17:24:26 +01:00
Oliver Stöneberg 8f7770f512
added an include-what-you-use GitHub Action () 2022-02-01 17:19:19 +01:00
chrchr-github 0807924d32
Fix FP passedByValue for unions / FN passedByValue for array members () 2022-02-01 17:17:08 +01:00
chrchr-github 127b3bb1c4
Fix FP unreadVariable caused by invalid template injection () 2022-02-01 17:15:27 +01:00
Oliver Stöneberg 842f2b2da7
use the latest clang and -O2 for sanitizer jobs () 2022-01-29 20:44:26 +01:00
Oliver Stöneberg 5ef3a41dc9
cache Qt installation in Windows CI jobs ()
* CI-windows.yml: cache Qt installation

* release-windows.yml: store Qt version in env

* release-windows.yml: cache Qt installation
2022-01-28 19:44:39 +01:00
Oliver Stöneberg a03d754d19
more copyright fixes () 2022-01-28 18:30:12 +01:00
Daniel Marjamäki 637aca8d59 Fixed (False positive: shadow variable in static method) 2022-01-28 16:03:06 +01:00
Oliver Stöneberg 38420c8ecf
added some more missing copyright headers () 2022-01-28 15:56:11 +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
Oliver Stöneberg 8764110562
donate-cpu-server.py: added daca errors to important errors in overview () 2022-01-27 17:54:44 +01:00
Oliver Stöneberg a2a9c90142
added some missing copyright headers () 2022-01-26 19:02:20 +01:00
Rikard Falkeborn d105f3b05f
Minor improvements to package selection in test-my-pr/donate-cpu () 2022-01-26 11:36:58 +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
orbitcowboy 81a25c0036 std.cfg: Added support for std::binary_search 2022-01-25 13:07:49 +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
orbitcowboy 87b7243a9f windows.cfg: Added support for _stricmp-functions 2022-01-25 08:28:27 +01:00
Oliver Stöneberg 7d26cb68d9
CI-unixish.yml: Use Qt version provided by the distro () 2022-01-24 21:55:48 +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
Oliver Stöneberg 8179226b18
astutils.cpp: optimized visitAstNodesGeneric() a bit more by avoiding unnecessary checks and std::stack usage () 2022-01-24 21:44:09 +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
Oliver Stöneberg be73eb3c7c
donate-cpu-server.py: added links to some important errors to overview () 2022-01-21 15:46:29 +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
Daniel Marjamäki ebd1fbbfd8 cert: improved check for int31-c 2022-01-20 21:09:39 +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
orbitcowboy 19f605c7e5 wxwidgets.cfg: Fixed wrong default argument 2022-01-19 16:42:22 +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