Nous utilisons des cookies pour améliorer votre expérience de navigation. En savoir plus
Accepter
to the top
close form

Remplissez le formulaire ci‑dessous en 2 étapes simples :

Vos coordonnées :

Étape 1
Félicitations ! Voici votre code promo !

Type de licence souhaité :

Étape 2
Team license
Enterprise licence
** En cliquant sur ce bouton, vous déclarez accepter notre politique de confidentialité
close form
Demandez des tarifs
Nouvelle licence
Renouvellement de licence
--Sélectionnez la devise--
USD
EUR
* En cliquant sur ce bouton, vous déclarez accepter notre politique de confidentialité

close form
La licence PVS‑Studio gratuit pour les spécialistes Microsoft MVP
close form
Pour obtenir la licence de votre projet open source, s’il vous plait rempliez ce formulaire
* En cliquant sur ce bouton, vous déclarez accepter notre politique de confidentialité

close form
I am interested to try it on the platforms:
* En cliquant sur ce bouton, vous déclarez accepter notre politique de confidentialité

close form
check circle
Votre message a été envoyé.

Nous vous répondrons à


Si l'e-mail n'apparaît pas dans votre boîte de réception, recherchez-le dans l'un des dossiers suivants:

  • Promotion
  • Notifications
  • Spam

Webinar: Evaluation - 05.12

>
Quick start of PVS-Studio on Windows

Quick start of PVS-Studio on Windows

This guide will help you start a project analysis on Windows quickly. The page does not list all of the analyzer features. If you would like to learn about all the features, please consult the full documentation.

Introduction

On Windows, PVS-Studio integrates into Visual Studio, VS Code, Qt Creator, CLion, and Rider as a plugin. They provide a user-friendly interface for working with the analyzer. There is also an IDE-independent C and C++ Compiler Monitoring UI application that greatly expands the list of supported compilers. The PVS-Studio_Cmd.exe console utility makes it possible to check MSBuild projects without running the IDE or Compiler Monitoring UI. This enables you, for example, to use the analyzer as a part of the CI process.

Installation

After downloading the PVS-Studio installation package, you can start installing the program.

PVS-Studio_quickstart_cppwindows/image1.png

After confirming the license agreement, you see the options for integrating PVS-Studio into supported development environments. Integration options that are not available on the current system will not be active. If multiple versions of the same or different IDEs are installed on the machine, you can integrate the analyzer into all of them.

PVS-Studio_quickstart_cppwindows/image2.png

How to enter license

Once the components are installed, you are asked to enter a license or request a trial. To learn more about PVS-Studio, you may request a license by selecting I don't have PVS-Studio license or use the form.

A special documentation describes all options for entering the user license. Please, take a look at it.

How to run analysis

How to run C, C++, C# analysis in CLI

PVS-Studio_Cmd.exe is a utility that enables you to analyze Visual Studio (.sln) solutions as well as Visual C++ and Visual C# projects (.vcxproj, .csproj) from the command line. This documentation describes how to use the PVS-Studio_Cmd.exe utility.

By default, the Command line utility is installed in the following directory:

"C:\Program Files (x86)\PVS-Studio\"

The '‑‑help' command displays all available analyzer arguments:

PVS-Studio_Cmd.exe --help

Here is an example of how to start the solution analysis from the PVS-Studio_Cmd.exe console application:

PVS-Studio_Cmd.exe -t "path/to/solution.sln" -o "path/to/analysislog.plog"

How to start Java project analysis

There are three main modes of running the Java analyzer:

Integration into IDEs

Here are the links to the documentation on how to integrate PVS-Studio into various development environments as an extension:

How to use compilation monitoring

The CLMonitor utility seamlessly integrates the PVS-Studio static analysis into any build system on the Windows OS family. To compile files, the build system should use one of the preprocessors supported by the PVS-Studio.exe command-line analyzer (Visual C++, GCC, Clang, Keil MDK ARM Compiler 5/6, IAR C/C++ Compiler for ARM).

You can read more about it in the CLMonitor documentation.