#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.
Referenced by diagnostic_initialize(), diagnostic_report_diagnostic(), and init_error().
| #define diagnostic_format_decoder | ( | DC | ) | output_format_decoder (&(DC)->buffer) |
| #define diagnostic_kind_count | ( | DC, | |||
| DK | ) | (DC)->diagnostic_count[(int) (DK)] |
| #define diagnostic_last_function_changed | ( | DC | ) | ((DC)->last_function != current_function_decl) |
Definition at line 244 of file diagnostic.h.
Referenced by cp_print_error_function(), and lhd_print_error_function().
| #define diagnostic_last_module_changed | ( | DC | ) | ((DC)->last_module != input_file_stack_tick) |
| #define diagnostic_line_cutoff | ( | DC | ) | output_line_cutoff (&(DC)->buffer) |
Definition at line 240 of file diagnostic.h.
Referenced by c_common_init_options(), cxx_init_options(), and decode_f_option().
| #define diagnostic_prefixing_rule | ( | DC | ) | output_prefixing_rule (&(DC)->buffer) |
Definition at line 236 of file diagnostic.h.
Referenced by c_common_init_options(), common_handle_option(), cxx_init_options(), decode_f_option(), diagnostic_initialize(), and init_output_buffer().
| #define diagnostic_report_warnings_p | ( | ) |
Value:
(!inhibit_warnings \ && !(in_system_header && !warn_system_headers))
Definition at line 279 of file diagnostic.h.
Referenced by diagnostic_count_diagnostic(), and start_function().
| #define diagnostic_set_last_function | ( | DC | ) | (DC)->last_function = current_function_decl |
Definition at line 249 of file diagnostic.h.
Referenced by announce_function(), cp_print_error_function(), and lhd_print_error_function().
| #define diagnostic_set_last_module | ( | DC | ) | (DC)->last_module = input_file_stack_tick |
| #define diagnostic_starter | ( | DC | ) | (DC)->begin_diagnostic |
Definition at line 223 of file diagnostic.h.
Referenced by diagnostic_initialize(), diagnostic_report_diagnostic(), and init_error().
| #define errorcount diagnostic_kind_count (global_dc, DK_ERROR) |
Definition at line 272 of file diagnostic.h.
Referenced by _fatal_insn(), build_temp(), c_common_finish(), c_common_post_options(), c_lex_with_flags(), c_make_fname_decl(), cgraph_finalize_compilation_unit(), cgraph_optimize(), cgraph_output_pending_asms(), cgraph_varpool_assemble_pending_decls(), cgraph_varpool_output_debug_info(), cgraph_varpool_remove_unreferenced_decls(), check_global_declarations(), compile_file(), convert_for_initialization(), convert_like_real(), cp_emit_debug_info_for_using(), do_compile(), emit_debug_global_declarations(), finalize(), finish_function(), finish_omp_clauses(), finish_repo(), gate_all_optimizations(), gate_expand_omp(), gate_ipa_pta(), gate_no_optimization(), gate_pure_const(), gate_reference(), gate_rest_of_compilation(), gate_type_escape_vars(), gimple_push_cleanup(), gimplify_expr(), gimplify_var_or_parm_decl(), GTY(), label_to_block(), label_to_block_fn(), locate_error(), lower_omp_1(), mudflap_finish_file(), optimize_inline_calls(), rest_of_compilation(), rest_of_decl_compilation(), rest_of_type_compilation(), synthesize_method(), toplev_main(), verify_cgraph(), verify_cgraph_node(), and weak_finish().
| #define output_buffer_attached_stream | ( | BUFFER | ) | (BUFFER)->stream |
Definition at line 138 of file diagnostic.h.
Referenced by diagnostic_flush_buffer(), diagnostic_initialize(), init_output_buffer(), output_buffer_to_stream(), and output_flush().
| #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.
Referenced by output_decimal(), output_hexadecimal(), output_long_decimal(), output_long_hexadecimal(), output_long_octal(), output_long_unsigned_decimal(), output_octal(), output_pointer(), and output_unsigned_decimal().
| #define output_indentation | ( | BUFFER | ) | (BUFFER)->state.indent_skip |
Definition at line 144 of file diagnostic.h.
Referenced by output_clear_data(), output_emit_prefix(), output_indent(), and output_set_prefix().
| #define output_is_line_wrapping | ( | BUFFER | ) | (output_line_cutoff (BUFFER) > 0) |
Definition at line 161 of file diagnostic.h.
Referenced by maybe_wrap_text(), output_add_character(), output_add_space(), output_append(), PARAMS(), and wrap_text().
| #define output_line_cutoff | ( | BUFFER | ) | (BUFFER)->state.ideal_maximum_length |
Definition at line 158 of file diagnostic.h.
Referenced by init_output_buffer(), output_do_verbatim(), output_set_maximum_length(), and PARAMS().
| #define output_message_text | ( | BUFFER | ) | ((const char *) obstack_base (&(BUFFER)->obstack)) |
| #define output_needs_newline | ( | BUFFER | ) | (BUFFER)->state.need_newline_p |
Definition at line 141 of file diagnostic.h.
Referenced by announce_function(), and diagnostic_report_current_module().
| #define output_prefix | ( | BUFFER | ) | (BUFFER)->state.prefix |
Definition at line 134 of file diagnostic.h.
Referenced by cp_print_error_function(), and lhd_print_error_function().
| #define output_prefixing_rule | ( | BUFFER | ) | (BUFFER)->state.prefixing_rule |
Definition at line 154 of file diagnostic.h.
Referenced by init_output_buffer(), output_do_verbatim(), output_emit_prefix(), and PARAMS().
| #define pedantic_error_kind | ( | ) | (flag_pedantic_errors ? DK_ERROR : DK_WARNING) |
Definition at line 56 of file diagnostic.h.
Referenced by cp_cpp_error(), cp_pedwarn_at(), pedwarn(), pedwarn_c90(), pedwarn_c99(), and VPARAMS().
| #define report_diagnostic | ( | D | ) | diagnostic_report_diagnostic (global_dc, D) |
Definition at line 283 of file diagnostic.h.
Referenced by cp_cpp_error(), cp_error_at(), cp_pedwarn_at(), cp_warning_at(), diagnostic_for_asm(), error(), fatal_error(), inform(), internal_error(), pedwarn(), pedwarn_c90(), pedwarn_c99(), sorry(), VPARAMS(), warning(), and warning0().
| #define sorrycount diagnostic_kind_count (global_dc, DK_SORRY) |
Definition at line 276 of file diagnostic.h.
Referenced by cgraph_finalize_compilation_unit(), cgraph_optimize(), cgraph_output_pending_asms(), cgraph_varpool_assemble_pending_decls(), cgraph_varpool_output_debug_info(), cgraph_varpool_remove_unreferenced_decls(), check_global_declarations(), compile_file(), cp_emit_debug_info_for_using(), emit_debug_global_declarations(), finish_repo(), gate_all_optimizations(), gate_ipa_pta(), gate_no_optimization(), gate_pure_const(), gate_reference(), gate_rest_of_compilation(), gate_type_escape_vars(), gimple_push_cleanup(), gimplify_expr(), gimplify_var_or_parm_decl(), GTY(), label_to_block(), label_to_block_fn(), mudflap_finish_file(), optimize_inline_calls(), rest_of_compilation(), rest_of_decl_compilation(), rest_of_type_compilation(), toplev_main(), verify_cgraph(), verify_cgraph_node(), and weak_finish().
| #define warningcount diagnostic_kind_count (global_dc, DK_WARNING) |
Definition at line 274 of file diagnostic.h.
Referenced by build_temp(), convert_for_initialization(), convert_like_real(), and synthesize_method().
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 *) | ) |
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 *) | ) |
Referenced by announce_function(), c_common_handle_option(), c_common_init_options(), c_objc_common_init(), common_handle_option(), cp_error_at(), cxx_init_options(), decode_f_option(), decode_options(), diagnostic_for_decl(), general_init(), handle_pragma_diagnostic(), init_error(), init_output_buffer(), print_instantiation_context(), segv_handler(), setup_core_dumping(), verbatim(), and VPARAMS().
1.5.6