GCC Middle and Back End API Reference
|
#include <diagnostic.h>
Data Fields | |
pretty_printer * | printer |
int | diagnostic_count [DK_LAST_DIAGNOSTIC_KIND] |
bool | some_warnings_are_errors |
bool | warning_as_error_requested |
int | n_opts |
diagnostic_t * | classify_diagnostic |
diagnostic_classification_change_t * | classification_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 |
This data structure bundles altogether any information relevant to the context of a diagnostic message.
bool diagnostic_context::abort_on_error |
Referenced by diagnostic_action_after_output(), diagnostic_initialize(), and diagnostic_report_diagnostic().
diagnostic_starter_fn diagnostic_context::begin_diagnostic |
int diagnostic_context::caret_max_width |
Referenced by diagnostic_set_caret_max_width(), and diagnostic_show_locus().
diagnostic_classification_change_t* diagnostic_context::classification_history |
Referenced by diagnostic_classify_diagnostic(), diagnostic_pop_diagnostics(), and diagnostic_report_diagnostic().
diagnostic_t* diagnostic_context::classify_diagnostic |
bool diagnostic_context::dc_inhibit_warnings |
Referenced by common_handle_option(), and diagnostic_initialize().
bool diagnostic_context::dc_warn_system_headers |
Referenced by common_handle_option(), and diagnostic_initialize().
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 |
Referenced by common_handle_option(), diagnostic_action_after_output(), and diagnostic_initialize().
bool diagnostic_context::inhibit_notes_p |
void(* diagnostic_context::internal_error)(diagnostic_context *, const char *, va_list *) |
Referenced by diagnostic_initialize(), diagnostic_report_diagnostic(), and general_init().
location_t diagnostic_context::last_location |
Referenced by diagnostic_initialize(), and diagnostic_show_locus().
struct line_map* diagnostic_context::last_module |
Referenced by diagnostic_initialize().
int diagnostic_context::lock |
Referenced by diagnostic_initialize(), diagnostic_report_diagnostic(), and error_recursion().
unsigned int diagnostic_context::max_errors |
Referenced by common_handle_option(), diagnostic_action_after_output(), and diagnostic_initialize().
int diagnostic_context::n_classification_history |
int diagnostic_context::n_opts |
Referenced by diagnostic_classify_diagnostic(), and diagnostic_initialize().
int diagnostic_context::n_push |
Referenced by diagnostic_pop_diagnostics(), and diagnostic_push_diagnostics().
int diagnostic_context::opt_permissive |
Referenced by diagnostic_initialize().
int(* diagnostic_context::option_enabled)(int, void *) |
Referenced by diagnostic_initialize(), diagnostic_report_diagnostic(), and general_init().
char*(* diagnostic_context::option_name)(diagnostic_context *, int, diagnostic_t, diagnostic_t) |
Referenced by diagnostic_initialize(), diagnostic_report_diagnostic(), and general_init().
void* diagnostic_context::option_state |
Referenced by diagnostic_initialize(), diagnostic_report_diagnostic(), and general_init().
bool diagnostic_context::pedantic_errors |
Referenced by common_handle_option(), and diagnostic_initialize().
bool diagnostic_context::permissive |
Referenced by diagnostic_initialize().
pretty_printer* diagnostic_context::printer |
Referenced by announce_function(), common_handle_option(), default_diagnostic_starter(), default_tree_diagnostic_starter(), diagnostic_append_note(), diagnostic_build_prefix(), diagnostic_finish(), diagnostic_initialize(), diagnostic_report_current_module(), diagnostic_report_diagnostic(), diagnostic_set_caret_max_width(), diagnostic_show_locus(), error_recursion(), file_name_as_prefix(), lhd_print_error_function(), process_options(), and verbatim().
int* diagnostic_context::push_list |
Referenced by diagnostic_pop_diagnostics(), and diagnostic_push_diagnostics().
bool diagnostic_context::show_caret |
Referenced by common_handle_option(), diagnostic_initialize(), diagnostic_show_locus(), and general_init().
bool diagnostic_context::show_column |
bool diagnostic_context::show_option_requested |
Referenced by common_handle_option(), diagnostic_initialize(), diagnostic_report_diagnostic(), and general_init().
bool diagnostic_context::some_warnings_are_errors |
Referenced by diagnostic_finish(), diagnostic_initialize(), and diagnostic_report_diagnostic().
bool diagnostic_context::warning_as_error_requested |
Referenced by common_handle_option(), diagnostic_finish(), diagnostic_initialize(), diagnostic_report_diagnostic(), and option_name().
void* diagnostic_context::x_data |
Referenced by diagnostic_initialize().