Commit Graph

434 Commits

Author SHA1 Message Date
Daniel Marjamäki dd76504f82
Fixed #3537 (Allow inline suppression comments for macros) (#5559) 2023-10-16 19:43:15 +02:00
Johan Bertrand 44ab976451
Inline suppression for block of code or whole file (#5402)
Added new suppress comments:
- `cppcheck-suppress-begin` and `cppcheck-suppress-end` to remove blocks
of suppression
- `cppcheck-suppress-file` to remove suppression at file level

The suppressions do not interfere with each others. For example, all the
suppressions are matched in the following code:

```c
// cppcheck-suppress-file uninitvar
void f() {
    int a;
    // cppcheck-suppress-begin uninitvar
    // cppcheck-suppress uninitvar
    a++;
    // cppcheck-suppress-end uninitvar
}
```

Tickets:
https://trac.cppcheck.net/ticket/11902
https://trac.cppcheck.net/ticket/8528
2023-10-13 12:45:13 +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 fe8730cf0f
MathLib: renamed `to{U}LongNumber()` to `toBig{U}Number()` (#5503)
The name was misleading as it was actually a `long long` and also if we
ever move to an (optional) 128-bit value it wouldn't even less fitting.
We should name it to match our alias type.
2023-10-05 19:21:42 +02:00
Oliver Stöneberg fc700b68eb
refs #4452 / refs #11705 - improved `--showtime=` behavior and testing (#4876)
This is a step onto leveraging the `ThreadExecutor` implementation for
`ProcessExecutor` which is a follow-up to #4870. We need to have the
proper test coverage and the existing implementations working as
expected before we move to the shared code.

Fixes:
- added `--showtime=` tests for all executor implementations
- only print `--showtime=summary` once at the end
- prevents `--showtime=` by multiple threads to be written at the same
time - essentially breaking the output
- reset the timer results before each test
- deprecated `top5` in favor of `top5_file`
- fixed printing for all executors except `ProcessExecutor`
2023-10-05 19:04:06 +02:00
Shohei YOSHIDA 354ea60b87
Update C++ standard list of --std option in manpage (#5506)
The manpage only lists up to C++11 and it says C++11 is default. It is
out-of-dated.
2023-10-04 19:52:14 +02:00
Daniel Marjamäki db5f75f741
manual: Add manual-premium.md for the Cppcheck Premium manual (#5492) 2023-09-28 13:30:58 +02:00
Daniel Marjamäki 4fa1c7d5f9
2.12.99: Set versions (#5427) 2023-09-10 18:43:00 +02:00
Daniel Marjamäki 557241ad71 2.11.99: Set versions 2023-06-22 13:50:51 +02:00
Long Radix c033c62190
Typos and stilistic updates (#5141) 2023-06-14 12:30:45 +02:00
Daniel Marjamäki 12118d8d67 Document --check-level better 2023-04-11 15:30:07 +02:00
Daniel Marjamäki 89a95ddc8f --performance-valueflow-max-if-count: review comments 2023-04-08 13:07:28 +02:00
Oleksandr Redko 0719a57ca8
cli: correct typo in help message (#4862) 2023-03-06 11:25:07 +01:00
Oliver Stöneberg 7fd4118d60
Fix #10039 (integrate `--check-config` include findings with normal analysis) / also fixes #11283 (#3229) 2023-03-04 09:02:35 +01:00
Oliver Stöneberg 1a460d7bc0
bumped version to 2.11 (#4751) 2023-01-29 15:18:22 +01:00
Oliver Stöneberg fd15811215
de-coupled `--check-library` from `information` severity and other dependencies (#3861) 2023-01-26 22:28:04 +01:00
Oliver Stöneberg 38abeccd24
added command-line option `--disable=<id>` to disable individual checks (#4712) 2023-01-21 10:39:44 +01:00
Oliver Stöneberg 0c95971c54
added .gitattributes and normalized files (#4668) 2022-12-30 21:33:45 +01:00
Oliver Stöneberg 433293b9ab
added missing version bumps to 2.10 (#4420) 2022-09-09 21:02:04 +02:00
Daniel Marjamäki 98b2fd8151 Manual: Added chapter about Cppcheck Premium 2022-08-29 18:04:23 +02:00
Rikard Falkeborn cfa5cd4849
CERT addon removal cleanup (#4322)
* cmdlineparser: Update addon example to misra

* gui/help: Remove reference to CERT

* manual: Remove reference to CERT
2022-07-29 16:46:36 +02:00
Kushal-Chandar 8a674e110a
fix: fixed broken pygments.org link in manpage (#4302) 2022-07-23 14:56:02 +02:00
Oliver Stöneberg f644938eb0
fixed Cppcheck version (#4292) 2022-07-19 20:42:19 +02:00
Daniel Marjamäki 0835250d7f writing-addons.md: small tweaks 2022-06-19 19:18:52 +02:00
Daniel Marjamäki b6a364eda4 man: Added writing-addons.md 2022-06-19 12:23:29 +02:00
WinterSolstice8 8e4da32594
Update manpage to fix typo in --max-ctu-depth cli option. (#4206) 2022-06-12 11:09:41 +02:00
orbitcowboy 5e9d06d435 Doc:Library: Added a note on how to exclude values in function argument configuration. 2022-05-20 10:22:30 +02:00
cquike 767b12b6c2
Remove --std=posix option from the manpage (#4077)
The option --std=posix is was removed back in 2019
in commit cb06aebdab
2022-05-04 13:27:17 +02:00
Daniel Marjamäki 6a0fb05e68 manual: removed chapter about bug hunting 2022-04-21 21:34:07 +02:00
Oliver Stöneberg ce369c5122
added/adjusted --xml-version documentation (#4032) 2022-04-21 09:11:59 +02:00
Daniel Marjamäki 631a9eefd2 2.7: Set versions 2022-02-05 12:17:54 +01:00
Michael Løiten 303b85c043
Fix deadlink in documentation (#3677) 2022-01-06 00:09:40 +01:00
Paul Fultz II 8668d445c7
Add support for string_view (#3480) 2021-10-05 08:28:19 +02:00
Daniel Marjamäki 7684d7b98a 2.6 dev: set version 2021-10-02 13:15:12 +02:00
Daniel Marjamäki ca047e57bf Switch from http to https on our sourceforge webpage 2021-08-28 12:46:54 +02:00
Paul Fultz II 865163b2ba
Add library configurations for free functions like std::size, std::empty, etc (#3410) 2021-08-23 09:03:48 +02:00
Daniel Marjamäki c630be7f8f Manual; minor tweaks of lists 2021-08-02 15:42:20 +02:00
Daniel Marjamäki 3e3e9d8c50 2.5; Update versions 2021-07-04 08:40:41 +02:00
Daniel Marjamäki d2d2124238 Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again."
This reverts commit 207361b174.
2021-04-30 16:47:02 +02:00
Daniel Marjamäki 59ef06819a manual; Add chapter about cppcheck build dir 2021-04-29 19:52:25 +02:00
Daniel Marjamäki 207361b174 Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again. 2021-04-21 18:59:48 +02:00
Daniel Marjamäki 21b1987b55 Manual; Add chapter about cppcheck build dir. Formatting tweaks. 2021-04-07 15:32:21 +02:00
Daniel Marjamäki cba0101df5 2.4: Set version 2021-03-21 21:25:54 +01:00
Daniel Marjamäki e8f36f6148 Manual; Try to clarify how -D and -U works 2021-02-10 21:51:16 +01:00
Daniel Marjamäki afb46e6cff Manual; Attempt to clarify section about automatic preprocessor defines configuration 2021-02-06 13:35:12 +01:00
Daniel Marjamäki a30c28550b Manual; Try to clarify how automatic configuration works 2021-02-06 11:48:08 +01:00
Oliver Stöneberg f46a9e3543
fixed/excluded some shellcheck warnings and actually fail the build when something is found (#3068) 2021-01-20 18:43:49 +01:00
Daniel Marjamäki 2a1e230d2e 2.3: Update version 2020-12-05 10:00:02 +01:00
Daniel Marjamäki 96e3c0a9e0 Manual; Improved text about misra 2020-12-02 08:31:45 +01:00
Daniel Marjamäki a05a20093a manual; tweaked introduction 2020-11-25 17:48:17 +01:00