GCOV: introduce usage of terminal colors.
authorMartin Liska <mliska@suse.cz>
Tue, 31 Oct 2017 11:57:10 +0000 (12:57 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 31 Oct 2017 11:57:10 +0000 (11:57 +0000)
commit28f4a4a85f3b95f7ccf7585eaa5cbd50cbe1677d
tree1cf4d862d50b7877bf04bb3a8fec394f9b192782
parent00da60d4def3782039bef86fbdf07fd620d8b57a
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
gcc/ChangeLog
gcc/color-macros.h [new file with mode: 0644]
gcc/diagnostic-color.c
gcc/doc/gcov.texi
gcc/gcov.c