|File Search||Catalog||Content Search|
Pmccabe also includes a non-commented line counter compatible with anac, 'decomment' which only removes comments from source code; 'codechanges', a program to calculate the amount of change which has occurred between two source trees or files; and 'vifn', to invoke 'vi' given a function name rather than a file name.
Pmccabe attempts to calculate the apparent complexity rather than the complexity following the C++ and/or cpp preprocessors. This causes Pmccabe to become confused with cpp constructs which cause unmatched curly braces - most of which can profitably be rewritten so they won't confuse prettyprinters anyway. Pmccabe prints C-compiler-style error messages when the parser gets confused so they may be browsed with standard tools.
Two types of cyclomatic complexity are generated - one type counts each switch() statement as regardless of the number of cases included and the other more traditional measure counts each case within the switch(). Pmccabe also calculates the starting line for each function, the number of lines consumed by the function, and the number of C statements within the function.
codechanges(1) codechanges(1) NAME codechanges - computes the amount of code changes between two code trees or single files SYNOPSIS codechanges [-n] old-directory new-directory codechanges [-n] old-file new-file DESCRIPTION codechanges recursively compares the two named directories (or files) calculating ne more»
decomment(1) decomment(1) NAME decomment - remove comments from C and C++ files SYNOPSIS decomment [file(s)] DESCRIPTION decomment processes the named files, or standard input if none are named, copying their contents to standard output with comments removed. Line numbers in the input file(s) and ou more»
pmccabe(1) pmccabe(1) NAME pmccabe - calculate McCabe cyclomatic complexity or non-com‐ mented line counts for C and C++ programs SYNOPSIS pmccabe [-bCdfFntTvV?] [file(s)] DESCRIPTION pmccabe processes the named files, or standard input if none are named. In default mode it calculates statistics includ‐ more»
vifn(1) vifn(1) NAME vifn - edit by f more»
pmccabe (2.5) unstable; urgency=low * updated codechanges and pdiff to be bashism safe * update more»
Version 2.2 Prepare for releasing to Open Source, includes Debianizing. Version 2.1 Allow n more»
Test namespaces -- probably won't work. Perhaps other features newer than templates will break too more»
This package was debianized by Paul Bame <email@example.com> on Tue, 17 Dec 2002 10:07:41 -0700. It w more»