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++

Quick Start (Windows Build Wizard)

The Windows Build Wizard is most useful for C and C++ projects.

This section is designed to get you started using CodeSonar as quickly as possible. If you get stuck, see the links provided for more detailed information. For a guided introduction to CodeSonar see the tutorial.

Overview

In most cases we recommend starting with the CodeSonar tutorial. However, if you want to get started as quickly as possible (for example, because you have used CodeSonar before and just need a refresher), the steps are as follows.

  1. Install CodeSonar, if you have not already done so: see section Installing or Upgrading CodeSonar.
  2. Set up a hub, if one is not already running: see section Installation: Setting Up The Hub.
  3. Build and analyze your project.
  4. Browse the analysis results.

3. Build and Analyze

  1. Start up your regular build environment (for example, Visual C++) and load your software project ready for building.
  2. Invoke the CodeSonar build wizard from the Windows Start menu: CodeSonar
    (If there is no Start menu item, use the Windows file explorer to navigate to the \codesonar\bin subfolder of the CodeSonar installation folder, then double-click hookcs[.exe].
  3. On the first screen of the wizard specify a Save As name and directory for your CodeSonar project, click Next.
  4. On the second screen of the wizard, click Record.
  5. Build your software project in your regular build environment.
  6. On the third screen of the wizard, click Finalize.
  7. On the fourth screen of the wizard, click Browse Project.

The degree of parallelism in the analysis will depend on the setting of ANALYSIS_SLAVES.

For more details, see section Building and Analyzing Projects (Windows).

4. Browse

This is the Analysis page. It displays information about the CodeSonar analysis of the project. By default it will show the Warnings tab, which contains a table with a line of information about each warning generated.

To view a warning report, click anywhere on its entry in the summary table. A warning report page will open, containing:

For more details, see section Warning Report.

 

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