Hi.
I just looked at a LCOV report for some code using C++, generated with LCOV 1.7.
First, thanks a lot for the new function coverage feature.
A minor bug:
In the report showing the function_name / hit count table,
names for C++ methods are using the C++ encoded name (_ZN13MYSQL_BIN_LOG25set_purge_index_file_nameEPKc),
where the demangled name (MYSQL_BIN_LOG::set_purge_index_file_name(char const*)) would be much nicer.
malff@linux-su11:~> c++filt --version
GNU c++filt (GNU Binutils; openSUSE 11.1) 2.19
malff@linux-su11:~> c++filt
"_ZN13MYSQL_BIN_LOG25set_purge_index_file_nameEPKc"
MYSQL_BIN_LOG::set_purge_index_file_name(char const*)
Regards,
-- Marc Alff
The CVS version of LCOV already handles this problem: genhtml has a new switch --demangle-cpp which, when called, will use c++filt to convert all function names. There will be a new LCOV release soon containing this new switch.