CCCC is an open source tool which analyzes C++ and Java files and generates a report on various metrics of the code.
CCCC is a command line tool, originally implemented for Linux and other
POSIX-style platforms, but also buildable on the Win32 platform.
Files to be analyzed are listed (typically on the command line, although
support does exist for the list of files to be read from standard input.
The program analyzes the files and generates a one or more reports in HTML
or XML format on the content.
Metrics supported include lines of code, McCabe`s complexity and metrics proposed by Chidamber & Kemerer and Henry & Kafura.
Here are some key features of "CCCC":
· internal database recoded using STL (much faster! no hard-coded limits on run size!)
· persistent file format allows analysis outcomes to be saved across runs, reloaded, read by other tools
· all output files are now generated into a single directory, (by default .cccc under the current working directory)
· each class identified has a detailed report (as in 2.1.4), in this report, low-level data are accompanied by HTML links to the location in the source file which gave rise to the data (as in 2.1.4), however these links now work (they didn`t in 2.1.4), and they take you directly to the relevant line in an HTML-ized clone of the analyzed source code (in 2.1.2, before I broke the links, they took you to the primary source file - due to the fact that the files don`t have HTML tags embedded, the link could only take you to the top of the file)
· configuration directory no longer required (some configuration items can be loaded from a file specified on the command line)
Requirements:
· Apple Xcode