chrchr-github
1fa785d81d
Fix #12159 FP CastAddressToIntegerAtReturn with std::future ( #5634 )
2023-11-08 13:12:50 +01:00
Oliver Stöneberg
f61003d954
scriptcheck.yml: make dmake a separate job and run it on multiple platforms ( #5632 )
...
This is essentially an unit test for the `FileLister` so we should make
sure we have proper coverage.
2023-11-08 09:29:40 +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
13e74507dd
Update releasenotes.txt [skip ci] ( #5636 )
2023-11-07 15:11:41 +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
Daniel Marjamäki
fc8c244675
CI: Add selfcheck using Cppcheck Premium. Activates Misra C++ 2008 and Cert C++ 2016 checkers. ( #5623 )
2023-11-06 15:31:47 +01:00
chrchr-github
83ac6bfa0f
Fix crash when calling estimateSize() (f'up to #12139 ) ( #5628 )
2023-11-06 15:22:59 +01:00
orbitcowboy
966a89d5f4
Removed -DTIXML_USE_STL flag ( #5624 )
...
Updated version of https://github.com/danmar/cppcheck/pull/5145
2023-11-05 15:54:22 +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
df860a937d
do not explicitly load `windows.cfg` during command-line parsing ( #5613 )
...
As we now fail early on loading of all libraries we no longer need to
explicitly bail out on mandatory ones. This would have also caused
`libraries` and `library` to go out-of-sync and possibly lead to
duplicated loading of the library. It also allows for a
`CppCheckExecutor` to be made private.
2023-11-04 13:33:10 +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
Oliver Stöneberg
8b0916c319
ValueFlow: improved `checkLevelNormal` message ( #5584 )
2023-11-03 21:05:56 +01:00
Oliver Stöneberg
989d276dde
removed the need for `Check` object in `CTU::getUnsafeUsage()` callback / some CheckUninitVar cleanups ( #5610 )
...
The `Check` objects were just created for that purpose so they basically
just were wrappers for the pointers passed into them and were
unnecessary.
2023-11-03 18:27:11 +01:00
Oliver Stöneberg
f62caa6739
updated Qt in CI to 6.6.0 and removed commercial-only LTS Qt versions ( #5561 )
...
Updates for the Qt 6.2.x and 6.5.x LTS versions are only being provided
to commercial customers so the latest version is the only feasible one
to use.
Builds with older 6.x versions are still being tested implicitly by
using the Qt versions provided by the various distros.
2023-11-03 18:25:27 +01:00
Daniel Marjamäki
3c863e2e33
bumped simplecpp to 1.0.0 ( #5616 )
2023-11-03 13:55:54 +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
9280b5d7a5
CI-unixish.yml: removed `macos-11` builds and no longer build with qmake on MacOS ( #5614 )
...
Removed all `macos-11` builds as `brew` no longer supports it and we use
it in most steps:
```
Warning: You are using macOS 11.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.
```
Also `brew` might no longer provide pre-built Qt5 packages which will
cause the step to run for hours as it will compile it on demand - see
https://github.com/danmar/cppcheck/actions/runs/6735637341/job/18314354679
for such an instance.
2023-11-02 23:31:59 +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
8d5fa19caa
filelister.cpp: removed unused `NAME_MAX` related code ( #5609 )
...
The code which was using this was removed in
8b309a8829
.
2023-11-02 10:04:53 +01:00
Oliver Stöneberg
57bec6cbc8
fixed #12099 - daca: missing diff entries ( #5586 )
...
This reverts 7ff58dacff
.
2023-11-01 22:58:33 +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
chrchr-github
bbaa7be901
Fix #12118 FP passedByValue for callbacks ( #5591 )
2023-10-31 12:06:31 +01:00
Swasti Shrivastava
7618e100b4
Do not add AST for pointer in variable declaration ( #5593 )
2023-10-31 10:26:03 +01:00
Swasti Shrivastava
12844703de
Fix #9488 : MISRA addon: False positive for rule 10.6 in test for rule 10.1 ( #5598 )
2023-10-30 17:24:19 +01:00
Swasti Shrivastava
915b4b6c5a
Fix #10747 : FP: misra-c2012-8.6 ( #5601 )
2023-10-29 19:39:36 +01:00
Paul Fultz II
18373bc64b
Fix 12116: FP negativeContainerIndex with redundant assignment (regression) ( #5602 )
2023-10-29 00:11:03 +02:00
Swasti Shrivastava
56bfa9f3ea
Fix #9498 : false positive: misra-c2012-18.8 ( #5600 )
2023-10-28 18:45:40 +02:00
Daniel Marjamäki
083c4aa34b
Fix #12079 (Make misra-config a critical error) ( #5578 )
2023-10-28 16:58:59 +02:00
chrchr-github
77bfec4317
Fix #12119 FN constVariablePointer with reassigned pointer ( #5592 )
2023-10-28 16:48:39 +02:00
chrchr-github
cae27c5ec7
Fix #12117 FP integerOverflowCond for shift by 31 bits ( #5596 )
2023-10-28 16:47:57 +02:00
chrchr-github
f6fb3334f3
Set enumerator in ctor init list (refs #10045 ) ( #5599 )
2023-10-28 13:51:52 +02:00
Oliver Stöneberg
e8671c92cc
CI-unixish-docker.yml: updated latest ubuntu to 23.10 ( #5560 )
2023-10-27 14:50:28 +02:00
chrchr-github
6bc164e0d0
Fix #12122 FP knownConditionTrueFalse with type traits ( #5595 )
2023-10-26 23:33:35 +02:00