cccc(1)

cccc1

C and c++ code counter, a software metrics tool

Usage

cccc [options] file1.c ...

Overview

CCCC analyses and reports measurements of source code in C, C++, and Java. The metrics supported include lines of code, McCabe's Cyclomatic Complexity, and measures of module fan-out/fan-in.

CCCC processes the files listed on its command line. If the filenames include ‘-’, read a list of files from standard input.

This program is work in progress and is not well documented. Please be prepared to refer to the source code for the meaning of some options.

Options

--help

Generate this help message.

--outdir=dname

Directory for generated files (default=.cccc).

--html_outfile=fname

Name of primary HTML report generated (default=outdir/cccc.html).

--xml_outfile=fname

Name of primary XML report generated (default=outdir/cccc.xml).

--db_infile=fname

Preload internal database from named file (default=no initial content).

--db_outfile=fname

Save internal database to named file (default=outdir/cccc.db).

--opt_infile=fname

Load options from named file (default=use compiled-in option values, refer to cccc_opt.cc for option information).

--opt_outfile=fname

Save options to named file (default=outdir/cccc.opt).

--lang=string

Use language specified for files specified after this option. Languages supported are c, c++, ada, and java (default=use language/extension mapping controlled by options).

--report_mask=hex

Control report content (refer to ccccmain.cc for mask values).

--debug_mask=hex

Control debug output content (refer to ccccmain.cc for mask values).

Releases

11 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1–7
  2. 8–11
  3. 12–13

--xml_outfile since Debian 12 (Bookworm).

Author

CCCC was written by Tim Littlefair <[email protected]>.

This manual page was written by Colin Watson <[email protected]> for the Debian system (but may be used by others).

From cccc 1:3.2.0+dfsg1-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.