[cfe-dev] clang and code coverage?

Sean McBride sean at rogue-research.com
Mon Aug 16 09:50:24 PDT 2010


Hi all,

Is there any way to measure code coverage when using clang?

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






More information about the cfe-dev mailing list