From 28f4a4a85f3b95f7ccf7585eaa5cbd50cbe1677d Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 31 Oct 2017 12:57:10 +0100 Subject: GCOV: introduce usage of terminal colors. 2017-10-31 Martin Liska * color-macros.h: New file. * diagnostic-color.c: Factor out color related to macros to color-macros.h. * doc/gcov.texi: Document -k option. * gcov.c (INCLUDE_STRING): Include string.h. (print_usage): Add -k option. (process_args): Parse it. (pad_count_string): New function. (output_line_beginning): Likewise. (DEFAULT_LINE_START): New macro. (output_lines): Support color output. From-SVN: r254258 --- gcc/doc/gcov.texi | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/doc/gcov.texi') diff --git a/gcc/doc/gcov.texi b/gcc/doc/gcov.texi index 88b8d6d..9abc603 100644 --- a/gcc/doc/gcov.texi +++ b/gcc/doc/gcov.texi @@ -125,6 +125,7 @@ gcov [@option{-v}|@option{--version}] [@option{-h}|@option{--help}] [@option{-d}|@option{--display-progress}] [@option{-f}|@option{--function-summaries}] [@option{-i}|@option{--intermediate-format}] + [@option{-k}|@option{--use-colors}] [@option{-l}|@option{--long-file-names}] [@option{-m}|@option{--demangled-names}] [@option{-n}|@option{--no-output}] @@ -215,6 +216,14 @@ lcount:26,1 branch:28,nottaken @end smallexample +@item -k +@itemx --use-colors + +Use colors for lines of code that have zero coverage. We use red color for +non-exceptional lines and cyan for exceptional. Same colors are used for +basic blocks with @option{-a} option. + + @item -l @itemx --long-file-names Create long file names for included source files. For example, if the -- cgit v1.1