[cfe-dev] clang and code coverage?
Christopher Jefferson
chris at bubblescope.net
Mon Aug 16 12:56:59 PDT 2010
On 16 Aug 2010, at 17:50, Sean McBride wrote:
> Hi all,
>
> Is there any way to measure code coverage when using clang?
I have used callgrind, which comes with valgrind, to do code coverage with gcc. While I haven't tried it with clang, it makes use of debugging information so I assume it would work.
Chris
>
> The gcov docs say: "gcov works only on code compiled with GCC." Is this
> true of code built by clang? Or does clang's "GCC compatibility" design
> goal extend to this situation? If not, does/will the llvm project
> include a replacement for gcov?
>
> I'd like to be able to generate something not unlike what clang's own
> webpage shows of clang's tests:
>
> <http://test.minormatter.com/~ddunbar/clang-cov/>
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng sean at rogue-research.com
> Rogue Research www.rogue-research.com
> Mac Software Developer Montréal, Québec, Canada
>
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list