[cfe-dev] Code coverage on clang

Nick Lewycky nlewycky at google.com
Tue Jul 9 10:31:43 PDT 2013


On 9 July 2013 00:47, mbm_kalpesh <mbm_kalpesh at yahoo.co.in> wrote:

> Thanks for the help.
> using libprofile_rt, the code is compiling and linking now and I am getting
> .so but no .gcno file is there. is that needed or am I missing something?
>

The .gcno is emitted at compile time (the -ftest-coverage flag) while the
.gcda is emitted when the instrumented program runs. You'll need both files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130709/03d51531/attachment.html>


More information about the cfe-dev mailing list