chrchr-github
b26bfc9b4f
Use getAllocFuncInfo() ( #5176 )
2023-06-21 17:35:15 +02:00
Daniel Marjamäki
b259617f65
GUI: Update translations
2023-06-21 16:37:02 +02:00
Daniel Marjamäki
42514309d4
createrelease: minor update to selfcheck command
2023-06-21 16:36:31 +02:00
Daniel Marjamäki
f2510228cb
Fix #10847 (FP: unusedStructMember) ( #5177 )
2023-06-20 22:34:54 +02:00
chrchr-github
bb962e2bc3
Enable and mitigate readability-else-after-return ( #5175 )
2023-06-20 18:43:21 +02:00
chrchr-github
f96e3c9d84
Fix #11766 FP uninitdata with cast ( #5170 )
2023-06-20 18:06:57 +02:00
chrchr-github
78c7e3351f
Fix #11697 FP negativeContainerIndex after index is validated ( #5172 )
2023-06-20 10:55:14 +02:00
Daniel Marjamäki
e8de2aeeea
Fix #9398 (Incorrect "Overall Time" in timing info) ( #5173 )
2023-06-20 10:31:11 +02:00
Daniel Marjamäki
4f3cc168d1
CI: python 2.7 tests needs to run in a container ( #5174 )
...
Python 2.7 is not supported anymore in github actions runners.
See:
https://github.com/actions/setup-python/issues/672
2023-06-19 20:53:36 +02:00
Daniel Marjamäki
38b2c5ee3f
Fix #11777 (False positive: uninitialized variable, handling 'false ||' in valueflow) ( #5169 )
2023-06-17 21:08:22 +02:00
chrchr-github
082331c210
Fix #11770 cppcheckError for unknown macro after else ( #5163 )
2023-06-17 18:39:23 +02:00
chrchr-github
8f6b0b41e7
Simplify qt.cfg, wxwidgets.cfg ( #5166 )
2023-06-17 17:04:14 +02:00
chrchr-github
53cab34484
Fix #11769 cppcheckError for function with lambda as default parameter ( #5159 )
2023-06-17 17:03:19 +02:00
orbitcowboy
fd3befe60a
Added a regression test for FP #10681 uninitvar. ( #5168 )
...
Test case is from: https://trac.cppcheck.net/ticket/10681#comment:10
2023-06-17 15:45:28 +02:00
Paul Fultz II
d6e3182441
Fix 11721: False positive: constParameterReference with overloaded template function ( #5151 )
2023-06-17 11:31:47 +02:00
chrchr-github
7075b6e61d
Fix #11763 internalAstError caused by parameter pack simplification ( #5150 )
2023-06-17 11:31:02 +02:00
Daniel Marjamäki
9a290c959f
Fix #11776 (False positive: uninitialized variable, struct array member initialized in function) ( #5165 )
2023-06-17 10:20:20 +02:00
chrchr-github
58dd92dd1b
Merge pull request #5152 from chrchr-github/chr_Fix11189
...
Partial fix for #11189 checkLibraryNoReturn with std::function parameter
2023-06-16 23:59:17 +02:00
chrchr-github
8761e6b8fc
Merge pull request #5148 from chrchr-github/chr_Fix11764
...
Fix #11764 checkLibraryFunction/NoReturn when inheriting from container
2023-06-16 23:33:08 +02:00
chrchr-github
62dfa8877c
Merge pull request #5147 from chrchr-github/chr_astregr
...
Fix AST regression
2023-06-16 22:47:47 +02:00
chrchr-github
e31cd05ae9
Merge pull request #5129 from chrchr-github/chr_action_yield2
...
Detect container action and yield functions (2)
2023-06-16 22:47:19 +02:00
chrchr-github
3f0f9e4476
Merge pull request #5158 from chrchr-github/chr_Fix11770
...
Partial fix for #11770 cppcheckError with unknown macro
2023-06-16 22:40:56 +02:00
chrchr-github
75e0bdfdd9
Merge pull request #5164 from chrchr-github/chr_Fix11768
...
Fix #11768 FP autovarInvalidDeallocation
2023-06-16 22:40:27 +02:00
chrchr-github
1ffff8dc06
Fix #11772 top() on empty stack in TypedefSimplifier::replace() ( #5161 )
2023-06-16 19:35:01 +02:00
Daniel Marjamäki
aca6c47024
Fix #11774 (False positive: passing struct pointer to function that initialize it) ( #5162 )
2023-06-16 18:43:32 +02:00
chrchr
b41f9af2c5
Fix #11768 FP autovarInvalidDeallocation
2023-06-16 17:21:37 +02:00
PeterSchops
b689ca8d89
Update cppcheckdata.py ( #5149 )
...
* Update cppcheckdata.py
- added links to cpp-file/function that writes this part of the dump-file
- updated documentation (Added list of possible return values for a number of variables)
- added MacroUsage isKnownValue
- added ValueType reference
- added Token isBoolean
- added Token isCast
- added Token externLang
- added Token isComplex
- added Token isRestrict
- added Token isAttributeExport
- added Token originalName
- added Scope functions
- added Scope definedType
- added Function hasVirtualSpecifier
- removed Function isVirtual
- added Function isAttributeNoreturn
- added Function overriddenFunction
- added Variable isVolatile
- class Container added
- added Value movedValue
- added Value uninit
- added Value bufferSize
- removed Value inconclusive and added it to valueKind
* Update cppcheckdata.py
removed encoding from open (needed to make python 2.7 check pass) where python 2.7 should not be used anymore
* Update cppcheckdata.py after feedback
made sure that attributes I added to the class always have a value
added some missing attributes in the print
2023-06-15 20:42:58 +02:00
Daniel Marjamäki
b462d070bf
Minor tweaking of constness
2023-06-15 19:41:47 +02:00
chrchr
c02a9f403a
Fix tests
2023-06-15 19:22:19 +02:00
chrchr
39d60ca63e
Add test
2023-06-15 18:53:42 +02:00
chrchr
19d4ab7d31
Fix test
2023-06-15 18:52:52 +02:00
chrchr
9579b4509d
Partial fix for #11770 cppcheckError with unknown macro
2023-06-15 18:36:21 +02:00
Daniel Marjamäki
f934d6e5d0
Fix #11767 (False positive: uninitialized member after assignment) ( #5157 )
2023-06-15 14:42:58 +02:00
Daniel Marjamäki
d75331d00d
Fix #11435 (FP ctuOneDefinitionRuleViolation for template specialization) ( #5156 )
2023-06-15 11:43:07 +02:00
Long Radix
c033c62190
Typos and stilistic updates ( #5141 )
2023-06-14 12:30:45 +02:00
Daniel Marjamäki
9339802be3
Fix #11740 (FP syntaxError from switch in C code) ( #5153 )
2023-06-14 10:41:37 +02:00
chrchr-github
457e0ce0c8
Partial fix for #11189 checkLibraryNoReturn with std::function parameter
2023-06-13 21:48:16 +02:00
chrchr
0afc5aba78
Fix #11764 checkLibraryFunction/NoReturn when inheriting from container
2023-06-13 15:04:25 +02:00
chrchr
fad1f6b559
Fix AST regression
2023-06-13 14:32:31 +02:00
chrchr-github
6f56a9563e
Add missing rebinding trait to TaggedAllocator (complete #5015 ) ( #5146 )
2023-06-13 11:22:43 +02:00
Anton Lindqvist
09cd3a8269
Fix FP deallocuse regression ( #5144 )
...
Introduced in commit 69116c838
("Fix #11758 Regression: memleak / Fix #11746 FN:
deallocuse (#5139 )").
2023-06-11 14:11:41 +02:00
Daniel Marjamäki
f6a65afdee
Fix FP uninitStructMember when other variable is only nonzero if struct member is initialized ( #5143 )
2023-06-10 21:35:17 +02:00
Daniel Marjamäki
7840bc4c63
Execute runformat
2023-06-10 17:37:32 +02:00
chrchr-github
24b0d08753
Fix FP autoVariables ( #5107 )
...
* Fix #11732 FP autoVariables when reassigning argv
* Fix #11732 FN autoVariables with array and std::string
* Add test
* Format
* Format
* Simplify check, fix inconclusive
* Fix merge, add test
* Fix FPs
* Format
* Format
* Undo move
* Format
2023-06-10 16:28:29 +02:00
Daniel Marjamäki
1c28457d2c
ValueFlow: Fix uninitvar false positive after initialization '*((int*)&x) = ..' ( #5142 )
2023-06-10 15:22:17 +02:00
Daniel Marjamäki
3c8caac772
Fix #11688 (FP uninitvar in for loop iteration expression) ( #5140 )
2023-06-10 09:58:08 +02:00
chrchr-github
7e0f64688f
Fix #11275 internalAstError on C++20 templated lambda / Fix #11400 internalAstError on nested lambda ( #5134 )
...
* Fix #11275 internalAstError on C++20 templated lambda
* Fix #11400 internalAstError on nested lambda passed as argument
2023-06-10 07:42:10 +02:00
chrchr-github
d4705ca8ab
Fix #10809 cppcheckError Cyclic reverse analysis ( #5137 )
...
* Fix #10809 cppcheckError Cyclic reverse analysis
* Handle fixed AST in ValueFlow, fix FN
* Remove
2023-06-10 07:41:52 +02:00
chrchr-github
69116c8386
Fix #11758 Regression: memleak / Fix #11746 FN: deallocuse ( #5139 )
...
* Fix #11758 Regression: memleak
* Format
* Fix #11746 FN: deallocuse
* Complete the trifecta
2023-06-10 00:24:36 +02:00
Daniel Marjamäki
22e67d3534
Fixed #10442 (AST: wrong ast of ({}) in struct initialization) ( #5135 )
2023-06-09 22:31:14 +02:00