ccm is a tool that analyzes C/C++ and C# code and reports back on Cyclomatic Complexity.Cyclomatic complexity is computed using a graph that describes the control flow of the program. The nodes of the graph correspond to the function of a program. A directed edge connects two nodes if the second function might be executed immediately after the first function. This technique is useful to determine how complex the function of code is.
ccm is a command line tool that accepts the path to directory you want to analyze. Using an /XML switch it will output the result as XML, making it easy to integrate with other tools, such as CruiseControl.NET, etc.
Usage
Running ccm without any parameters tells you about the available switches.
C:\Dev\ccm\bin>ccm
Missing parameters.
Usage:
ccm directory [/r] [/xml] [/n:x] [/e:folderlist] [/v]
switches:
r - act recursively on folders
xml - output into xml
n:x - list n-number of metrics (defaults to 30)
v - verbose
e:folderlist - comma-separated list of folders or paths to exclude
ccm.exe ..\..\relativepath-to-sources /n:15