Skip to content

Commit 66db744

Browse files
ktnsoberpar
authored andcommitted
Support passing demangle-cpp option via lcovrc
This patch allows users to passing the demangle-cpp option to genhtml via lcovrc, alongside with CUI. Signed-off-by: Katsuhiko Nishimra <ktns.87@gmail.com>
1 parent b6fb452 commit 66db744

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

bin/genhtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ if ($config || %opt_rc)
387387
"genhtml_sort" => \$sort,
388388
"genhtml_charset" => \$charset,
389389
"genhtml_desc_html" => \$rc_desc_html,
390+
"genhtml_demangle_cpp" => \$demangle_cpp,
390391
"lcov_function_coverage" => \$lcov_func_coverage,
391392
"lcov_branch_coverage" => \$lcov_branch_coverage,
392393
});

lcovrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ genhtml_desc_html=0
9696
# Specify the precision for coverage rates
9797
#genhtml_precision=1
9898

99+
# Demangle C++ symbols
100+
#genhtml_demangle_cpp=1
101+
99102
# Location of the gcov tool (same as --gcov-info option of geninfo)
100103
#geninfo_gcov_tool = gcov
101104

man/lcovrc.5

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ genhtml_desc_html=0
159159
#genhtml_precision=1
160160
.br
161161

162+
# Demangle C++ symbols
163+
.br
164+
#genhtml_demangle_cpp=1
165+
.br
166+
162167
# Location of the gcov tool
163168
.br
164169
#geninfo_gcov_tool = gcov
@@ -557,6 +562,18 @@ when a custom HTML prolog is specified (see also
557562
Default is UTF-8.
558563
.PP
559564

565+
.BR genhtml_demangle_cpp " ="
566+
.IR 0 | 1
567+
.IP
568+
If non-zero, demangle C++ function names in function overviews.
569+
570+
Set this option to one if you want to convert C++ internal function
571+
names to human readable format for display on the HTML function overview
572+
page. This option requires that the c++filt tool is installed (see
573+
.BR c++filt(1)
574+
).
575+
.PP
576+
560577
.BR genhtml_desc_html " ="
561578
.IR 0 | 1
562579
.IP

0 commit comments

Comments
 (0)