Our website uses cookies to enhance your browsing experience.
Accept
to the top
close form

Fill out the form in 2 simple steps below:

Your contact information:

Step 1
Congratulations! This is your promo code!

Desired license type:

Step 2
Team license
Enterprise license
** By clicking this button you agree to our Privacy Policy statement
close form
Request our prices
New License
License Renewal
--Select currency--
USD
EUR
* By clicking this button you agree to our Privacy Policy statement

close form
Free PVS‑Studio license for Microsoft MVP specialists
* By clicking this button you agree to our Privacy Policy statement

close form
To get the licence for your open-source project, please fill out this form
* By clicking this button you agree to our Privacy Policy statement

close form
I am interested to try it on the platforms:
* By clicking this button you agree to our Privacy Policy statement

close form
check circle
Message submitted.

Your message has been sent. We will email you at


If you do not see the email in your inbox, please check if it is filtered to one of the following folders:

  • Promotion
  • Updates
  • Spam

Webinar: Evaluation - 05.12

>
>
PVS-Studio command line tips

PVS-Studio command line tips

Apr 05 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


Comments (0)

Next comments next comments
close comment form