Skip to content

Commit

Permalink
Demangle function names in LCOV
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed Nov 30, 2019
1 parent 8e665b5 commit ec1382b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ rm -rf "$html_dest/*"

if [ "${1,,}" == "clang" ]; then
gcov_bin="$dir/llvm-cov-gcov.sh"
# Replace the default c++filt program with LLVM/Clang's version
mkdir /tmp/clang-cxxfilt
ln -s `which llvm-cxxfilt` /tmp/clang-cxxfilt/c++filt
export PATH=/tmp/clang-cxxfilt:$PATH
which c++filt
else
gcov_bin="gcov"
fi
Expand Down Expand Up @@ -69,6 +74,8 @@ genhtml \
"$dest"/coverage_filtered.info \
--output-directory="$html_dest" \
--legend --title `cd "$proj_dir" && git rev-parse HEAD` \
--rc lcov_branch_coverage=$branches
--rc lcov_branch_coverage=$branches \
-s \
--demangle-cpp

./scripts/coverage-badge.py

0 comments on commit ec1382b

Please sign in to comment.