csdiff - Man Page

take two lists of defects and output either added or fixed ones


csdiff [options] old.err new.err, where options are:


-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


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


use colorized console output (default if connected to a terminal)


do not use colorized console output


produce help message


print version


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.


February 2024 csdiff 3.2.1