Skip to content

Update dependency cppcheck to v2.21.0#16

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cppcheck-2.x
Open

Update dependency cppcheck to v2.21.0#16
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cppcheck-2.x

Conversation

@renovate

@renovate renovate Bot commented Apr 19, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Update Change
cppcheck (source) minor ==2.18.1==2.21.0

Release Notes

cppcheck-opensource/cppcheck (cppcheck)

v2.21.0: Cppcheck-2.21.0

Compare Source

Release Notes for Cppcheck 2.21

Major bug fixes & crashes:

  • Fixed potential crash with incomplete preprocessor directive
  • Fixed hang in createAst
  • Fixed invalid AST for braced initialization and references/pointers
  • Fixed cppcheckError with array typedef
  • Fixed recheck which now correctly excludes non selected files
  • Fixed potential crash when rechecking files in gui

New checks:

  • MISRA C 2012 rule 10.3 now warns on assigning integer literals 0 and 1 to bool in C99 and later while preserving the existing C89 behavior.
  • funcArgNamesDifferentUnnamed warns on function declarations/definitions where a parameter in either location is unnamed
  • uninitMemberVarNoCtor warns on user-defined types where (1) some but not all members requiring initialization have in-class initializers or (2) there is a mixture of members which do/do not require initialization.
  • fcloseInLoopCondition warns when fclose() is used as a while loop condition, which may skip the loop body or double-close the file handle.

C/C++ support:

  • import project: include path in compile_commands.json now handled correctly

GUI:

  • Removed handling of Cppcheck Premium LOC license

Other:

  • Make it possible to specify the regular expression engine using the engine element in a rule XML.
  • Added CLI option --exitcode-suppress to specify an error ID which should not result in a non-zero exitcode.
  • Moved source code from https://github.com/danmar/cppcheck to https://github.com/cppcheck-opensource/cppcheck
  • The official Windows binary is now built with Visual Studio 2026.
  • Updated simplecpp to 1.7.0.

v2.20.1

Compare Source

v2.20.0: Cppcheck-2.20.0

Compare Source

Release Notes for Cppcheck 2.20

GUI:

  • Fix: The Misra C checkbox in "Edit Project" dialog is unchecked after reloading project.
  • Fix: In the Misra Report, use proper icons according to misra classifications
  • Fix: The platform files are not shown in the dropdown in ProjectFileDialog
  • Troubleshooting: detailed progress view that shows what files the threads are working on

Changed interface:

  • removed CMake option "DISABLE_CRTDBG_MAP_ALLOC"
  • CMake option "BUILD_TESTS" has been deprecated and will be removed in Cppcheck 2.22 - use "BUILD_TESTING" instead

Other:

  • The built-in "win*" and "unix*" platforms will now default to signed char type instead of unknown signedness. If you require unsigned chars please specify "--funsigned-char"
  • bumped minimum required CMake version to 3.22
  • Support inline polyspace suppressions

v2.18.3

Compare Source

v2.18.2

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot force-pushed the renovate/cppcheck-2.x branch from 8e4cbb9 to 912c8d6 Compare June 6, 2026 19:43
@renovate renovate Bot changed the title Update dependency cppcheck to v2.20.1 Update dependency cppcheck to v2.21.0 Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants