Software update

Cppcheck Open-Source 2.15 released

The release introduces a new check, enhances the GUI with additional reporting and options. It also deprecates support for outdated tools and includes several improvements for project imports and diagnostics.

Explore the new features in Cppcheck version 2.15!

The release introduces a new check, suspiciousFloatingPointCast, for detecting unnecessary floating point casts that cause precision loss. The GUI now supports MISRA, CERT, and AUTOSAR reports, fixes the "Recheck" function, and adds options for "inline suppressions" and extra parameters when importing projects. A new command-line option, --cpp-header-probe, is available for probing headers and extension-less files. Python 2.7 and qmake support are deprecated and will be removed in a future release. Other updates include improved Visual Studio project imports and support for controlling ANSI color output with environment variables.

Here are the full release notes:

New checks:

  • suspiciousFloatingPointCast flags unnecessary floating point casts that cause loss of precision

GUI:

  • Added misra/cert/autosar reports
  • Fixed "Recheck"
  • Add "inline suppressions" option in project file
  • Make it possible to define extra defines when importing a project

Changed interface:

  • Added command-line option --cpp-header-probe (and --no-cpp-header-probe) to probe headers and extension-less files for Emacs marker (see https://trac.cppcheck.net/ticket/10692 for more details)

Deprecations:

  • Support for Python 2.7 has been deprecated (it went EOL in January 2020) and will be removed in Cppcheck 2.16 - please use Python 3.x instead.
  • The already deprecated support for qmake will be removed in Cppcheck 2.16 - please use CMake instead.

Other:

  • Add support for 'CLICOLOR_FORCE'/'NO_COLOR' environment variables to force/disable ANSI color output for diagnostics.
  • Add "remark comments" that can be used to generate reports with justifications for warnings
  • The whole program analysis is now being executed when "--project" is being used.
  • Improved import of Visual Studio projects, support shared items projects (*.vcxitems).

Similar posts