Re: [PATCH v7 4/6] Add Cyclomatic complexity GCC plugin

2016-05-01 Thread Masahiro Yamada
Hi Emese, 2016-04-23 3:24 GMT+09:00 Emese Revfy : > diff --git a/scripts/Makefile.gcc-plugins b/scripts/Makefile.gcc-plugins > index e6d66e2..282d63a 100644 > --- a/scripts/Makefile.gcc-plugins > +++ b/scripts/Makefile.gcc-plugins > @@ -2,6 +2,8 @@ ifdef CONFIG_GCC_PLUGINS >__PLUGINCC := $(c

[PATCH v7 4/6] Add Cyclomatic complexity GCC plugin

2016-04-22 Thread Emese Revfy
Add a very simple plugin to demonstrate the GCC plugin infrastructure. This GCC plugin computes the cyclomatic complexity of each function. The complexity M of a function's control flow graph is defined as: M = E - N + 2P where E = the number of edges N = the number of nodes P = the number of conn