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

Matching issues across projects

You can run the cross-project issue matching tool, kwmatch, to match defects among projects that share the same source code. Matching issues are displayed in the issue details in Klocwork Static Code Analysis:

Image:Kwmatch issue details.png

To match issues across projects:

  1. Set up an issue matching group with kwmatch init:
    kwmatch init
    
    This command sets up an issue matching group with the default name, xsync, on the default Database Server host and port, localhost:3306.
  2. Add projects to the issue matching group with kwmatch add:
    kwmatch add http://myserver:8080/demosthenes http://myserver:8080/demosthenes_branch_1 http://myserver:8080/demosthenes_branch_2
    
    This command adds three projects to the default issue matching group, xsync. Note that you must use project URLs, not project names, in the command line. The projects do not need to be on the same Klocwork Server or in the same projects_root directory.
    You will see output similar to the following:
Adding http://myserver:8080/demosthenes to issue matching group xsync@localhost:3306
Synchronizing project http://myserver:8080/demosthenes...
Adding http://myserver:8080/demosthenes_branch_1 to issue matching group xsync@localhost:3306
Synchronizing project http://myserver:8080/demosthenes_branch_1...
Adding http://myserver:8080/demosthenes_branch_2 to issue matching group xsync@localhost:3306
Synchronizing project http://myserver:8080/demosthenes_branch_2...
Tip: You can remove projects from an issue matching group with kwmatch remove.