diff options
author | Martin Liska <mliska@suse.cz> | 2017-10-31 12:57:10 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-10-31 11:57:10 +0000 |
commit | 28f4a4a85f3b95f7ccf7585eaa5cbd50cbe1677d (patch) | |
tree | 1cf4d862d50b7877bf04bb3a8fec394f9b192782 /gcc/doc | |
parent | 00da60d4def3782039bef86fbdf07fd620d8b57a (diff) | |
download | gcc-28f4a4a85f3b95f7ccf7585eaa5cbd50cbe1677d.zip gcc-28f4a4a85f3b95f7ccf7585eaa5cbd50cbe1677d.tar.gz gcc-28f4a4a85f3b95f7ccf7585eaa5cbd50cbe1677d.tar.bz2 |
GCOV: introduce usage of terminal colors.
2017-10-31 Martin Liska <mliska@suse.cz>
* 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
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/gcov.texi | 9 |
1 files changed, 9 insertions, 0 deletions
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 |