• David Gibson's avatar
    ccanlint: Correct default coverage tool for clang · 319dadd4
    David Gibson authored
    Currently ccanlint defaults to using "gcov" as the coverage analysis tool
    for any compiler defining __GNUC__.  That's generally correct for the
    (system default) gcc.  However, clang also defines __GNUC__ because it
    implements the GCC langauge extensions.  For clang, "gcov" is not the
    correct coverage tool (clang does use roughly the gcov format, but unless
    you're very lucky the system gcc and system clang won't use the same gcov
    versions).
    
    This changes the default coverage tool in the case of clang to the correct
    "llvm-cov gcov".
    Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
    319dadd4
gcov.c 1002 Bytes