Gnocchi calculates complexity on a per function basis. Instead of trying to parse C++ code Gnocchi reads the coverage information produced by GCC. If code is compiled with -fprofile-arcs or -ftest-coverage (depending on compiler version) GCC creates a .gcno file for every object file. Please refer to you GCC manual for details. Gnocchi calculates cyclomatic and the NPATH complexity measures.
13 lines
407 B
Text
13 lines
407 B
Text
$NetBSD: patch-aa,v 1.1.1.1 2009/02/18 19:49:36 marko_schuetz Exp $
|
|
|
|
--- Makefile.in.orig 2007-06-26 08:55:13.000000000 -0400
|
|
+++ Makefile.in
|
|
@@ -240,7 +240,7 @@ gnocchi_SOURCES = \
|
|
npath_counter.hpp \
|
|
reporter.hpp
|
|
|
|
-gnocchi_LDADD = -lboost_filesystem -lboost_program_options
|
|
+gnocchi_LDADD = -lboost_filesystem-mt -lboost_program_options-mt
|
|
all: auto-host.h
|
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
|
|