On 10/26/2017 04:11 AM, marxin wrote:
I consider using colors in context of gcov as very useful. There's example for tramp3d: https://pste.eu/p/Tl2D.html
nice!
gcc/ChangeLog: 2017-10-23 Martin Liska <mli...@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.
The gcov changes are ok. I guess David has the review ball for the diagnostic refactoring?
nathan -- Nathan Sidwell