This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
gcc, gcov and STL
- From: David Fendrich <david at aitellu dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 5 Oct 2009 18:27:34 +0200
- Subject: gcc, gcov and STL
When I compile my C++ unit tests with g++:
g++ -fprofile-arcs -ftest-coverage module.cpp testModule.cpp
and then try to get coverage data for "module.cpp":
./a.out
gcov module.cpp
My whole screen (and directory) get cluttered with coverage data for
the STL. How can I avoid this? What I would like is to only get
coverage data for the file that I am typing "gcov" on, or
alternatively only for my local directory subtree.
Tomorrow I will have to make a hacky script to grep away the STL
output and remove those output files. It is very annoying.
I have tried reading the manual, I have tried googling, but I cannot
figure out how to do this simple thing. I have seen others asking the
same question, but no answers. Please help.
/David Fendrich