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 | ( | ) |
Referenced by common_handle_option(), and process_options().
const char* colorize_start | ( | ) |
References color_cap::name, color_cap::name_len, and color_cap::val.
Referenced by colorize_start(), diagnostic_build_prefix(), diagnostic_show_locus(), file_name_as_prefix(), and pp_format().
const char* colorize_stop | ( | ) |
Referenced by diagnostic_build_prefix(), diagnostic_show_locus(), file_name_as_prefix(), and pp_format().
|
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.
References free(), color_cap::free_val, getenv(), 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.
References getenv().
|
static |
For GCC_COLORS.