Start here

Home
About Klocwork
What's new
Fixed issues
Release notes
Installation

Reference

C/C++ checkers
Java checkers
C# checkers
MISRA C 2004 checkers
MISRA C++ 2008 checkers
MISRA C 2012 checkers
MISRA C 2012 checkers with Amendment 1
Commands
Metrics
Troubleshooting
Reference

Product components

C/C++ Integration build analysis
Java Integration build analysis
Desktop analysis
Refactoring
Klocwork Static Code Analysis
Klocwork Code Review
Structure101
Tuning
Custom checkers

Coding environments

Visual Studio
Eclipse for C/C++
Eclipse for Java
IntelliJ IDEA
Other

Administration

Project configuration
Build configuration
Administration
Analysis performance
Server performance
Security/permissions
Licensing
Klocwork Static Code Analysis Web API
Klocwork Code Review Web API

Community

View help online
Visit RogueWave.com
Klocwork Support
Rogue Wave Videos

Legal

Legal information

Using the demosthenes demo project (Windows)

Prerequisites:

  • The Klocwork Server package and the Klocwork Visual Studio desktop plug-in must be installed.
  • The Klocwork servers must be running.
To test your Klocwork installation, you can use the sample project 'demosthenes' to quickly create and analyze a project. To set up the sample project:
  1. In the <klocwork_server_install>\samples directory, you can find the Demosthenes sample project. It is a C/C++ sample project that you can use with Visual Studio.
  2. From the <klocwork__server_install>\samples\demosthenes folder, run kwrun.bat. Note that if your Klocwork installation doesn't use the default server port 8080, you will need to edit the kwrun.bat file and change the server port to match your installation before you run the command. kwrun.bat creates a directory called demosthenes_winbuild in its current working directory. kwrun.bat creates a demosthenes project on the server and analyzes each revision of the source code.
  3. In your browser, enter the following URL: http://<klocwork_server_host>:<klocwork_server_port>.
  4. Select Klocwork Static Code Analysis and log in. A password is not required if you have not set up authentication.
  5. Choose demosthenes from the project list. From the issues list, you can investigate the issues and get familiar with all of the available features found in Klocwork Static Code Analysis.
  6. Next, open demosthenes in Visual Studio by opening the '4.sln' file found in the <klocwork_server_install>\samples\demosthenes\<visual studio version> folder.
  7. Connect the project to your Klocwork server by right-clicking the solution in the Solution Explorer and selecting Klocwork Solution Properties. Next, select 'demosthenes' from the Klocwork Server project list and click OK.
  8. With continuous analysis, issues are detected when you open or save a file. Make some changes to your code and find out how issues can be dealt with on the fly.