[cfe-dev] clang and code coverage?
chris at bubblescope.net
Mon Aug 16 14:56:59 CDT 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.
> 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:
> 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
More information about the cfe-dev