95 Commits

Author SHA1 Message Date
Anton Lindqvist
a5cf0dd26f
Mention staticFunction in releasenotes.txt [skip ci] (#7206)
Introduced in PR #7127.
2025-01-11 11:54:29 +01:00
Daniel Marjamäki
07d59e94f1
Fix #13374 (Add --check-level=reduced option) (#6496) 2024-12-04 21:38:14 +01:00
Oliver Stöneberg
554a69ab0a
fixed #13132 - removed deprecated support for qmake (#6891) 2024-10-28 11:12:22 +01:00
Oliver Stöneberg
bfdd519ae5
bumped version to 2.16.99/2.17 (#6958) 2024-10-27 00:21:12 +02:00
Oliver Stöneberg
56b7b6a478
got rid of global CTU::maxCtuDepth (#6892) 2024-10-16 20:43:07 +02:00
Daniel Marjamäki
c49b9415af
Fix #9972 (Add support for SARIF output format) (#6863)
Co-authored-by: Mario Campos <mario-campos@github.com>
2024-10-10 22:07:14 +02:00
Oliver Stöneberg
07883d5fae
fixed #13134 - no longer implicitly enable missingInclude with information (#6826)
this was deprecated in 2.11
2024-09-25 10:20:01 +02:00
Oliver Stöneberg
08b501695f
removed support for Python 2.7 / small cleanups (#6804) 2024-09-16 15:57:56 +02:00
Daniel Marjamäki
d512bf332b
releasenotes: start new notes for 2.16 [ci skip] (#6751) 2024-08-31 13:54:35 +02:00
Oliver Stöneberg
e775c55d5f
announced removal of qmake support [skip ci] (#6744) 2024-08-31 11:40:57 +02:00
chrchr-github
ed2cd7a6a9
Fix #12921 New check: Detect floating-point casts that cause loss of precision (#6583) 2024-07-17 11:42:12 +02:00
Oliver Stöneberg
fb700f48b8
fixed #12842 - propagate mFileInfo back to original CppCheck instance (fixes whole program analysis with FileSettings) (#6560) 2024-07-04 11:06:54 +02:00
Daniel Marjamäki
bd694dbbb5
Fix #12610 (Justifications for warnings using comments in the code) (#6474) 2024-06-03 09:59:55 +02:00
Oliver Stöneberg
2263d306b4
refs #10692 - added command-line option --cpp-header-probe to probe headers and extension-less files for Emacs C++ marker (#6324) 2024-05-23 20:18:59 +02:00
cconverse711
d518020d5b
allow CLICOLOR_FORCE env var to force CLI color output (#6270)
This adds support for using the `CLICOLOR_FORCE` environment variable to
force color output in Linux even when a tty is not used, mimicking
behavior in [CMake and other
tools](https://bixense.com/clicolors/#bug-reports). The primary intent
is to allow color to be output when cppcheck is run in CI, for example.
2024-05-23 14:04:32 +02:00
Oliver Stöneberg
57e0ea5302
fixed #12682 - deprecated support for Python 2.7 (#6369) 2024-05-03 14:53:20 +02:00
Daniel Marjamäki
0fd3d20865
release notes: new for 2.15 [ci skip] (#6314) 2024-04-20 18:02:44 +02:00
chrchr-github
d7afc7777e
Add test for #3524, update release notes (#6307) 2024-04-19 14:03:42 +02:00
chrchr-github
4f8f7ccf7b
Fix #12546 new check: suggest to return const reference from "getter" member function (#6256) 2024-04-10 17:51:50 +02:00
Daniel Marjamäki
5ac87cc579
Fix #12505 (cli: Add option --check-version to pin cppcheck version) (#6121)
I chose to not add it in the help output. But I don't have a strong
opinion it can be added there also.

This option was added for the safety certification. It could be very bad
if a user runs one version of cppcheck and thinks that he runs another
version.
2024-04-04 20:45:33 +02:00
Oliver Stöneberg
91f1a254c4
fixed #12523 - greatly improved errorhandling of --rule-file= (#6147) 2024-03-21 23:02:30 +01:00
Oliver Stöneberg
6542816ba9
fixed #12465 - added (undocumented) command-line option --executor to specify the used executor implementation (#6043) 2024-03-11 03:27:05 +01:00
Oliver Stöneberg
2535d2de58
bail out on invalid MATCHCOMPILER (make) and USE_MATCHCOMPILER (CMake) values / Makefile: removed deprecated SRCDIR (#6021)
I accidentally specified `MATCHCOMPILER=1` and only later realized that
the matchcompiler was not being used as it requires `yes` instead. So
bail out on this.
2024-02-25 10:01:48 +01:00
chrchr-github
faaabb1a05
New check: eraseIteratorOutOfBounds (#5913) 2024-02-04 22:16:28 +01:00
Oliver Stöneberg
915824a36e
Revert "removed deprecated --showtime= value top5 (#5904)" (#5906)
This reverts commit fd9af82a86bc184dc659cd193bd1f8a148cb51fc.

We have a very outdated daca client which is wrecking havoc because it
still relies on this.
2024-01-22 15:53:39 +01:00
Oliver Stöneberg
fd9af82a86
removed deprecated --showtime= value top5 (#5904) 2024-01-22 11:54:15 +01:00
Oliver Stöneberg
d0d56cd5ce
removed deprecated platform type Unspecified (#5903) 2024-01-22 10:28:29 +01:00
Oliver Stöneberg
c9259b2ac3
added --template=simple (#5879)
It was already used in several places and I need it in some test
cleanups I am currently working on.
2024-01-16 12:15:21 +01:00
Oliver Stöneberg
93a53af168
modernized and cleaned up CMake files / explicitly check for CMake 3.13 with Visual Studio (#5825) 2024-01-05 11:07:16 +01:00
Oliver Stöneberg
615e4c01c4
bumped minimum requirements to GCC 5.1 / Clang 3.5 / Visual Studio 2015 / CMake 3.5 (#5398)
The current versions only have partial C++11 support which fortunately
has caused us only few issues so far but it would be good to finally
have fully working C++11 support. This also gets rid of several CI
builds on very outdated platforms.

The outdated platforms were used to also test CMake 2.8 but as future
versions of CMake will drop combability with CMake < 3.5 this is a good
time to also drop that requirement on our part.

This PR does not remove or update any outdated code.
2024-01-04 21:31:08 +01:00
Oliver Stöneberg
dd869cf808
added CMake option EXTERNALS_AS_SYSTEM to treat external includes as SYSTEM ones (#5386)
Although these files are part of our repo changes are being done via
their original projects so it might make sense to treat these as system
includes for some people instead of local ones.

Co-authored-by: Daniel Marjamäki <daniel.marjamaki@gmail.com>
2024-01-03 11:05:32 +01:00
Daniel Marjamäki
d81c69682c
releasenotes.txt: new notes for 2.14 [ci skip] (#5787) 2023-12-20 22:19:37 +01:00
Daniel Marjamäki
49da3e3821
Fixed #12281 (IDE plugin integration is broken by checkers report) (#5779) 2023-12-19 15:55:29 +01:00
Daniel Marjamäki
5aa1710dd0
Fix #12071 (Add safety mode that makes cppcheck more strict about critical errors) (#5777) 2023-12-18 18:26:23 +01:00
Daniel Marjamäki
2932ab7592
Revert "Fixed #12071 (suppressing critical error, no indication to user that analysis of file fails) (#5771)" (#5775)
This reverts commit 7c316fb76ddb0a7226c4467dc4b76763eeb8bb70.
2023-12-17 19:13:14 +01:00
Daniel Marjamäki
7c316fb76d
Fixed #12071 (suppressing critical error, no indication to user that analysis of file fails) (#5771) 2023-12-17 15:42:17 +01:00
Oliver Stöneberg
7c456ac1f7
updated releasenotes.txt [skip ci] (#5702) 2023-12-11 15:40:14 +01:00
chrchr-github
735831fc54
Update releasenotes.txt [skip ci] (#5741) 2023-12-08 18:30:56 +01:00
Oliver Stöneberg
3fc62ce10b
fixed #12227 - properly load addons from cppcheck.cfg in GUI (#5716)
The GUI was asserting when addons were specified in the `cppcheck.cfg`
since we did not generate the info for them.
2023-12-06 19:45:30 +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
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
13e74507dd
Update releasenotes.txt [skip ci] (#5636) 2023-11-07 15:11:41 +01:00
Oliver Stöneberg
fdb3de708e
fixed #12042 - deprecated building with Qt5 / build with Qt6 in CI / updated latest Qt in CI to 6.5.3 (#4957)
Qt 5.15 will be EOL on May 26 so we should start switching away from it.
We already have issues with many of the previous versions and qmake on
legacy distros so we should cut that off.

I will add a Qt6 release build for Windows in another PR so it can be
tested. We should switch to it as the delivered build after the next
release and stop using Qt5 altogether in the CI in the release
afterwards (that would get rid of several build steps). We could leave
it so you could still try to build it but no longer support it so it is
up to the user to get it to work before removing it completely later on.
2023-10-26 14:55:59 +02:00
Oliver Stöneberg
122e142726
fixed #12113 - made CMake build work with UBSAN and GCC (#5590)
GCC does not support `-fsanitize=nullability`
2023-10-24 21:53:58 +02:00
Oliver Stöneberg
85fe627c68
fixed some typos (#5562) 2023-10-17 18:32:07 +02:00
Daniel Marjamäki
dd76504f82
Fixed #3537 (Allow inline suppression comments for macros) (#5559) 2023-10-16 19:43:15 +02:00
Oliver Stöneberg
84f2485a26
fixed #7099 - added optional man target to CMake / build manpage in CI (#5536) 2023-10-09 22:20:36 +02:00
Oliver Stöneberg
0f28f3e493
generate AddonInfo only once (#4958)
Currently the `AddonInfo` is generated and discarded on each addon
invocation. This leads to an unnecessary process invocation for each
addon on each file.

Also if an addon is completely broken we will still perform the whole
analysis only for it to be failed at the end so we should bail out early
if we know it doesn't work at all.
2023-10-08 21:28:57 +02:00
Oliver Stöneberg
3ba53c6b6a
fixed #12022 - disallow using --project with source files (#5515) 2023-10-08 09:07:15 +02:00
Oliver Stöneberg
5a52fa80fb
refs #12022 - disallow multiple --project options (#5499) 2023-10-05 21:36:44 +02:00