Software update

Cppcheck Open-Source 2.18 Released: New Path Syntax, Clang Analyzer support and More

Cppcheck 2.18 updates path matching, deprecates Qt 5 and old platforms, adds Clang Analyzer support, and requires Python 3.7.

Explore the new features in Cppcheck version 2.18!
The latest release of Cppcheck, version 2.18, is now available. This update introduces important interface changes, cleanup of legacy platform options, and a number of behind-the-scenes improvements. If you're using suppressions, custom project files, or integrating with CMake or Clang tools, this release includes updates you’ll want to review.

Here are the full release notes for Cppcheck 2.18:

Changed interface:

  • Updated path matching syntax for -i, --file-filter, suppressions, GUI excludes, and project file excludes.
    Old patterns that use a * may need to use ** instead if it is intended to match path separators. More details can be seen in the manual.

Deprecations:

  • Support for building with Qt 5 will be removed in Cppcheck 2.19.
  • The platform 'unix32-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix32 --funsigned-char' instead.
  • The platform 'unix64-unsigned' has been deprecated and will be removed in Cppcheck 2.19. Please use '--platform=unix64 --funsigned-char' instead.

Other:

  • Updated Qt to 6.9.1 (official Windows release only).
  • added CMake target run-clang-tidy-csa to run Clang Static Analyzer
  • added CMake option ENABLE_CSA_ALPHA to enable the Clang Static Analyzer alpha checkers
  • Updated TinyXML-2 to v11.0.0
  • The minimum supported Python version has been bumped to 3.7.
  • CMake will now unconditionally use Boost.Containers if available. If CMake option USE_BOOST is specified it will now bail out when it is not found.
  • Fix checking a project that contains several project file entries for the same file.
  • Fixed --file-filter matching of looked up files in provided paths.
  • Split up cstyleCast checker; dangerous casts produce portability/warning reports, safe casts produce style reports.
  • Removed deprecated '--showtime=' value 'top5'. Please use 'top5_file' or 'top5_summary' instead.

Read more on GitHub.

Similar posts