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
8 comments:
Thanks, nice tool. A GUI would be an added advantage.
Regards,
Jayanta
Yes .I think so .As I know in new Visual Studio Team Edition(Orcas) we should get something similar with UI.
You know... even one example of how to use the tool here would be just a really nice thing. ;-)
Added..;-)
Are you going to open-source the code base?
No ,I'm not author of this tool .You may find the contact information on url that I provided in my post.
i m not able to run the code plz can u guide me how to pass the arguments
I only get "Access to the path [MY_PATH] is denied."
I tried copying the directory next to the exe, and shortening the paths, nothing works. (XP/SP3 here, code checked out using SVN)
Post a Comment