GCC Middle and Back End API Reference
diagnostic_context Struct Reference

#include <diagnostic.h>

Collaboration diagram for diagnostic_context:

Data Fields

pretty_printerprinter
int diagnostic_count [DK_LAST_DIAGNOSTIC_KIND]
bool some_warnings_are_errors
bool warning_as_error_requested
int n_opts
diagnostic_tclassify_diagnostic
diagnostic_classification_change_tclassification_history
int n_classification_history
int * push_list
int n_push
bool show_caret
int caret_max_width
bool show_option_requested
bool abort_on_error
bool show_column
bool pedantic_errors
bool permissive
int opt_permissive
bool fatal_errors
bool dc_inhibit_warnings
bool dc_warn_system_headers
unsigned int max_errors
diagnostic_starter_fn begin_diagnostic
diagnostic_finalizer_fn end_diagnostic
void(* internal_error )(diagnostic_context *, const char *, va_list *)
int(* option_enabled )(int, void *)
void * option_state
char *(* option_name )(diagnostic_context *, int, diagnostic_t, diagnostic_t)
void * x_data
location_t last_location
struct line_map * last_module
int lock
bool inhibit_notes_p

Detailed Description

This data structure bundles altogether any information relevant to
   the context of a diagnostic message.   

Field Documentation

bool diagnostic_context::abort_on_error
diagnostic_starter_fn diagnostic_context::begin_diagnostic
int diagnostic_context::caret_max_width
bool diagnostic_context::dc_inhibit_warnings
bool diagnostic_context::dc_warn_system_headers
int diagnostic_context::diagnostic_count[DK_LAST_DIAGNOSTIC_KIND]

Referenced by diagnostic_initialize().

diagnostic_finalizer_fn diagnostic_context::end_diagnostic
bool diagnostic_context::fatal_errors
void(* diagnostic_context::internal_error)(diagnostic_context *, const char *, va_list *)
location_t diagnostic_context::last_location
struct line_map* diagnostic_context::last_module

Referenced by diagnostic_initialize().

int diagnostic_context::lock
unsigned int diagnostic_context::max_errors
int diagnostic_context::n_opts
int diagnostic_context::n_push
int diagnostic_context::opt_permissive

Referenced by diagnostic_initialize().

int(* diagnostic_context::option_enabled)(int, void *)
char*(* diagnostic_context::option_name)(diagnostic_context *, int, diagnostic_t, diagnostic_t)
void* diagnostic_context::option_state
bool diagnostic_context::pedantic_errors
bool diagnostic_context::permissive

Referenced by diagnostic_initialize().

int* diagnostic_context::push_list
bool diagnostic_context::show_caret
bool diagnostic_context::show_option_requested
bool diagnostic_context::some_warnings_are_errors
bool diagnostic_context::warning_as_error_requested
void* diagnostic_context::x_data

Referenced by diagnostic_initialize().


The documentation for this struct was generated from the following file: