Re: gcov/-ftest-coverage instrumentation for uninstantiated C++ function templates

2011-04-29 Thread Andi Hellmund
Hey Manuel, I would like to be able to change this behaviour so non-instantiated code templates are considered as blocks (I think this is the term used by GCC/GCov). This would help me greatly to uncover unused/untested codes in a header/template-only library. First of all: Is this feasible

gcov/-ftest-coverage instrumentation for uninstantiated C++ function templates

2011-04-26 Thread Manuel Holtgrewe
Dear all, I would like to instrument uninstantiated C++ function templates. When compiling the program below with the -ftest-coverage and -fprofile- arcs flags, I get according .gcno and .gcda files to run gcov and get a coverage report. In this report, the line marked with XXX will be mar