GCC Middle and Back End API Reference
|
Go to the source code of this file.
Functions | |
char * | option_name (diagnostic_context *context, int option_index, diagnostic_t orig_diag_kind, diagnostic_t diag_kind) |
char* option_name | ( | diagnostic_context * | context, |
int | option_index, | ||
diagnostic_t | orig_diag_kind, | ||
diagnostic_t | diag_kind | ||
) |
Return malloced memory for the name of the option OPTION_INDEX which enabled a diagnostic (context CONTEXT), originally of type ORIG_DIAG_KIND but possibly converted to DIAG_KIND by options such as -Werror.
References cl_options, and diagnostic_context::warning_as_error_requested.
Referenced by general_init().