From 7308cb1a59d211f661f78a45be9c23f98dcec9fd Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Wed, 4 Sep 2019 11:58:49 +0200
Subject: [PATCH] Improve genhtml configuration to produce better coverage
 reports

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7ad0f8955..15d7b2ecc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -320,7 +320,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Coverage")
       ALL
       COMMAND ${CMAKE_COMMAND} -E remove_directory "${PUGS_BINARY_DIR}/coverage"
       COMMAND ${CMAKE_COMMAND} -E make_directory "${PUGS_BINARY_DIR}/coverage"
-      COMMAND ${GENHTML} -q -o coverage -t "${CMAKE_PROJECT_NAME} test coverage" --ignore-errors source --legend --num-spaces 4 coverage.info
+      COMMAND ${GENHTML} --demangle-cpp -q -o coverage -t "${CMAKE_PROJECT_NAME} test coverage" --ignore-errors source --legend --num-spaces 2 coverage.info
       DEPENDS coverage
       COMMENT "Building coverage html report."
       WORKING_DIRECTORY "${PUGS_BINARY_DIR}"
-- 
GitLab