GCC Middle and Back End API Reference
opts-diagnostic.h File 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)

Function Documentation

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.  
         A warning classified as an error.  
                          Skip over "-W".  
         A warning with option.  
     A warning without option classified as an error.