[-l] print number of lines in file
[-c] print number of lines that contain comments
[-r] print ratio of lines against lines with comments
[-a] print all of the above
This command takes as its standard input a file that has had the comments, string and character constants removed (by mcstrip ). It will then produce either flowcharts or the cyclomatic complexity number of one or more files in the input.
Information [-l] prints results of tokenisation
[-t] prints results of flow generation
Functions [-i] ignores functions declared within a
[-n func#] limits output of -p,-f,-F,-c to the given
function number, rather than the default of all functions.
[-f] prints function name(s)
[-F] prints functions called by each source function
[-c] print cyclomatic complexity of function(s)
[-p] produce postscript flow graph
[-s scale] scales postscript output (float)
[-d] prints function names to postscript standard output
papers contain further relevant information:
’A Complexity Measure’ McCabe T.J., IEEE Transactions on Software Engineering
vol SE-2, #4 1976, pp 308-320.
’A Critique of Cyclomatic Complexity as a Software Metric’ Shepperd M., Software
Engineering Journal, March 1988, pp 30-36.
’Software Defect Prevention Using McCabe’s Complexity Metric’ Ward W.T., Hewlett-Packard
Journal, April 1989, pp 64-69.
Constructors that have an initialiser list have their names incorrectly
Lexical elements that span more than one line are not recognised. This includes strings terminating with a continuation slash, struct and the following tag, and function names and the following opening parenthesis.
These tools were produced by Roger Binns for a fourth year project as part of a computer science degree, for the Computer Science department, Brunel University, Uxbridge, Middlesex UB8 3PH, United Kingdom.
This software is provided in good faith, having been developed by Brunel University students as part of their normal course work. It should not be assumed that Brunel has any rights of ownership, and the University cannot accept any liability for its subsequent use. It is a condition of any such use that the user idemnifies the University against any claim (including third party claims) arising therefrom.
Table of Contents