GNU complexity computes a complexity measure of C source code. For the most part, it is very similar to pmccabe results. The difference is that code length adds linearly to the score and logic nesting adds geometrically to the score. Short functions tend to score lower than pmccabe and highly nested functionality can score considerably higher. The weighting for length and nesting levels can be adjusted.
Complexity also understands C syntax a little better, but still overweights complex initializer expressions. New in 1.3 - October 2015 * src/complexity.c: explicitly include headers that are needed but usually included by config.h. (die): It is claimed that va_start() may expand to unbalanced opening braces, so add va_end(). This is not true, but added va_end() for balance anyway. * doc/Makefile.am: add "mk.sh" to EXTRA_DIST * incorporate a spelling fix from autogen complexity home: http://www.gnu.org/software/complexity/ primary ftp: ftp://ftp.gnu.org/gnu/complexity/ .tar.gz: ftp://ftp.gnu.org/gnu/complexity/complexity-1.3.tar.gz bug reports: bkorb at the usual GNU domain bug archive: http://lists.gnu.org/mailman/listinfo/bug-gnu-utils/ maintainer: Bruce Korb - bkorb at the usual GNU domain -- If you have a working or partly working program that you'd like to offer to the GNU project as a GNU package, see https://www.gnu.org/help/evaluation.html.