#include "obstack.h"#include "location.h"#include "diagnostic.def"


Go to the source code of this file.
Data Types | |
| type | text_info |
| type | diagnostic_info |
| type | output_state |
| type | output_buffer |
| type | diagnostic_context |
Defines | |
| #define | DEFINE_DIAGNOSTIC_KIND(K, M) K, |
| #define | pedantic_error_kind() (flag_pedantic_errors ? DK_ERROR : DK_WARNING) |
| #define | output_prefix(BUFFER) (BUFFER)->state.prefix |
| #define | output_buffer_attached_stream(BUFFER) (BUFFER)->stream |
| #define | output_needs_newline(BUFFER) (BUFFER)->state.need_newline_p |
| #define | output_indentation(BUFFER) (BUFFER)->state.indent_skip |
| #define | output_message_text(BUFFER) ((const char *) obstack_base (&(BUFFER)->obstack)) |
| #define | output_format_decoder(BUFFER) (BUFFER)->format_decoder |
| #define | output_prefixing_rule(BUFFER) (BUFFER)->state.prefixing_rule |
| #define | output_line_cutoff(BUFFER) (BUFFER)->state.ideal_maximum_length |
| #define | output_is_line_wrapping(BUFFER) (output_line_cutoff (BUFFER) > 0) |
| #define | output_formatted_scalar(BUFFER, FORMAT, INTEGER) |
| #define | diagnostic_starter(DC) (DC)->begin_diagnostic |
| #define | diagnostic_finalizer(DC) (DC)->end_diagnostic |
| #define | diagnostic_auxiliary_data(DC) (DC)->x_data |
| #define | diagnostic_format_decoder(DC) output_format_decoder (&(DC)->buffer) |
| #define | diagnostic_prefixing_rule(DC) output_prefixing_rule (&(DC)->buffer) |
| #define | diagnostic_line_cutoff(DC) output_line_cutoff (&(DC)->buffer) |
| #define | diagnostic_last_function_changed(DC) ((DC)->last_function != current_function_decl) |
| #define | diagnostic_set_last_function(DC) (DC)->last_function = current_function_decl |
| #define | diagnostic_last_module_changed(DC) ((DC)->last_module != input_file_stack_tick) |
| #define | diagnostic_set_last_module(DC) (DC)->last_module = input_file_stack_tick |
| #define | diagnostic_kind_count(DC, DK) (DC)->diagnostic_count[(int) (DK)] |
| #define | errorcount diagnostic_kind_count (global_dc, DK_ERROR) |
| #define | warningcount diagnostic_kind_count (global_dc, DK_WARNING) |
| #define | sorrycount diagnostic_kind_count (global_dc, DK_SORRY) |
| #define | diagnostic_report_warnings_p() |
| #define | report_diagnostic(D) diagnostic_report_diagnostic (global_dc, D) |
Typedefs | |
| typedef struct output_buffer | output_buffer |
| typedef bool printer_fn | PARAMS ((output_buffer *, text_info *)) |
| typedef struct diagnostic_context | diagnostic_context |
| typedef diagnostic_starter_fn | diagnostic_finalizer_fn |
Enumerations | |
| enum | diagnostic_t { DEFINE_DIAGNOSTIC_KIND, DEFINE_DIAGNOSTIC_KIND, DEFINE_DIAGNOSTIC_KIND, DEFINE_DIAGNOSTIC_KIND } |
| enum | diagnostic_prefixing_rule_t { DIAGNOSTICS_SHOW_PREFIX_ONCE = 0x0, DIAGNOSTICS_SHOW_PREFIX_NEVER = 0x1, DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE = 0x2, DIAGNOSTICS_SHOW_PREFIX_ONCE = 0x0, DIAGNOSTICS_SHOW_PREFIX_NEVER = 0x1, DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE = 0x2, DIAGNOSTICS_SHOW_PREFIX_ONCE = 0x0, DIAGNOSTICS_SHOW_PREFIX_NEVER = 0x1, DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE = 0x2, DIAGNOSTICS_SHOW_PREFIX_ONCE = 0x0, DIAGNOSTICS_SHOW_PREFIX_NEVER = 0x1, DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE = 0x2 } |
Functions/Subroutines | |
| void diagnostic_initialize | PARAMS ((diagnostic_context *)) |
| bool diagnostic_count_diagnostic | PARAMS ((diagnostic_context *, diagnostic_t)) |
| void diagnostic_report_diagnostic | PARAMS ((diagnostic_context *, diagnostic_info *)) |
| void diagnostic_set_info | PARAMS ((diagnostic_info *, const char *, va_list *, const char *, int, diagnostic_t)) |
| char *diagnostic_build_prefix | PARAMS ((diagnostic_info *)) |
| void init_output_buffer | PARAMS ((output_buffer *, const char *, int)) |
| void output_clear | PARAMS ((output_buffer *)) |
| const char *output_last_position | PARAMS ((const output_buffer *)) |
| void output_set_prefix | PARAMS ((output_buffer *, const char *)) |
| void output_set_maximum_length | PARAMS ((output_buffer *, int)) |
| void output_append | PARAMS ((output_buffer *, const char *, const char *)) |
| void output_add_identifier | PARAMS ((output_buffer *, tree)) |
| void output_printf | PARAMS ((output_buffer *, const char *,...)) ATTRIBUTE_PRINTF_2 |
| void verbatim | PARAMS ((const char *,...)) |
| char *file_name_as_prefix | PARAMS ((const char *)) |
Variables | |
| diagnostic_context * | global_dc |
| #define DEFINE_DIAGNOSTIC_KIND | ( | K, | |||
| M | ) | K, |
| #define diagnostic_auxiliary_data | ( | DC | ) | (DC)->x_data |
Definition at line 230 of file diagnostic.h.
| #define diagnostic_finalizer | ( | DC | ) | (DC)->end_diagnostic |
Definition at line 227 of file diagnostic.h.
| #define diagnostic_format_decoder | ( | DC | ) | output_format_decoder (&(DC)->buffer) |
Definition at line 233 of file diagnostic.h.
| #define diagnostic_kind_count | ( | DC, | |||
| DK | ) | (DC)->diagnostic_count[(int) (DK)] |
Definition at line 268 of file diagnostic.h.
| #define diagnostic_last_function_changed | ( | DC | ) | ((DC)->last_function != current_function_decl) |
Definition at line 244 of file diagnostic.h.
| #define diagnostic_last_module_changed | ( | DC | ) | ((DC)->last_module != input_file_stack_tick) |
Definition at line 254 of file diagnostic.h.
| #define diagnostic_line_cutoff | ( | DC | ) | output_line_cutoff (&(DC)->buffer) |
Definition at line 240 of file diagnostic.h.
| #define diagnostic_prefixing_rule | ( | DC | ) | output_prefixing_rule (&(DC)->buffer) |
Definition at line 236 of file diagnostic.h.
| #define diagnostic_report_warnings_p | ( | ) |
Value:
(!inhibit_warnings \ && !(in_system_header && !warn_system_headers))
Definition at line 279 of file diagnostic.h.
| #define diagnostic_set_last_function | ( | DC | ) | (DC)->last_function = current_function_decl |
Definition at line 249 of file diagnostic.h.
| #define diagnostic_set_last_module | ( | DC | ) | (DC)->last_module = input_file_stack_tick |
Definition at line 259 of file diagnostic.h.
| #define diagnostic_starter | ( | DC | ) | (DC)->begin_diagnostic |
Definition at line 223 of file diagnostic.h.
| #define errorcount diagnostic_kind_count (global_dc, DK_ERROR) |
Definition at line 272 of file diagnostic.h.
| #define output_buffer_attached_stream | ( | BUFFER | ) | (BUFFER)->stream |
Definition at line 138 of file diagnostic.h.
| #define output_format_decoder | ( | BUFFER | ) | (BUFFER)->format_decoder |
Definition at line 151 of file diagnostic.h.
| #define output_formatted_scalar | ( | BUFFER, | |||
| FORMAT, | |||||
| INTEGER | ) |
Value:
do \ { \ sprintf ((BUFFER)->digit_buffer, FORMAT, INTEGER); \ output_add_string (BUFFER, (BUFFER)->digit_buffer); \ } \ while (0)
Definition at line 163 of file diagnostic.h.
| #define output_indentation | ( | BUFFER | ) | (BUFFER)->state.indent_skip |
Definition at line 144 of file diagnostic.h.
| #define output_is_line_wrapping | ( | BUFFER | ) | (output_line_cutoff (BUFFER) > 0) |
Definition at line 161 of file diagnostic.h.
| #define output_line_cutoff | ( | BUFFER | ) | (BUFFER)->state.ideal_maximum_length |
Definition at line 158 of file diagnostic.h.
| #define output_message_text | ( | BUFFER | ) | ((const char *) obstack_base (&(BUFFER)->obstack)) |
Definition at line 147 of file diagnostic.h.
| #define output_needs_newline | ( | BUFFER | ) | (BUFFER)->state.need_newline_p |
Definition at line 141 of file diagnostic.h.
| #define output_prefix | ( | BUFFER | ) | (BUFFER)->state.prefix |
Definition at line 134 of file diagnostic.h.
| #define output_prefixing_rule | ( | BUFFER | ) | (BUFFER)->state.prefixing_rule |
Definition at line 154 of file diagnostic.h.
| #define pedantic_error_kind | ( | ) | (flag_pedantic_errors ? DK_ERROR : DK_WARNING) |
Definition at line 56 of file diagnostic.h.
| #define report_diagnostic | ( | D | ) | diagnostic_report_diagnostic (global_dc, D) |
Definition at line 283 of file diagnostic.h.
| #define sorrycount diagnostic_kind_count (global_dc, DK_SORRY) |
Definition at line 276 of file diagnostic.h.
| #define warningcount diagnostic_kind_count (global_dc, DK_WARNING) |
Definition at line 274 of file diagnostic.h.
Definition at line 172 of file diagnostic.h.
Definition at line 175 of file diagnostic.h.
| typedef struct output_buffer output_buffer |
Definition at line 100 of file diagnostic.h.
| typedef void diagnostic_starter_fn PARAMS((diagnostic_context *,diagnostic_info *)) |
Definition at line 101 of file diagnostic.h.
Definition at line 63 of file diagnostic.h.
| enum diagnostic_t |
| DEFINE_DIAGNOSTIC_KIND | |
| DEFINE_DIAGNOSTIC_KIND | |
| DEFINE_DIAGNOSTIC_KIND | |
| DEFINE_DIAGNOSTIC_KIND |
Definition at line 37 of file diagnostic.h.
| char* file_name_as_prefix PARAMS | ( | (const char *) | ) | [read] |
Definition at line 635 of file mips-tfile.c.
| void verbatim PARAMS | ( | (const char *,...) | ) |
| void output_printf PARAMS | ( | (output_buffer *, const char *,...) | ) |
| void output_add_identifier PARAMS | ( | (output_buffer *, tree) | ) |
| void output_append PARAMS | ( | (output_buffer *, const char *, const char *) | ) |
| void output_set_maximum_length PARAMS | ( | (output_buffer *, int) | ) |
| void output_set_prefix PARAMS | ( | (output_buffer *, const char *) | ) |
| const char* output_last_position PARAMS | ( | (const output_buffer *) | ) |
| void output_clear PARAMS | ( | (output_buffer *) | ) |
| void init_output_buffer PARAMS | ( | (output_buffer *, const char *, int) | ) |
| char* diagnostic_build_prefix PARAMS | ( | (diagnostic_info *) | ) |
| void diagnostic_set_info PARAMS | ( | (diagnostic_info *, const char *, va_list *, const char *, int, diagnostic_t) | ) |
| void diagnostic_report_diagnostic PARAMS | ( | (diagnostic_context *, diagnostic_info *) | ) |
| bool diagnostic_count_diagnostic PARAMS | ( | (diagnostic_context *, diagnostic_t) | ) |
| void diagnostic_initialize PARAMS | ( | (diagnostic_context *) | ) |
1.5.6