olabetskyi
7191ed92b9
#12263 : Constant Error 'missingInclude' ( #5769 )
...
Small adjustment of the log of the error.
- printed only when there was `--enabled=information` and no mentioning
of `missingInclude`
2023-12-16 18:38:30 +01:00
chrchr-github
3329e2f633
Fix #11741 FP knownConditionTrueFalse minus/negation confuses check ( #5766 )
2023-12-16 17:03:56 +01:00
Oliver Stöneberg
1135520aa8
run more tests in sanitizer workflows ( #5744 )
2023-12-16 17:03:03 +01:00
olabetskyi
42547aac9e
REOPENED #12260 (false positive: unusedVariable with side effects in member initialization) ( #5764 )
2023-12-15 11:35:55 +01:00
chrchr-github
02fed7a266
Fix #12235 performance regression (hang) in 2.13dev ( #5715 )
...
Co-authored-by: chrchr-github <chrchr@github>
2023-12-15 11:01:08 +01:00
Oliver Stöneberg
fcb41e2533
small cleanup of handling of ignored paths ( #5757 )
2023-12-14 16:55:42 +01:00
olabetskyi
61127950b0
Fixed #12260 (false positive: unusedVariable with side effects in member initialization) ( #5762 )
...
revert old changes
2023-12-14 15:16:30 +01:00
chrchr-github
8205b4a4b3
Fix #10572 FP nullPointerRedundantCheck with try/catch / #10701 FP knownConditionTrueFalse with nested try/catch ( #5761 )
2023-12-13 19:22:54 +01:00
chrchr-github
b26b78b86d
Fix #12258 Assert failure in setSymbolic() ( #5759 )
2023-12-12 22:37:33 +01:00
chrchr-github
2c54f31bfe
Fix #12251 internalError while cppcheck tries to parse Clang AST ( #5755 )
2023-12-12 20:47:58 +01:00
chrchr-github
30e8814ecb
Fix #12255 Crash in executeMultiCondition() ( #5752 )
2023-12-11 17:15:21 +01:00
Paul Fultz II
243fa66bd3
Fix 12031: False positive: uninitialized variable ( #5637 )
2023-12-10 19:42:35 +01:00
chrchr-github
233e27b579
Add tests for #8399/#10646/#10833 ( #5743 )
2023-12-09 00:36:55 +01:00
Oliver Stöneberg
7452e681dd
fixed #12221 - de-duplicate input source files (regression) ( #5740 )
2023-12-08 22:17:22 +01:00
Daniel Marjamäki
1af83ad821
Fix #12091 (False negative: Uninitialized variable read in subfunction (regression)) ( #5739 )
2023-12-08 21:54:23 +01:00
chrchr-github
f5109df632
Add tests for #9822/#9823 ( #5742 )
2023-12-08 21:20:10 +01:00
chrchr-github
1bdb7133e8
Fix #9684 New check: find unnecessary copy in range loop ( #5738 )
2023-12-08 16:58:43 +01:00
chrchr-github
7ac824f38a
Fix #12249 Assert failure in ExpressionAnalyzer (II) ( #5733 )
2023-12-08 14:46:20 +01:00
chrchr-github
77d8eaa2a1
Fix #12206 FN constParameterPointer with unknown const member ( #5737 )
2023-12-07 19:24:51 +01:00
chrchr-github
785c537ca2
Add tests for #4527 , #10330 ( #5734 )
2023-12-07 12:16:53 +01:00
Oliver Stöneberg
453800211c
testrunner: make sure that more redirects/outputs are actually being consumed ( #5721 )
2023-12-06 22:01:00 +01:00
chrchr-github
613bbe7674
Fix #12249 Assert failure in ExpressionAnalyzer ( #5731 )
2023-12-06 20:04:20 +01:00
chrchr-github
6aa3478243
Add test for #11534 ( #5732 )
2023-12-06 18:11:31 +01:00
chrchr-github
918eca635d
Fix #2767 FP resourceLeak (regression) / #12248 FP memleak / #12204 FP memleak ( #5723 )
2023-12-06 10:17:32 +01:00
Oliver Stöneberg
e766fba813
fixed tests by adjusting results for `picojson` update ( #5729 )
...
The tests which are failing were in introduced in #5712 . Those were not
included in #5710 which updated `picojson` that resulted in the
different lines being reported in the error messages.
I also added some checks to `ScopeFile` which will indicate that a
temporary file already exists highlighting multi-threading issues and
leftover files from previously aborted testruns. I ran into his while
looking into these failing tests
2023-12-05 20:39:26 +01:00
Daniel Marjamäki
70745b527a
Fix #12210 (Cppcheck hang in SymbolDatabase::createSymbolDatabaseExprIds) ( #5699 )
2023-12-05 14:22:32 +01:00
chrchr-github
41e6c87cb2
Fix #12236 FP related to decltype/__typeof__ ( #5717 )
2023-12-04 11:19:49 +01:00
Paul Fultz II
6192d0d3fa
Add unit tests for expr ids ( #5722 )
2023-12-03 22:18:35 +01:00
chrchr-github
ae27b613ae
Fix #12239 FP memleak when passing this in allocation ( #5719 )
2023-12-02 14:15:10 +01:00
Oliver Stöneberg
ec9dbb31f4
testrunner: make sure all redirected output is being consumed / some cleanups ( #5714 )
2023-12-01 20:56:30 +01:00
chrchr-github
55c2b75c2e
Fix #6933 FN uninitvar with POD struct and STL types ( #5713 )
...
Co-authored-by: chrchr-github <chrchr@github>
2023-12-01 17:42:27 +01:00
Oliver Stöneberg
3272a2bbe7
greatly improved `Settings::loadCppcheckCfg()` error handling ( #5712 )
...
This also fixes the issue that `cppcheck.cfg` is no longer being loaded
from executable path. That was introduced by #5704 .
2023-12-01 16:34:14 +01:00
chrchr-github
d6a1a657df
Fix #11796 FN memleak with brace init ( #5708 )
...
Co-authored-by: chrchr-github <chrchr@github>
2023-12-01 15:39:16 +01:00
Oliver Stöneberg
237bed8a91
CmdLineParser: made some options exclusive ( #5704 )
2023-12-01 14:19:47 +01:00
chrchr-github
e2082267e2
Fix #12218 : class and union ( #5705 )
...
Co-authored-by: chrchr-github <chrchr@github>
2023-12-01 10:03:43 +01:00
Oliver Stöneberg
a937862a5d
CmdLineParser: return enum from `parseFromArgs()` instead of using additional member ( #5698 )
2023-11-27 12:06:03 +01:00
Oliver Stöneberg
f2461781fd
added `xml.h` wrapper for TinyXML2 / cleaned up suppressions of Clang compiler warnings ( #5700 )
2023-11-26 14:04:35 +01:00
chrchr-github
42a64d4d39
Fix #12218 syntaxError with typedef in namespace ( #5694 )
2023-11-25 22:59:51 +01:00
chrchr-github
33981fe42c
Fix #12214 FN constParameterReference / #12216 FP constParameterReference ( #5691 )
2023-11-25 22:58:16 +01:00
chrchr-github
c1f6132745
Fix #12219 FP constParameterCallback for template argument ( #5695 )
2023-11-25 22:57:07 +01:00
Oliver Stöneberg
8e1ae7e412
CmdLineParser: various refactorings and cleanups as well as testing improvements ( #5676 )
2023-11-25 21:12:24 +01:00
chrchr-github
331db40d3b
Revert recent changes in checkConstVariable(), add tests (refs #12203 ) ( #5696 )
2023-11-22 19:20:56 +01:00
chrchr-github
83b5cb5b2f
Fix #12203 false negative: constParameterReference when taking address ( #5682 )
2023-11-22 14:05:53 +01:00
chrchr-github
8b6cbe2e9e
Fix crash in SymbolDatabase::addClassFunction() (f'up to #12209 ) ( #5689 )
2023-11-21 12:57:38 +01:00
chrchr-github
f5630e7049
Fix #12209 "debug: Executable scope 'x' with unknown function." with anonymous namespace ( #5688 )
2023-11-20 22:28:38 +01:00
chrchr-github
f9521cfb4e
Fix #12208 FN constParameterReference with nested struct/class ( #5685 )
2023-11-20 22:01:22 +01:00
chrchr-github
d09a6514cd
Fix #11012 FP unassignedVariable when passed in init list ( #5684 )
2023-11-20 19:43:29 +01:00
chrchr-github
d7c7a39afe
Fix crash in CheckLeakAutoVar (f'up to #12186 ) ( #5683 )
2023-11-20 18:26:05 +01:00
Daniel Marjamäki
036df0aca9
Fix #12181 (Suppressions: allow that id with * is added) ( #5681 )
2023-11-20 11:54:41 +01:00
chrchr-github
cd21918520
Fix FP memleak with outparam allocation (f'up to #12186 ) ( #5677 )
...
I wonder if it is worth trying to get this right. We also have FPs when
the return value is assigned to a variable, and that seems much harder
to fix.
2023-11-19 19:51:32 +01:00
Daniel Marjamäki
56c7ac3771
Fix #12182 (speedup valueFlow by only running valueFlowNumber once) ( #5678 )
2023-11-19 18:56:48 +01:00
chrchr-github
61bd8fddbf
Partial fix for #11469 FP mismatchingContainerExpression warning ( #5674 )
2023-11-17 17:12:38 +01:00
chrchr-github
3e47acd580
Fix FP memleak (f'up to #12186 ) ( #5671 )
2023-11-16 18:35:32 +01:00
chrchr-github
4b9f3c68fb
Fix #12188 FN uninitvar with increment of struct member ( #5665 )
2023-11-16 18:11:12 +01:00
chrchr-github
831aec5c03
Fix #12185 FN constVariablePointer with stream ( #5659 )
2023-11-16 17:43:20 +01:00
Daniel Marjamäki
e01e090f1c
Fix #10866 (no preprocessorErrorDirective and code generated in case of unconditional #error) ( #5670 )
2023-11-16 17:25:49 +01:00
Oliver Stöneberg
e47300016b
moved some classes/structs into anonymous namespace ( #5669 )
2023-11-16 15:49:41 +01:00
chrchr-github
63a5a71c20
Fix #12186 FN memleak with outparam allocation ( #5661 )
2023-11-16 15:23:40 +01:00
chrchr-github
85172fe770
Don't report checkLibraryUseIgnore for known functions (refs #7719 ) ( #5664 )
2023-11-16 14:23:08 +01:00
Oliver Stöneberg
682901ac2a
fixed #10760 - added file name to ValueFlow `--debug` output ( #5655 )
2023-11-16 13:44:50 +01:00
chrchr-github
3bd5a034bd
Fix #12176 false positive: unassignedVariable ( #5656 )
2023-11-14 12:26:12 +01:00
chrchr-github
6ac804d209
Fix #12178 extern "C++" scope generates valueflow ( #5654 )
2023-11-14 10:02:41 +01:00
Oliver Stöneberg
9228b9e424
iwyu.yml: fixed `include-what-you-use` job / cleaned up includes ( #5657 )
...
As usual when the base clang version of a distro changes iwyu ends up
broken and needs additional packages and/or options applied to work
again.
2023-11-13 23:24:06 +01:00
orbitcowboy
b201ef26cb
windows.cfg: Improved configuration of OpenThread() ( #5653 )
2023-11-12 11:37:29 +01:00
chrchr-github
a6b7a8c1cc
Fix #12170 FP knownPointerToBool with function pointer ( #5646 )
2023-11-12 10:20:18 +01:00
chrchr-github
212d2141d3
Fix #12173 FP danglingTempReference with loop over init list ( #5652 )
2023-11-12 10:19:45 +01:00
orbitcowboy
f4df28d5ec
windows.cfg: Improved configuration for OpenProcess(). ( #5651 )
2023-11-11 14:08:21 +01:00
chrchr-github
2d232dcaac
Fix varid0 with rvalue reference typedef ( #5649 )
2023-11-11 10:09:08 +01:00
chrchr-github
328daeceb4
Fix #11334 debug: varid0 with anonymous union ( #5648 )
2023-11-11 10:01:03 +01:00
Oliver Stöneberg
b0cde34d1a
refs #12167 - moved ordering of markup files into shared code / removed related test cases from executor tests ( #5642 )
...
This is not completely fixing the issue yet. `test-qml.py` still fails
when using multiple threads.
2023-11-09 10:17:30 +01:00
chrchr-github
d24074f7b1
Fix #12166 debug: varid0 with reference typedef ( #5643 )
...
Why do we even split any declarations in the first place?
2023-11-09 10:11:34 +01:00
Daniel Marjamäki
780b742568
Fix #12165 (simplifyTypedef: the "enum" token is not inserted) ( #5641 )
2023-11-09 07:48:33 +01:00
chrchr-github
30bf5cac0a
Partial fix for #12162 false negative: functionConst ( #5639 )
2023-11-08 22:37:45 +01:00
Daniel Marjamäki
8f432880fa
Fix #12164 (False positive: operator precedence warning even though there are parentheses) ( #5640 )
2023-11-08 18:54:40 +01:00
chrchr-github
1fa785d81d
Fix #12159 FP CastAddressToIntegerAtReturn with std::future ( #5634 )
2023-11-08 13:12:50 +01:00
Oliver Stöneberg
2a15428096
fixed #12059 - added `--fsigned-char` and `--funsigned-char` command-line options ( #5580 )
2023-11-08 09:28:33 +01:00
chrchr-github
cf64ccea22
Fix #12147 false negative: passedByValue ( #5626 )
2023-11-07 22:50:31 +01:00
Oliver Stöneberg
bc174c502a
fixed #12145 - provided order of source files is not preserved ( #5625 )
2023-11-07 21:21:24 +01:00
Daniel Marjamäki
8c63c8ced1
Fix #12156 (AST: do not create AST for variable declaration 'bool& var') ( #5631 )
2023-11-07 20:48:56 +01:00
Oliver Stöneberg
87886576fc
TokenList: actually consider configured standard in `isKeyword()` ( #5619 )
2023-11-07 20:39:44 +01:00
chrchr-github
d3d70dcc4e
Fix #12157 SymbolDatabase: Token::type() is not set properly when inn… ( #5635 )
...
…er enum has same name as outer class
2023-11-07 19:57:45 +01:00
Daniel Marjamäki
c1aed9681d
Fix #12151 (Tokenizer::arraySize: enum constant used as index in array initialization) ( #5633 )
2023-11-07 19:19:19 +01:00
chrchr-github
d26022ac9a
Fix #11302 debug: SymbolDatabase::isFunction found C function 'main' without a return type. ( #5630 )
2023-11-06 21:03:11 +01:00
chrchr-github
a57fc9ace6
Partial fix for #12153 FN returnReference ( #5629 )
2023-11-06 20:29:13 +01:00
Oliver Stöneberg
704b862a2d
cleaned up the file filtering code and improved testing of it ( #5622 )
2023-11-06 19:06:22 +01:00
chrchr-github
de2cfb05b0
Fix #12150 FP uninitialized member array, initialized in range for loop ( #5627 )
2023-11-06 16:15:47 +01:00
chrchr-github
83ac6bfa0f
Fix crash when calling estimateSize() (f'up to #12139 ) ( #5628 )
2023-11-06 15:22:59 +01:00
Daniel Marjamäki
0dc53ac7fe
Fix #12144 (Error messages from addons has the wrong file0) ( #5621 )
2023-11-04 17:07:30 +01:00
chrchr-github
72a36172aa
Fix #12142 FP uninitStructMember, unreadVariable with pointer to member ( #5618 )
2023-11-04 13:40:06 +01:00
chrchr-github
fa7891e37b
Fix #12139 FP redundantCopyLocalConst for small type ( #5617 )
2023-11-04 13:38:02 +01:00
chrchr-github
789c032e42
Fix #12138 FP passedByValue with anonymous union ( #5611 )
2023-11-04 13:34:08 +01:00
Oliver Stöneberg
ca6d1aafdb
moved `fileSettings` out of `Settings` ( #5608 )
...
Moved the `FileSettings` out of the `Settings` and pass them around
explicitly. They can never be specified at the same time and are used
exclusively. The code hasn't been fully adjusted to reflect this as this
is only the refactoring without any functional changes.
2023-11-03 23:24:04 +01:00
chrchr-github
099d96ffa1
Fix #12137 syntaxError with attribute in typedef ( #5612 )
2023-11-03 09:56:41 +01:00
Oliver Stöneberg
63e00ea918
fixed some "Variable can be made constexpr" Rider warnings ( #5615 )
2023-11-03 09:55:44 +01:00
Oliver Stöneberg
e6d15b17ff
extracted `FileSettings` from `ImportProject` to `filesettings.h` ( #5604 )
2023-11-02 17:42:41 +01:00
Oliver Stöneberg
dd627a2b1d
moved `ImportProject` out of `Settings` and only store `fileSettings` ( #5603 )
...
`ImportProject` is not needed outside of the command-line parsing so we
do not need it inside the `Settings` at all. We only use the
`fileSettings` in the executors.
2023-11-01 21:08:30 +01:00
chrchr-github
10654386db
Fix #12128 FP uninitDerivedMemberVar with brace init ( #5606 )
2023-11-01 09:49:32 +01:00
chrchr-github
29001b651b
Fix #12129 FN (regression): constParameterPointer ( #5605 )
2023-11-01 09:49:19 +01:00
chrchr-github
67b61a0ab7
Fix #12134 false negative: passedByValue ( #5607 )
2023-10-31 19:08:08 +01:00
chrchr-github
c2d5aef435
Fix #12083 FN passedByValue with usage in ternary ( #5575 )
2023-10-31 16:12:38 +01:00