Unicorn with delicious cookie
Nous utilisons des cookies pour améliorer votre expérience de navigation. En savoir plus
Accepter
to the top
>
>
PVS-Studio command line tips

PVS-Studio command line tips

05 Avr 2012

As a lesser portion of our users utilize the command line version comparing to the VS IDE version, I would like to point attention to several aspects of using the command line version, as these could be not quite obvious at a first glance.

  • It is possible to obtain the analyzer's output from stdout in a specially formatted state, analogous to the compiler's errors. This could be handy for checking a single file to immediately get the analysis results, but it will be inconvenient if a large number of messages were generated. The 'new-output-format=no' option from configuration file or through command line should be used to enable the generation of compiler-like formatted diagnostic messages.
  • You could store the analyzer's output and manage it with Visual Studio IDE at a later time afterwards. This will allow you to utilize the convenient code navigation, access the documentation, use the message filtering and "Mark As False Alarm" functionality, etc., all through the "PVS-Studio Output" IDE tool window. That is, you will be able to use all PVS-Studio functionality normally available for Visual Studio projects without having to actually possess any such Visual C++ project files (vcproj/vcxproj). The downside is that, of course, Visual Studio IntelliSense navigation and auto-completion will not function without such project files as well. The "‑‑output-file" command line option should be used to save the analyzer's output to a file. It then could be loaded into PVS-Studio Output IDE tool window as an "unparsed output" through the PVS-Studio->Open/Save->Open Analysis Report menu item (the "unparsed output" should be selected as a file type in the system dialog window). As such unparsed output contains a lot of duplicate lines, processing it at the first could take some time.
  • The detailed description of command line mode is available at documentation here.

Please contact us if you have any questions or suggestions towards the development of the analyzer and his command line version.

Popular related articles

S'abonner

Comments (0)

close comment form
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 want to join the test
* 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