#include "config.h"#include "system.h"#include "tree.h"#include "cp-tree.h"#include "real.h"#include "toplev.h"#include "flags.h"#include "diagnostic.h"#include "langhooks-def.h"

Go to the source code of this file.
Defines | |
| #define | sorry_for_unsupported_tree(T) |
| #define | print_scope_operator(BUFFER) output_add_string ((BUFFER), "::") |
| #define | print_left_paren(BUFFER) output_add_character ((BUFFER), '(') |
| #define | print_right_paren(BUFFER) output_add_character ((BUFFER), ')') |
| #define | print_left_bracket(BUFFER) output_add_character ((BUFFER), '[') |
| #define | print_right_bracket(BUFFER) output_add_character ((BUFFER), ']') |
| #define | print_template_argument_list_start(BUFFER) print_non_consecutive_character ((BUFFER), '<') |
| #define | print_template_argument_list_end(BUFFER) print_non_consecutive_character ((BUFFER), '>') |
| #define | print_tree_identifier(BUFFER, TID) output_add_string ((BUFFER), IDENTIFIER_POINTER (TID)) |
| #define | print_identifier(BUFFER, ID) output_add_string ((BUFFER), (ID)) |
| #define | separate_with_comma(BUFFER) output_add_string ((BUFFER), ", ") |
| #define | NEXT_CODE(T) (TREE_CODE (TREE_TYPE (T))) |
| #define | reinit_global_formatting_buffer() output_clear_message_text (scratch_buffer) |
| #define | next_tree va_arg (*text->args_ptr, tree) |
| #define | next_tcode va_arg (*text->args_ptr, enum tree_code) |
| #define | next_lang va_arg (*text->args_ptr, enum languages) |
| #define | next_int va_arg (*text->args_ptr, int) |
Enumerations | |
| enum | pad { none, before, after, none, before, after } |
Functions/Subroutines | |
| static const char *args_to_string | PARAMS ((tree, int)) |
| static const char *assop_to_string | PARAMS ((enum tree_code, int)) |
| static const char *parm_to_string | PARAMS ((int, int)) |
| static void dump_simple_decl | PARAMS ((tree, tree, int)) |
| static void dump_unary_op | PARAMS ((const char *, tree, int)) |
| static void dump_global_iord | PARAMS ((tree)) |
| static enum pad dump_qualifiers | PARAMS ((tree, enum pad)) |
| static void dump_char | PARAMS ((int)) |
| static void dump_template_bindings | PARAMS ((tree, tree)) |
| static void dump_template_parms | PARAMS ((tree, int, int)) |
| static void maybe_print_instantiation_context | PARAMS ((diagnostic_context *)) |
| static void print_instantiation_partial_context | PARAMS ((diagnostic_context *, tree, const char *, int)) |
| static void cp_diagnostic_starter | PARAMS ((diagnostic_context *, diagnostic_info *)) |
| static bool cp_printer | PARAMS ((output_buffer *, text_info *)) |
| static void print_non_consecutive_character | PARAMS ((output_buffer *, int)) |
| static void print_integer | PARAMS ((output_buffer *, HOST_WIDE_INT)) |
| static tree locate_error | PARAMS ((const char *, va_list)) |
| void | init_error () |
| static void | dump_scope (tree scope, int flags) |
| static enum pad | dump_qualifiers (tree t, enum pad p) |
| static void | dump_template_argument (tree arg, int flags) |
| static void | dump_template_argument_list (tree args, int flags) |
| static void | dump_template_parameter (tree parm, int flags) |
| static void | dump_template_bindings (tree parms, tree args) |
| static void | dump_type (tree t, int flags) |
| static void | dump_typename (tree t, int flags) |
| static const char * | class_key_or_enum (tree t) |
| static void | dump_aggr_type (tree t, int flags) |
| static enum pad | dump_type_prefix (tree t, int flags) |
| static void | dump_type_suffix (tree t, int flags) |
| static void | dump_global_iord (tree t) |
| static void | dump_simple_decl (tree t, tree type, int flags) |
| static void | dump_decl (tree t, int flags) |
| static void | dump_template_decl (tree t, int flags) |
| static void | dump_function_decl (tree t, int flags) |
| static void | dump_parameters (tree parmtypes, int flags) |
| static void | dump_exception_spec (tree t, int flags) |
| static void | dump_function_name (tree t, int flags) |
| static void | dump_template_parms (tree info, int primary, int flags) |
| static void | dump_char (int c) |
| static void | dump_expr_list (tree l, int flags) |
| static void | dump_expr (tree t, int flags) |
| static void | dump_binary_op (char *opstring, tree t, int flags) const |
| static void | dump_unary_op (char *opstring, tree t, int flags) const |
| const char * | type_as_string (tree typ, int flags) |
| const char * | expr_as_string (tree decl, int flags) |
| const char * | decl_as_string (tree decl, int flags) |
| const char * | context_as_string (tree context, int flags) |
| const char * | lang_decl_name (tree decl, int v) |
| const char * | cp_file_of (tree t) |
| int | cp_line_of (tree t) |
| static const char * | decl_to_string (tree decl, int verbose) |
| static const char * | expr_to_string (tree decl, verbose) |
| static const char * | fndecl_to_string (tree fndecl, int verbose) |
| static const char * | code_to_string (enum tree_code c, v) |
| const char * | language_to_string (enum languages c, v) |
| static const char * | parm_to_string (int p, v) |
| static const char * | op_to_string (enum tree_code p, v) |
| static const char * | type_to_string (tree typ, int verbose) |
| static const char * | assop_to_string (enum tree_code p, v) |
| static const char * | args_to_string (tree p, int verbose) |
| static const char * | cv_to_string (tree p, int v) |
| void | cxx_print_error_function (diagnostic_context *context, const char *file) |
| static void | cp_diagnostic_starter (diagnostic_context *context, diagnostic_info *diagnostic) |
| static void | cp_diagnostic_finalizer (diagnostic_context *context, diagnostic) |
| static void | cp_print_error_function (diagnostic_context *context, diagnostic_info *diagnostic) |
| static const char * | function_category (tree fn) |
| static void | print_instantiation_full_context (diagnostic_context *context) |
| static void | print_instantiation_partial_context (diagnostic_context *context, tree t, const char *file, int line) |
| static void | maybe_print_instantiation_context (diagnostic_context *context) |
| void | print_instantiation_context () |
| static bool | cp_printer (output_buffer *buffer, text_info *text) |
| static void | print_integer (output_buffer *buffer, HOST_WIDE_INT i) |
| static void | print_non_consecutive_character (output_buffer *buffer, int c) |
| static tree | locate_error (char *msgid, va_list ap) const |
| void cp_error_at | VPARAMS ((const char *msgid,...)) |
Variables | |
| static output_buffer | scratch_buffer_rec |
| static output_buffer * | scratch_buffer = &scratch_buffer_rec |
| static char | digit_buffer [128] |
| #define next_int va_arg (*text->args_ptr, int) |
| #define next_lang va_arg (*text->args_ptr, enum languages) |
| #define next_tcode va_arg (*text->args_ptr, enum tree_code) |
| #define next_tree va_arg (*text->args_ptr, tree) |
| #define print_identifier | ( | BUFFER, | |||
| ID | ) | output_add_string ((BUFFER), (ID)) |
| #define print_left_bracket | ( | BUFFER | ) | output_add_character ((BUFFER), '[') |
| #define print_left_paren | ( | BUFFER | ) | output_add_character ((BUFFER), '(') |
| #define print_right_bracket | ( | BUFFER | ) | output_add_character ((BUFFER), ']') |
| #define print_right_paren | ( | BUFFER | ) | output_add_character ((BUFFER), ')') |
| #define print_scope_operator | ( | BUFFER | ) | output_add_string ((BUFFER), "::") |
| #define print_template_argument_list_end | ( | BUFFER | ) | print_non_consecutive_character ((BUFFER), '>') |
| #define print_template_argument_list_start | ( | BUFFER | ) | print_non_consecutive_character ((BUFFER), '<') |
| #define print_tree_identifier | ( | BUFFER, | |||
| TID | ) | output_add_string ((BUFFER), IDENTIFIER_POINTER (TID)) |
| #define reinit_global_formatting_buffer | ( | ) | output_clear_message_text (scratch_buffer) |
| #define separate_with_comma | ( | BUFFER | ) | output_add_string ((BUFFER), ", ") |
| #define sorry_for_unsupported_tree | ( | T | ) |
Value:
sorry ("`%s' not supported by %s", tree_code_name[(int) TREE_CODE (T)], \ __FUNCTION__)
| static const char* args_to_string | ( | tree | p, | |
| int | verbose | |||
| ) | [static] |
Definition at line 2385 of file error.c.
References dump_type(), error_type(), flags, null_node, NULL_TREE, output_finalize_message(), print_identifier, reinit_global_formatting_buffer, separate_with_comma, TFF_CLASS_KEY_OR_ENUM, TREE_CHAIN, TREE_VALUE, type_as_string(), and TYPE_P.
| static const char* assop_to_string | ( | enum tree_code | p, | |
| v | ||||
| ) | [static] |
Definition at line 2374 of file error.c.
References assignment_operator_name_info, IDENTIFIER_POINTER, and int.
| static const char* class_key_or_enum | ( | tree | t | ) | [static] |
Definition at line 504 of file error.c.
References CLASSTYPE_DECLARED_CLASS, TREE_CODE, and TYPE_LANG_SPECIFIC.
| static const char* code_to_string | ( | enum tree_code | c, | |
| v | ||||
| ) | [static] |
| const char* context_as_string | ( | tree | context, | |
| int | flags | |||
| ) |
Definition at line 2167 of file error.c.
References dump_scope(), output_finalize_message(), and reinit_global_formatting_buffer.
| static void cp_diagnostic_finalizer | ( | diagnostic_context * | context, | |
| diagnostic | ||||
| ) | [static] |
| static void cp_diagnostic_starter | ( | diagnostic_context * | context, | |
| diagnostic_info * | diagnostic | |||
| ) | [static] |
Definition at line 2436 of file error.c.
References cp_print_error_function(), diagnostic_build_prefix(), diagnostic_report_current_module(), maybe_print_instantiation_context(), and output_set_prefix().
| const char* cp_file_of | ( | tree | t | ) |
Definition at line 2205 of file error.c.
References DECL_CONTEXT, DECL_SOURCE_FILE, OVL_FUNCTION, TREE_CODE, TYPE_MAIN_DECL, and TYPE_P.
| int cp_line_of | ( | tree | t | ) |
Definition at line 2219 of file error.c.
References DECL_ARTIFICIAL, DECL_CONTEXT, DECL_SOURCE_LINE, lineno, OVL_FUNCTION, TREE_CODE, TREE_TYPE, TYPE_MAIN_DECL, and TYPE_P.
| static void cp_print_error_function | ( | diagnostic_context * | context, | |
| diagnostic_info * | diagnostic | |||
| ) | [static] |
Definition at line 2457 of file error.c.
References current_function_decl, cxx_printable_name(), diagnostic_last_function_changed, diagnostic_set_last_function, file_name_as_prefix(), function_category(), diagnostic_info::location, NULL, output_add_newline(), output_add_string(), output_destroy_prefix(), output_prefix, and output_set_prefix().
| static bool cp_printer | ( | output_buffer * | buffer, | |
| text_info * | text | |||
| ) | [static] |
Definition at line 2597 of file error.c.
References args_to_string(), assop_to_string(), code_to_string(), cv_to_string(), decl_to_string(), expr_to_string(), fndecl_to_string(), text_info::format_spec, language_to_string(), next_int, next_lang, next_tcode, next_tree, op_to_string(), output_add_string(), parm_to_string(), result, type_to_string(), and verbose.
| static const char* cv_to_string | ( | tree | p, | |
| int | v | |||
| ) | [static] |
Definition at line 2413 of file error.c.
References before, dump_qualifiers(), none, output_finalize_message(), and reinit_global_formatting_buffer.
| void cxx_print_error_function | ( | diagnostic_context * | context, | |
| const char * | file | |||
| ) |
Definition at line 2426 of file error.c.
References lhd_print_error_function(), maybe_print_instantiation_context(), and output_set_prefix().
| const char* decl_as_string | ( | tree | decl, | |
| int | flags | |||
| ) |
Definition at line 2155 of file error.c.
References dump_decl(), output_finalize_message(), and reinit_global_formatting_buffer.
| static const char* decl_to_string | ( | tree | decl, | |
| int | verbose | |||
| ) | [static] |
Definition at line 2247 of file error.c.
References dump_decl(), flags, output_finalize_message(), reinit_global_formatting_buffer, TFF_CLASS_KEY_OR_ENUM, TFF_DECL_SPECIFIERS, TFF_RETURN_TYPE, TFF_TEMPLATE_HEADER, and TREE_CODE.
Definition at line 521 of file error.c.
References after, ANON_AGGRNAME_P, class_key_or_enum(), CLASSTYPE_TEMPLATE_INFO, CLASSTYPE_TEMPLATE_SPECIALIZATION, CLASSTYPE_TI_TEMPLATE, CLASSTYPE_USE_TEMPLATE, CP_DECL_CONTEXT, DECL_ARTIFICIAL, DECL_NAME, DECL_TEMPLATE_INFO, DECL_TEMPLATE_SPECIALIZATION, DECL_TI_TEMPLATE, dump_qualifiers(), dump_scope(), dump_template_parms(), output_add_space(), PRIMARY_TEMPLATE_P, print_identifier, print_tree_identifier, TFF_CHASE_TYPEDEF, TFF_CLASS_KEY_OR_ENUM, TFF_SCOPE, TFF_TEMPLATE_HEADER, TREE_CODE, TYPE_LANG_SPECIFIC, TYPE_MAIN_VARIANT, TYPE_NAME, and TYPE_TEMPLATE_INFO.
Definition at line 2096 of file error.c.
References dump_expr(), output_add_space(), print_identifier, print_left_paren, print_right_paren, TFF_EXPR_IN_PARENS, and TREE_OPERAND.
| static void dump_char | ( | int | c | ) | [static] |
Definition at line 1379 of file error.c.
References ISPRINT, output_add_character(), output_add_string(), sprintf(), TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, and TARGET_VT.
Definition at line 837 of file error.c.
References abort, anonymous_namespace_name, args, BASELINK_FUNCTIONS, CP_DECL_CONTEXT, DECL_ARTIFICIAL, DECL_CLASS_SCOPE_P, DECL_CONTEXT, DECL_GLOBAL_CTOR_P, DECL_GLOBAL_DTOR_P, DECL_INITIAL, DECL_LANG_SPECIFIC, DECL_NAME, DECL_ORIGINAL_TYPE, dump_decl(), dump_expr(), dump_function_decl(), dump_global_iord(), dump_scope(), dump_simple_decl(), dump_template_argument(), dump_template_decl(), dump_type(), get_first_fn(), IDENTIFIER_TYPENAME_P, is_overloaded_fn(), my_friendly_assert, NEXT_CODE, NULL_TREE, output_add_string(), OVL_CHAIN, OVL_CURRENT, print_identifier, print_left_bracket, print_right_bracket, print_scope_operator, print_template_argument_list_end, print_template_argument_list_start, print_tree_identifier, separate_with_comma, sorry_for_unsupported_tree, TFF_DECL_SPECIFIERS, TFF_EXPR_IN_PARENS, TREE_CHAIN, TREE_CODE, TREE_OPERAND, TREE_TYPE, TREE_VALUE, TYPE_P, and VTABLE_NAME_P.
Definition at line 1228 of file error.c.
References dump_type(), NULL_TREE, output_add_string(), print_right_paren, separate_with_comma, TREE_CHAIN, and TREE_VALUE.
Definition at line 1444 of file error.c.
References args, BASELINK_FUNCTIONS, BASELINK_P, boolean_false_node, boolean_true_node, boolean_type_node, build(), build_cplus_array_type(), build_index_type(), build_int_2, build_ptrmemfunc_access_expr(), BV_FN, char_type_node, CONSTRUCTOR_ELTS, DECL_CONSTRUCTOR_P, DECL_NAME, dump_binary_op(), dump_char(), dump_decl(), dump_expr(), dump_expr_list(), dump_type(), dump_unary_op(), EXPR_WFL_NODE, fold(), format, get_first_fn(), HOST_BITS_PER_INT, host_integerp(), HOST_WIDE_INT, i, IDENTIFIER_POINTER, idx, integer_one_node, integer_type_node, integer_zerop(), is_dummy_object(), len, my_friendly_assert, n, NEW_EXPR_USE_GLOBAL, next, NEXT_CODE, NULL_TREE, operator_name_info, output_add_character(), output_add_string(), OVL_CURRENT, p, pfn_identifier, print_identifier, print_integer(), print_left_bracket, print_left_paren, print_right_bracket, print_right_paren, print_scope_operator, print_tree_identifier, PTRMEM_CST_CLASS, PTRMEM_CST_MEMBER, real_to_decimal(), separate_with_comma, sorry_for_unsupported_tree, sprintf(), strcmp(), TEMPLATE_PARM_DECL, TFF_DECL_SPECIFIERS, TFF_EXPR_IN_PARENS, TREE_CHAIN, TREE_CODE, TREE_HAS_CONSTRUCTOR, tree_int_cst_equal(), TREE_INT_CST_HIGH, TREE_INT_CST_LOW, tree_int_cst_sgn(), tree_low_cst(), TREE_OPERAND, TREE_PURPOSE, TREE_REAL_CST, TREE_STRING_LENGTH, TREE_STRING_POINTER, TREE_TYPE, TREE_UNSIGNED, TREE_VALUE, TYPE_BINFO_VIRTUALS, TYPE_IDENTIFIER, TYPE_MAIN_VARIANT, TYPE_METHOD_BASETYPE, TYPE_P, TYPE_PTRMEMFUNC_FN_TYPE, TYPE_PTRMEMFUNC_P, TYPE_VALUES, val, values, VOID_TYPE_P, and void_zero_node.
Definition at line 1428 of file error.c.
References dump_expr(), separate_with_comma, TFF_EXPR_IN_PARENS, TREE_CHAIN, and TREE_VALUE.
Definition at line 1100 of file error.c.
References before, CP_DECL_CONTEXT, DECL_CLASS_SCOPE_P, DECL_CONSTRUCTOR_P, DECL_CONTEXT, DECL_CONV_FN_P, DECL_DESTRUCTOR_P, DECL_STATIC_FUNCTION_P, DECL_TEMPLATE_INFO, DECL_TEMPLATE_PARMS, DECL_TEMPLATE_RESULT, DECL_TI_ARGS, DECL_USE_TEMPLATE, DECL_VIRTUAL_P, dump_exception_spec(), dump_function_name(), dump_parameters(), dump_qualifiers(), dump_scope(), dump_template_bindings(), dump_type(), dump_type_prefix(), dump_type_suffix(), FUNCTION_FIRST_USER_PARMTYPE, most_general_template(), NULL_TREE, output_add_space(), output_add_string(), print_identifier, print_right_bracket, print_scope_operator, TFF_DECL_SPECIFIERS, TFF_EXCEPTION_SPECIFICATION, TFF_RETURN_TYPE, TREE_CODE, TREE_TYPE, TREE_VALUE, TYPE_ARG_TYPES, and TYPE_RAISES_EXCEPTIONS.
Definition at line 1252 of file error.c.
References constructor_name(), DECL_CONSTRUCTOR_P, DECL_CONTEXT, DECL_CONV_FN_P, DECL_DESTRUCTOR_P, DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION, DECL_LANG_SPECIFIC, DECL_NAME, DECL_TEMPLATE_INFO, DECL_TEMPLATE_RESULT, DECL_TEMPLATE_SPECIALIZATION, DECL_TI_TEMPLATE, DECL_USE_TEMPLATE, dump_decl(), dump_template_parms(), dump_type(), IDENTIFIER_OPNAME_P, output_add_character(), output_add_string(), PRIMARY_TEMPLATE_P, print_tree_identifier, TFF_PLAIN_IDENTIFIER, TREE_CODE, and TREE_TYPE.
Definition at line 798 of file error.c.
References abort, DECL_GLOBAL_CTOR_P, DECL_GLOBAL_DTOR_P, input_filename, NULL, and p.
Definition at line 1194 of file error.c.
References dump_expr(), dump_type(), first, output_add_string(), print_identifier, print_left_paren, print_right_paren, separate_with_comma, TFF_EXPR_IN_PARENS, TFF_FUNCTION_DEFAULT_ARGUMENTS, TREE_CHAIN, TREE_PURPOSE, TREE_VALUE, and void_list_node.
Definition at line 165 of file error.c.
References after, before, names, none, output_add_space(), print_identifier, TYPE_QUAL_CONST, TYPE_QUAL_RESTRICT, TYPE_QUAL_VOLATILE, and TYPE_QUALS.
Definition at line 132 of file error.c.
References AGGREGATE_TYPE_P, dump_decl(), dump_function_decl(), dump_type(), f, global_namespace, NULL_TREE, print_scope_operator, TFF_CHASE_TYPEDEF, TFF_RETURN_TYPE, TFF_SCOPE, and TREE_CODE.
Definition at line 814 of file error.c.
References CP_DECL_CONTEXT, DECL_INITIAL, DECL_NAME, dump_decl(), dump_scope(), dump_type_prefix(), dump_type_suffix(), none, output_add_space(), print_identifier, TFF_DECL_SPECIFIERS, and TREE_CODE.
Definition at line 202 of file error.c.
References dump_expr(), dump_type(), TFF_CLASS_KEY_OR_ENUM, TFF_EXPR_IN_PARENS, TREE_CODE, and TYPE_P.
Definition at line 216 of file error.c.
References dump_template_argument(), i, n, separate_with_comma, TREE_VEC_ELT, and TREE_VEC_LENGTH.
Definition at line 277 of file error.c.
References dump_template_argument(), dump_template_parameter(), i, lvl, NULL_TREE, NUM_TMPL_ARGS, output_add_string(), p, print_identifier, separate_with_comma, TFF_PLAIN_IDENTIFIER, TMPL_ARGS_DEPTH, TMPL_ARGS_LEVEL, TMPL_PARMS_DEPTH, TREE_CHAIN, TREE_VALUE, TREE_VEC_ELT, and TREE_VEC_LENGTH.
Definition at line 1032 of file error.c.
References abort, DECL_TEMPLATE_PARMS, DECL_TEMPLATE_RESULT, DECL_TEMPLATE_TEMPLATE_PARM_P, dump_decl(), dump_function_decl(), dump_template_parameter(), dump_type(), i, INNERMOST_TEMPLATE_PARMS, len, NEXT_CODE, nreverse(), NULL_TREE, output_add_space(), output_add_string(), print_template_argument_list_end, separate_with_comma, TFF_CLASS_KEY_OR_ENUM, TFF_DECL_SPECIFIERS, TFF_TEMPLATE_HEADER, TFF_TEMPLATE_NAME, TREE_CHAIN, TREE_CODE, TREE_TYPE, TREE_VEC_ELT, and TREE_VEC_LENGTH.
Definition at line 236 of file error.c.
References a, DECL_NAME, dump_decl(), dump_expr(), dump_type(), NULL_TREE, output_add_space(), output_add_string(), p, print_identifier, print_tree_identifier, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS, TFF_EXPR_IN_PARENS, TFF_FUNCTION_DEFAULT_ARGUMENTS, TREE_CODE, TREE_PURPOSE, and TREE_VALUE.
Definition at line 1303 of file error.c.
References args, DECL_TEMPLATE_PARMS, dump_decl(), dump_template_argument(), len, NULL_TREE, print_identifier, print_template_argument_list_end, print_template_argument_list_start, separate_with_comma, TFF_CLASS_KEY_OR_ENUM, TFF_DECL_SPECIFIERS, TFF_TEMPLATE_NAME, TI_ARGS, TI_TEMPLATE, TREE_CHAIN, TREE_CODE, TREE_VALUE, TREE_VEC_ELT, and TREE_VEC_LENGTH.
Definition at line 322 of file error.c.
References after, args, BINFO_TYPE, c_common_type_for_mode(), COMPLEX_TYPE, DECL_NAME, DECL_ORIGINAL_TYPE, dump_aggr_type(), dump_decl(), dump_expr(), dump_parameters(), dump_qualifiers(), dump_template_argument_list(), dump_type(), dump_type_prefix(), dump_type_suffix(), dump_typename(), IMPLICIT_TYPENAME_P, NULL_TREE, output_add_string(), print_identifier, print_right_paren, print_scope_operator, print_template_argument_list_end, print_template_argument_list_start, print_tree_identifier, sorry_for_unsupported_tree, TFF_CHASE_TYPEDEF, TFF_DECL_SPECIFIERS, TFF_EXPR_IN_PARENS, TREE_CODE, TREE_TYPE, TREE_UNSIGNED, TYPE_CONTEXT, TYPE_FIELDS, TYPE_IDENTIFIER, TYPE_MAIN_VARIANT, TYPE_MODE, TYPE_NAME, TYPE_PTRMEMFUNC_P, TYPE_TI_ARGS, and UNKNOWN_TYPE.
Definition at line 596 of file error.c.
References before, COMPLEX_TYPE, dump_aggr_type(), dump_qualifiers(), dump_type(), dump_type_prefix(), none, output_add_character(), output_add_space(), print_identifier, print_left_paren, print_scope_operator, sorry_for_unsupported_tree, sub, TREE_CODE, TREE_TYPE, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE, TYPE_PTRMEM_P, TYPE_PTRMEMFUNC_FN_TYPE, TYPE_PTRMEMFUNC_P, and UNKNOWN_TYPE.
Definition at line 707 of file error.c.
References before, COMPLEX_TYPE, cp_build_binary_op, dump_exception_spec(), dump_expr(), dump_parameters(), dump_qualifiers(), dump_type_suffix(), fold(), host_integerp(), integer_one_node, print_integer(), print_left_bracket, print_right_bracket, print_right_paren, sorry_for_unsupported_tree, TFF_EXPR_IN_PARENS, TFF_FUNCTION_DEFAULT_ARGUMENTS, TREE_CHAIN, TREE_CODE, tree_low_cst(), TREE_OPERAND, TREE_TYPE, TREE_VALUE, TYPE_ARG_TYPES, TYPE_DOMAIN, TYPE_MAX_VALUE, TYPE_PTRMEMFUNC_FN_TYPE, TYPE_PTRMEMFUNC_P, TYPE_RAISES_EXCEPTIONS, and UNKNOWN_TYPE.
Definition at line 487 of file error.c.
References dump_decl(), dump_type(), dump_typename(), print_scope_operator, TFF_CLASS_KEY_OR_ENUM, TREE_CODE, TYPE_CONTEXT, and TYPENAME_TYPE_FULLNAME.
Definition at line 2114 of file error.c.
References dump_expr(), print_identifier, print_left_paren, print_right_paren, TFF_EXPR_IN_PARENS, and TREE_OPERAND.
| const char* expr_as_string | ( | tree | decl, | |
| int | flags | |||
| ) |
Definition at line 2143 of file error.c.
References dump_expr(), output_finalize_message(), and reinit_global_formatting_buffer.
Definition at line 2270 of file error.c.
References dump_expr(), output_finalize_message(), and reinit_global_formatting_buffer.
| static const char* fndecl_to_string | ( | tree | fndecl, | |
| int | verbose | |||
| ) | [static] |
Definition at line 2282 of file error.c.
References dump_decl(), flags, output_finalize_message(), reinit_global_formatting_buffer, TFF_DECL_SPECIFIERS, TFF_EXCEPTION_SPECIFICATION, and TFF_FUNCTION_DEFAULT_ARGUMENTS.
| static const char* function_category | ( | tree | fn | ) | [static] |
Definition at line 2486 of file error.c.
References DECL_CONSTRUCTOR_P, DECL_COPY_CONSTRUCTOR_P, DECL_DESTRUCTOR_P, DECL_FUNCTION_MEMBER_P, and DECL_STATIC_FUNCTION_P.
Definition at line 120 of file error.c.
References cp_diagnostic_finalizer(), cp_diagnostic_starter(), cp_printer(), diagnostic_finalizer, diagnostic_format_decoder, diagnostic_starter, global_dc, init_output_buffer(), and NULL.
| const char* lang_decl_name | ( | tree | decl, | |
| int | v | |||
| ) |
Definition at line 2181 of file error.c.
References CP_DECL_CONTEXT, decl_as_string(), DECL_CLASS_SCOPE_P, DECL_NAME, dump_decl(), dump_function_name(), dump_type(), output_finalize_message(), print_scope_operator, reinit_global_formatting_buffer, TFF_DECL_SPECIFIERS, TFF_PLAIN_IDENTIFIER, and TREE_CODE.
| const char* language_to_string | ( | enum languages | c, | |
| v | ||||
| ) |
Definition at line 2667 of file error.c.
References errorcount, f, internal_error(), va_arg, and void.
| static void maybe_print_instantiation_context | ( | diagnostic_context * | context | ) | [static] |
Definition at line 2564 of file error.c.
References current_instantiation(), print_instantiation_full_context(), problematic_instantiation_changed(), and record_last_problematic_instantiation().
| static const char* op_to_string | ( | enum tree_code | p, | |
| v | ||||
| ) | [static] |
| static void print_integer PARAMS | ( | (output_buffer *, HOST_WIDE_INT) | ) | [static] |
| static void print_non_consecutive_character PARAMS | ( | (output_buffer *, int) | ) | [static] |
| static bool cp_printer PARAMS | ( | (output_buffer *, text_info *) | ) | [static] |
| static void cp_diagnostic_starter PARAMS | ( | (diagnostic_context *, diagnostic_info *) | ) | [static] |
| static void print_instantiation_partial_context PARAMS | ( | (diagnostic_context *, tree, const char *, int) | ) | [static] |
| static void maybe_print_instantiation_context PARAMS | ( | (diagnostic_context *) | ) | [static] |
| static void dump_char PARAMS | ( | (int) | ) | [static] |
| static const char* parm_to_string PARAMS | ( | (int, int) | ) | [static] |
| static const char* assop_to_string PARAMS | ( | (enum tree_code, int) | ) | [static] |
| static const char* args_to_string PARAMS | ( | (tree, int) | ) | [static] |
| static const char* parm_to_string | ( | int | p, | |
| v | ||||
| ) | [static] |
Definition at line 2576 of file error.c.
References current_instantiation(), diagnostic_flush_buffer, global_dc, input_filename, lineno, and print_instantiation_partial_context().
| static void print_instantiation_full_context | ( | diagnostic_context * | context | ) | [static] |
Definition at line 2509 of file error.c.
References current_function_decl, current_instantiation(), decl_as_string(), input_filename, lineno, NULL_TREE, p, print_instantiation_partial_context(), TFF_DECL_SPECIFIERS, TFF_RETURN_TYPE, TINST_DECL, TINST_FILE, TINST_LINE, and TREE_CHAIN.
| static void print_instantiation_partial_context | ( | diagnostic_context * | context, | |
| tree | t, | |||
| const char * | file, | |||
| int | line | |||
| ) | [static] |
Definition at line 2545 of file error.c.
References decl_as_string(), TFF_DECL_SPECIFIERS, TFF_RETURN_TYPE, TINST_DECL, TINST_FILE, TINST_LINE, and TREE_CHAIN.
| static void print_integer | ( | output_buffer * | buffer, | |
| HOST_WIDE_INT | i | |||
| ) | [static] |
Definition at line 2643 of file error.c.
References HOST_WIDE_INT, HOST_WIDE_INT_PRINT_DEC, output_add_string(), and sprintf().
| static void print_non_consecutive_character | ( | output_buffer * | buffer, | |
| int | c | |||
| ) | [static] |
Definition at line 2652 of file error.c.
References NULL, output_add_character(), output_add_space(), output_last_position(), and p.
| const char* type_as_string | ( | tree | typ, | |
| int | flags | |||
| ) |
Definition at line 2131 of file error.c.
References dump_type(), output_finalize_message(), and reinit_global_formatting_buffer.
| static const char* type_to_string | ( | tree | typ, | |
| int | verbose | |||
| ) | [static] |
Definition at line 2355 of file error.c.
References dump_type(), flags, output_finalize_message(), reinit_global_formatting_buffer, TFF_CLASS_KEY_OR_ENUM, and TFF_TEMPLATE_HEADER.
Definition at line 2726 of file error.c.
References cp_file_of(), cp_line_of(), diagnostic_set_info(), locate_error(), report_diagnostic, VA_CLOSE, VA_FIXEDARG, and VA_OPEN.
char digit_buffer[128] [static] |
output_buffer* scratch_buffer = &scratch_buffer_rec [static] |
output_buffer scratch_buffer_rec [static] |
1.5.6