Skip to content

ephox-gcc-plugins/cyclomatic_complexity

Repository files navigation

cyclomatic_complexity

Compute cyclomatic complexity of functions based on the gcc internal representation.

http://en.wikipedia.org/wiki/Cyclomatic_complexity

The complexity M is then defined as M = E − N + 2P where

E = the number of edges of the graph
N = the number of nodes of the graph
P = the number of connected components (exit nodes).

Compiling & Usage

gcc 4.5 - 5:
$ make clean ; make
Usage
$ make run

About

Compute cyclomatic complexity of functions based on the gcc internal representation.

Resources

Stars

Watchers

Forks

Packages

No packages published