PVS-Studio menu commands

Check Current File

This command launches PVS-Studio analysis on a file that is currently opened in the Visual Studio code editor window for the selected build configuration and platform. If there are no files opened in the editor then the verification will be started on the file that is currently selected in the Solution Explorer window. It should be noted that this command is primarily designed to verify the code that is opened in the IDE code editor and the ' Check Selected item(s)' menu command should be used for the convenient verification of selected items (single or multiple ones) from the Solution Explorer

Check Current Project

This command launches PVS-Studio analysis on all the files of the project that is currently selected in the IDE 'Solution Explorer' window for the selected build configuration and platform. This command is intended to check only the single current project, the ' Check Selected item(s)' menu command should be used to verify several projects at once.

Check Selected item(s)

This command launches PVS-Studio analysis on all the items currently selected in the 'Solution Explorer' IDE window for the selected build configuration and platform. Any single C/C++ file, entire Visual C++ projects and whole solution folders could be selected for analysis, but the 'Check Solution' menu command is a more convenient way to start the verification for all the items from within the Solution Explorer tree.

Check Solution

This command starts PVS-Studio analysis on all C/C++ files belonging to the solution that is currently opened in Visual Studio IDE for the selected build configuration and platform, i.e. on all the projects from the 'Solution Explorer' window. It should be noted that analysis will not be started for the projects which are excluded from the build in the Configuration Manager settings for current build configuration.

Incremental Analysis after Build

The 'Incremental Analysis after Build' command allows you to specify the mode (turn on/off) for PVS-Studio incremental analysis. When enabled PVS-Studio IDE extension will monitor the building of Visual C++ projects and individual C/C++ files so that the files that were modified since the last successful build will be automatically verified.

Disable incremental analysis until IDE restart

When using the PVS-Studio incremental analysis ('Incremental Analysis after Build' command) this command allows it to be temporarily disabled for the current Visual Studio IDE session, i.e. incremental analysis will remain enabled after the IDE is restarted. This menu item is always unchecked by default after the IDE is restarted. The incremental analysis also can be temporarily turned off through the context menu in Windows notification area (PVS-Studio tray icon).

Open/Save

The Open/Save submenu contains several groups of subcommands which are responsible for handling PVS-Studio log files (files with plog extension) and analyzer's configuration file (settings.xml).

Open Analysis Report

The 'Open Analysis Report' command allows you to load a previously saved analyzer's log into PVS-Studio IDE Output window. This command permits for a standard XML log (plog extension) to be opened as well as the unparsed PVS-Studio output in case the analyzer was started from a command line in IDE independent mode (the 'unparsed output' type should be selected in the standard file opening dialog).

Save Analysis Report As...

This allows the current analyzer results from the PVS-Studio Output window to be saved either as a standard XML file (plog type) or as a plain text file, the type could be specified through the drop-down menu in the standard Windows file saving dialog.

Save Analysis Report

This command allows the current analyzer output to be saved. In case the output was generated by loading the existing PVS-Studio log file or it was already saved once during the current Visual Studio session, the initial file will be replaced. Otherwise the standard file saving Windows dialog will be displayed (as with the 'Save Analysis Report As...' command)

Export current configuration to file...

The command allows for the current analyzer's settings to be exported into an external XML file. The settings used by the analyzer are stored in the Settings.xml file located in the %AppData%/PVS-Studio directory.

Import current configuration from file...

This command allows the analyzer's settings to be imported from an external PVS-Studio XML settings file. These imported settings will overwrite the current analyzer's settings which are stored in the Settings.xml file located in the %AppData%/PVS-Studio directory. The current settings could also be exported into an external XML file with the help of the 'Export current configuration to file...' command.

Reset to default configuration

This command allows you to reset the analyzer's settings to default values. Using this command will not cause the registration information to be lost. It should be noted that in order to reset the display of various error types to default (the Detectable errors menu) it is far more convenient to use the 'Reset detectable errors to default' menu command as it will leave other suppression filters unaffected.

Reset detectable errors to default

This allows you to reset the 'Detectable errors' filters to default values, in which the most important diagnostics are enabled. To fully reset the PVS-Studio settings (including all of the message suppression filters) the ' Reset to default configuration' menu command should be used instead.

Show PVS-Studio Output window

This command either opens the PVS-Studio Output IDE window or sets a focus to it if this window had already been opened before.

Find in PVS-Studio output...

This command opens the 'Find in PVS-Studio Output' IDE window or sets a focus to it if this window had already been opened before. This window could also be opened using the IDE 'Find in PVS-Studio output...' tool panel button in the 'PVS-Studio' output window. The 'Find in PVS-Studio output' window allows you to perform a text search in the analyzer's output displayed inside the PVS-Studio IDE window.

Help

The Help submenu contains commands intended to provide user support, access to the analyzer's documentation and the analyzer's registration settings.

Open PVS-Studio Documentation (PDF)

The command opens a unified PDF file which contains analyzer's full documentation. This documentation is also available on our website through the Open PVS-Studio Documentation (html, online) menu command.

Open PVS-Studio Documentation (html, online)

This command opens the contents of analyzer's documentation available on viva64.com website. The local version of this content is available in the form of a single PDF file through the Open PVS-Studio Documentation (PDF) menu command.

Open OmniSample.zip examples

Allows the OmniSample.zip archive to be opened. It contains examples of various issues detectable by the PVS-Studio analyzer (the OmniSample projects are for Visual Studio 2005/2008/2010 IDE)

Request support via website

This command opens the page of viva64.com website allowing you to request a technical user support for the PVS-Studio analyzer.

Check for updates

Allows you to check the availability of updates for PVS-Studio analyzer. It should be noted that the Visual Studio IDE extension by default checks for updates before starting the analysis of the source code (the CheckForNewVerions settings item at the PVS-Studio->Common Analyzer Settings page)

Enter registration information...

Allows you to enter the registration information for the PVS-Studio analyzer. By default the analyzer operates in a trial mode which does not require any additional registration information to be specified. The registration information could also be entered by opening the Registration option's page using the Options or Tools->Options menu commands. The restart of the IDE is not required to change the current registration state.

Options

This command opens PVS-Studio options page that is integrated into the IDE common settings. It's worth noting that PVS-Studio page could also be accessed via the standard IDE settings dialog at the Tools->Options->PVS-Studio.