GCOV: introduce usage of terminal colors.
commitc536c15fe32bef548d214f961a8d0a21e936b997
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Oct 2017 11:57:10 +0000 (31 11:57 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 31 Oct 2017 11:57:10 +0000 (31 11:57 +0000)
tree1cf4d862d50b7877bf04bb3a8fec394f9b192782
parent7aa650153c254090ed3f393320471967ed71cb10
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254258 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/color-macros.h [new file with mode: 0644]
gcc/diagnostic-color.c
gcc/doc/gcov.texi
gcc/gcov.c