csdiff - Man Page
take two lists of defects and output either added or fixed ones
Synopsis
csdiff [options] old.err new.err, where options are:
Description
- -x [ --fixed ]
print fixed defects (just swaps the arguments)
- -z [ --ignore-path ]
ignore directory structure when matching
- -i [ --show-internal ]
include internal warnings in the output
- -q [ --quiet ]
do not report any parsing errors
- -c [ --coverity-output ]
write the result in Coverity format
- -j [ --json-output ]
write the result in JSON format
- --html-output
write the result in HTML format
- -s [ --file-rename ] arg
account the file base-name change, [OLD,NEW] (*testing*)
- -f [ --filter-file ] arg
read custom filtering rules from a file in JSON format
- --color
use colorized console output (default if connected to a terminal)
- --no-color
do not use colorized console output
- --help
produce help message
- --version
print version
Options
The --filter-file option takes a list of JSON files in the following format. Missing replace entry is equal to "replace" : "".
{ "msg-filter" : [ { "checker" : "DIVINE|SYMBIOTIC", "regexp" : "memory" }, { "checker" : "COMPILER_WARNING", "regexp" : "called on unallocated object", "replace" : "called correctly, no UB here" } ] }
Exit Status
csdiff exits with status 0 if arguments are valid and input files are parsed successfully. It does not matter whether any defects were matched or not.