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

Kwlogparser

The kwlogparser command converts your build log into a Klocwork build trace. The build trace can then be converted into a build specification.

Usage

kwlogparser [options] <parser> <build_log_file>

where

  • [options] are any of the options from the table below
  • <parser> is the parser used in your build. Currently, only the Electric Cloud parser is supported. The acceptable value for this field is emake-annotation.
  • <build_log_file> is your build log file. Currently, only the Electric Cloud annotation file format is supported.

Example

kwlogparser --output emake.trace emake-annotation emake.xml

In this example, the emake annotation log file named emake.xml will be output to a build trace named emake.trace.

Options

Name Short name Description
--cmd-line <parser>   specify the type of parser to use for parsing command lines. This option can be useful when using Cygwin. Possible values are:
  • shell (Unix Bourne-like shell)
  • cmd (Windows cmd.exe)

Default for Unix: shell

Default for Windows: cmd

--config <file> -c read filter configuration from <file>. The default is <Klocwork_install>/config/kwfilter.conf. Allows you to use a "private" copy of kwfilter.conf and the compiler configuration files, so that the originals do not need to be modified. See Creating a C/C++ build specification.
--debug   print debug information to standard error
--help -h print this help and exit
--output <file> -o write build trace to <file>. Default:kwlogparser.trace
--verbose -V print verbose information about program execution, which can help to troubleshoot errors
--version -v print version and exit