Skip to content

viva64/pvs-studio-cmake-examples

Repository files navigation

Examples of PVS-Studio integration in CMake (CLion/QtCreator)

A few examples in this repository will help you to learn how to use the PVS-Studio CMake module in your CMakeLists.txt properly.

You can also perform analysis of C and C++ projects based on JSON Compilation Database.

Go to description of the CMake module

Description of examples

  • example-01 Analysis of a one-file simple project.
  • example-02 Analysis of a simple project with a library linked.
  • example-03 Analysis of a project with build subdirectories.
  • example-04 Analyzing a project and its dependencies.
  • example-05 Analysis that issues a Tasklist-format report.
  • example-06 A project's individual module analysis that issues several reports.
  • example-07 Analysis that employs compile_commands.json.
  • example-08 Analysis that uses a suppressed warning database.
  • example-09 Analysis that uses the pvs-studio config file. The example also shows how to set targets that must be built before analysis.
  • example-10 Analysis that employs pvs-studio-analyzer flags.
  • example-11 Analysis based on several selected diagnostic groups (for example GA, MISRA).
  • example-12 Analyzing individual source files.
  • example-13 Analysis that employs plog-converter flags.