C/C++ integration build analysis - Cheat sheet

From current

Switch to C# | Java

An integration build analysis... Prefer video or flowchart?
  • gives you a snapshot of the current health of your software project. Once you've run an analysis, detected issues and reports are available in Klocwork Review.
  • is the first step in establishing the connected desktop in your organization

Prerequisite:

Video:
Build integration video.png

Flowchart:

Flow chart
Your first analysis
  1. Create a project:
    kwadmin --url http://server2:8080/ create-project my_project
  2. Capture your build settings:
    kwinject <my_build_command>
  3. Run the analysis:
    kwbuildproject --url http://server2:8080/my_project --tables-directory /my_tables kwinject.out
  4. Load the database:
    kwadmin --url http://server2:8080/ load my_project /my_tables
Details: Running the C/C++ integration build analysis
Your next analysis
After your first analysis, you can use incremental analysis thereafter.
Important: To take advantage of incremental analysis, don't delete your tables directory.
  1. Update your build settings:
    kwinject --update <my_build_command>
  2. Run an incremental analysis:
    kwbuildproject --url http://server2:8080/my_project --tables-directory /my_tables --incremental kwinject.out
  3. Load the database:
    kwadmin --url http://server2:8080/ load my_project /my_tables 
Details: Running incremental analysis
Note: Whenever you do a clean build (full rebuild of your source files), you should run a full build analysis.