On Wed, 18 May 2016 18:25:00 +1000
Andrew Donnellan wrote:
> On 13/05/16 09:58, Emese Revfy wrote:
> > Add a very simple plugin to demonstrate the GCC plugin infrastructure. This
> > GCC
> > plugin computes the cyclomatic complexity of each function.
>
> ...
>
> > +config GCC_PLUGIN_CYC_COMPLE
On 13/05/16 09:58, Emese Revfy wrote:
Add a very simple plugin to demonstrate the GCC plugin infrastructure. This GCC
plugin computes the cyclomatic complexity of each function.
...
+config GCC_PLUGIN_CYC_COMPLEXITY
+ bool "Compute the cyclomatic complexity of a function"
+ depend
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
3 matches
Mail list logo