Customize or disable on-the-fly analysis

By default, on-the-fly analysis is enabled for C/C++ projects. On-the-fly analysis is not supported for C# projects. Analysis runs every time you open or pause while editing a file. If you prefer to have it run every time a file is saved, do the following:

  1. Go to Klocwork > Options > Klocwork > General and select the Analysis tab.
  2. From the On-The-Fly analysis dialog, select On File Save.

Now on-the-fly analysis runs when you save a file.

Also, you can set if analysis is continued when a document is closed. From the Analysis tab, enable or disable the option Continue analysis after the file has closed.

To disable on-the-fly analysis:

  1. Go to Klocwork > Options > Klocwork > General and select the Analysis tab.
  2. From the On-The-Fly analysis menu, select Disabled.

Now, to run an analysis, you must right-click a solution and select Analyze Solution or right-click a project and select Analyze Selection.