JavaScript is not currently enabled, but is required for full CodeSonar manual search and browse functionality.

If you are viewing this file in your hub's Web GUI, enable JavaScript in your browser: you will also need it for GUI functionality.

If you opened this file directly from disk, your browser may be directly suppressing JavaScript functionality: certain browsers perform this suppression on local files (but not files delivered by web servers) for security reasons.

CodeSonar® 9.2p0 CONFIDENTIAL CodeSecure Inc
C and C++
Third-Party External

CodeSonar Plug-in for Visual Studio: Tutorial [Windows only]

This tutorial introduces you to the CodeSonar plug-in for Visual Studio using a sample program that is provided with the product.

You will use the plug-in to build and analyze the sample program, then to browse and interpret the analysis results.



Before You Start

If you have not already installed the CodeSonar plug-in for Visual Studio, install and configure it now.

Files

We use the sample BasicProj.c file provided with the Basic Tutorial.

Set Up the Sample Project

Now set up the sample Visual Studio project ready for building and analyzing with CodeSonar.

Build and Analyze the Project

The Visual Studio project is now set up to work with CodeSonar.

View the Analysis Results

The Analysis Report panel will look (something) like the following.

analysis report view

Initially the panel will show the Overview tab.

We will look at some the warnings issued by the analysis.

This is the end of the Visual Studio Tutorial. If you like, you can go to the tutorial index and choose another tutorial exercise.

If you don't have the required root project tree permissions

The tutorial steps described above require you to have the following permissions for the root project tree: ANALYSIS_READ, ANALYSIS_TERMINATE, ANALYSIS_WARNING_EXISTS, ANALYSIS_WARNING_READ, PROJECT_ADD_CHILD, PTREE_ADD_CHILD.

If you don't have all these permissions root project tree, but do have the corresponding permissions for a different project tree or project, you can do this tutorial with minor changes. There are two cases.

Visual Studio Plug-in Links

The following sections provide detailed information about installing and using the CodeSonar plug-in for Visual Studio.

 

To report problems with this documentation, please visit https://support.codesecure.com/.