Analysis and Appearance tabs

To configure analysis and appearance settings in Visual Studio, go to Klocwork > Options > Klocwork > General.

Common Analysis tab

The Common Analysis tab allows you to limit how often on-demand analysis runs. You can set a number of threads to limit the analysis to and determine whether or not server issues are loaded.

C/C++ Analysis tab

The C/C++ Analysis tab allows you to configure your analysis to run with an external engine, such as kwcheck, enable or disable on-the-fly analysis, as well as limit how often on-the-fly analysis and/or on-demand analysis run.

Under C/C++ Engine, you can select Use External Engine. By specifying the installation path for kwcheck, you can use it to analyze your C/C++ projects. kwcheck is included as part of the command line tools package. For large-sized projects, you may find it useful for reducing analysis time. However, on-the-fly analysis (detects issues when you open files and as you type) is not available when this option is enabled.

Restriction: It is necessary to re-run analysis when enabling the kwcheck engine; only 2022.2 and newer versions of kwcheck are supported. It is also only supported when using Reprise licensing. When you run analysis for the first time using kwcheck, your database is cleared as there are performance benefits to enabling analysis with kwcheck for subsequent analysis runs and the results from previous analysis using the default engine cannot be used. If you encounter any problems when running the analysis, close the solution, delete your '.klocwork' folder (found in the same directory as your solution file), and re-run the analysis.

Under On-The-Fly, you can configure when analysis is run on-the-fly. By default, analysis is run any time you save a file; in addition, you can limit the number of threads used for the analysis. You can also configure whether analysis continues after a file is closed by enabling or disabling the option Continue analysis after the file has closed.

Under Analysis Mode, you can enable classic mode. When this option is enabled, it forces Klocwork to use the previous generation (pre-Klocwork 2018) analysis engine. The previous analysis engine only provides partial support for C++11 and C++14.

C# Analysis tab

The C# Analysis tab allows you to use an external engine (kwcheck) to run your analysis.

Under C# Engine, you can select Use External Engine. By specifying the installation path for kwcheck, you can use it to analyze your C# projects. kwcheck is included as part of the command line tools package. For large-sized projects, you may find it useful for reducing analysis time.

Restriction: It is necessary to re-run analysis when enabling the kwcheck engine; only 2022.2 and newer versions of kwcheck are supported. It is also only supported when using Reprise licensing. When you run analysis for the first time using kwcheck, your database is cleared as there are performance benefits to enabling analysis with kwcheck for subsequent analysis runs and the results from previous analysis using the default engine cannot be used. If you encounter any problems when running the analysis, close the solution, delete your '.klocwork' folder (found in the same directory as your solution file), and re-run the analysis.

Under Continuous Analysis, you can configure when to run continuous analysis. By default, analysis is run any time you save a file. You can also limit the number of threads used for the analysis.

Appearance tab

The Appearance tab allows you to enable or disable on-the-fly analysis markers and underlining for detected issues in your editor. You can also configure whether the change comment dialog shows by default and whether or not to show Klocwork engine errors and warnings in the error list.

Related Topics Link IconSee also