|
GCC Middle and Back End API Reference
|

Data Structures | |
| struct | color_cap |
Functions | |
| const char * | colorize_start () |
| const char * | colorize_stop () |
| static bool | parse_gcc_colors () |
| bool | colorize_init () |
| static bool | should_colorize () |
Variables | |
| static struct color_cap | color_dict [] |
| bool colorize_init | ( | ) |
| const char* colorize_start | ( | ) |
Referenced by diagnostic_build_prefix().
| const char* colorize_stop | ( | ) |
References getenv(), color_cap::name, and color_cap::val.
Referenced by diagnostic_build_prefix().
|
static |
Parse GCC_COLORS. The default would look like: GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' No character escaping is needed or supported.
From now on, be well-formed or you're gone.
Empty name without val (empty cap)
won't match and will be ignored. If name unknown, go on for forward compatibility.
References free(), color_cap::free_val, memcpy(), color_cap::name, color_cap::name_len, strlen(), and color_cap::val.
|
static |
Return true if we should use color when in auto mode, false otherwise.
|
static |
For GCC_COLORS.