#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] |
Definition at line 65 of file error.c.
Referenced by dump_decl(), dump_expr(), and dump_template_decl().
| #define next_int va_arg (*text->args_ptr, int) |
Referenced by cp_printer().
| #define next_lang va_arg (*text->args_ptr, enum languages) |
Referenced by cp_printer().
| #define next_tcode va_arg (*text->args_ptr, enum tree_code) |
Referenced by cp_printer().
| #define next_tree va_arg (*text->args_ptr, tree) |
Referenced by cp_printer().
| #define print_identifier | ( | BUFFER, | |||
| ID | ) | output_add_string ((BUFFER), (ID)) |
Definition at line 56 of file error.c.
Referenced by args_to_string(), dump_aggr_type(), dump_binary_op(), dump_decl(), dump_expr(), dump_function_decl(), dump_parameters(), dump_qualifiers(), dump_simple_decl(), dump_template_bindings(), dump_template_parameter(), dump_template_parms(), dump_type(), dump_type_prefix(), and dump_unary_op().
| #define print_left_bracket | ( | BUFFER | ) | output_add_character ((BUFFER), '[') |
Definition at line 48 of file error.c.
Referenced by dump_decl(), dump_expr(), and dump_type_suffix().
| #define print_left_paren | ( | BUFFER | ) | output_add_character ((BUFFER), '(') |
Definition at line 46 of file error.c.
Referenced by dump_binary_op(), dump_expr(), dump_parameters(), dump_type_prefix(), and dump_unary_op().
| #define print_right_bracket | ( | BUFFER | ) | output_add_character ((BUFFER), ']') |
Definition at line 49 of file error.c.
Referenced by dump_decl(), dump_expr(), dump_function_decl(), and dump_type_suffix().
| #define print_right_paren | ( | BUFFER | ) | output_add_character ((BUFFER), ')') |
Definition at line 47 of file error.c.
Referenced by dump_binary_op(), dump_exception_spec(), dump_expr(), dump_parameters(), dump_type(), dump_type_suffix(), and dump_unary_op().
| #define print_scope_operator | ( | BUFFER | ) | output_add_string ((BUFFER), "::") |
Definition at line 45 of file error.c.
Referenced by dump_decl(), dump_expr(), dump_function_decl(), dump_scope(), dump_type(), dump_type_prefix(), dump_typename(), and lang_decl_name().
| #define print_template_argument_list_end | ( | BUFFER | ) | print_non_consecutive_character ((BUFFER), '>') |
Definition at line 52 of file error.c.
Referenced by dump_decl(), dump_template_decl(), dump_template_parms(), and dump_type().
| #define print_template_argument_list_start | ( | BUFFER | ) | print_non_consecutive_character ((BUFFER), '<') |
Definition at line 50 of file error.c.
Referenced by dump_decl(), dump_template_parms(), and dump_type().
| #define print_tree_identifier | ( | BUFFER, | |||
| TID | ) | output_add_string ((BUFFER), IDENTIFIER_POINTER (TID)) |
Definition at line 54 of file error.c.
Referenced by dump_aggr_type(), dump_decl(), dump_expr(), dump_function_name(), dump_template_parameter(), and dump_type().
| #define reinit_global_formatting_buffer | ( | ) | output_clear_message_text (scratch_buffer) |
Definition at line 67 of file error.c.
Referenced by args_to_string(), context_as_string(), cv_to_string(), decl_as_string(), decl_to_string(), expr_as_string(), expr_to_string(), fndecl_to_string(), lang_decl_name(), type_as_string(), and type_to_string().
| #define separate_with_comma | ( | BUFFER | ) | output_add_string ((BUFFER), ", ") |
Definition at line 57 of file error.c.
Referenced by args_to_string(), dump_decl(), dump_exception_spec(), dump_expr(), dump_expr_list(), dump_parameters(), dump_template_argument_list(), dump_template_bindings(), dump_template_decl(), and dump_template_parms().
| #define sorry_for_unsupported_tree | ( | T | ) |
Value:
sorry ("`%s' not supported by %s", tree_code_name[(int) TREE_CODE (T)], \ __FUNCTION__)
Definition at line 41 of file error.c.
Referenced by dump_decl(), dump_expr(), dump_type(), dump_type_prefix(), and dump_type_suffix().
| static const char* args_to_string | ( | tree | p, | |
| int | verbose | |||
| ) | [static] |
Definition at line 2392 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.
Referenced by cp_printer().
| static const char* assop_to_string | ( | enum tree_code | p, | |
| v | ||||
| ) | [static] |
Definition at line 2381 of file error.c.
References assignment_operator_name_info, IDENTIFIER_POINTER, and int.
Referenced by cp_printer().
| static const char* class_key_or_enum | ( | tree | t | ) | [static] |
Definition at line 511 of file error.c.
References CLASSTYPE_DECLARED_CLASS, TREE_CODE, and TYPE_LANG_SPECIFIC.
Referenced by dump_aggr_type().
| static const char* code_to_string | ( | enum tree_code | c, | |
| v | ||||
| ) | [static] |
| const char* context_as_string | ( | tree | context, | |
| int | flags | |||
| ) |
Definition at line 2174 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] |
Definition at line 2454 of file error.c.
References output_destroy_prefix().
Referenced by init_error().
| static void cp_diagnostic_starter | ( | diagnostic_context * | context, | |
| diagnostic_info * | diagnostic | |||
| ) | [static] |
Definition at line 2443 of file error.c.
References cp_print_error_function(), diagnostic_build_prefix(), diagnostic_report_current_module(), maybe_print_instantiation_context(), and output_set_prefix().
Referenced by cp_error_at(), and init_error().
| const char* cp_file_of | ( | tree | t | ) |
Definition at line 2212 of file error.c.
References DECL_CONTEXT, DECL_SOURCE_FILE, OVL_FUNCTION, TREE_CODE, TYPE_MAIN_DECL, and TYPE_P.
Referenced by VPARAMS().
| int cp_line_of | ( | tree | t | ) |
Definition at line 2226 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.
Referenced by VPARAMS().
| static void cp_print_error_function | ( | diagnostic_context * | context, | |
| diagnostic_info * | diagnostic | |||
| ) | [static] |
Definition at line 2464 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().
Referenced by cp_diagnostic_starter().
| static bool cp_printer | ( | output_buffer * | buffer, | |
| text_info * | text | |||
| ) | [static] |
Definition at line 2604 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.
Referenced by init_error().
| static const char* cv_to_string | ( | tree | p, | |
| int | v | |||
| ) | [static] |
Definition at line 2420 of file error.c.
References before, dump_qualifiers(), none, output_finalize_message(), and reinit_global_formatting_buffer.
Referenced by cp_printer().
| void cxx_print_error_function | ( | diagnostic_context * | context, | |
| const char * | file | |||
| ) |
| const char* decl_as_string | ( | tree | decl, | |
| int | flags | |||
| ) |
Definition at line 2162 of file error.c.
Referenced by dump_array(), dump_function(), lang_decl_name(), mangle_class_name_for_template(), print_instantiation_full_context(), and print_instantiation_partial_context().
| static const char* decl_to_string | ( | tree | decl, | |
| int | verbose | |||
| ) | [static] |
Definition at line 2254 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.
Referenced by cp_printer().
Definition at line 528 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.
Referenced by dump_type(), and dump_type_prefix().
Definition at line 2103 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.
Referenced by dump_expr().
| static void dump_char | ( | int | c | ) | [static] |
Definition at line 1386 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.
Referenced by dump_expr().
Definition at line 844 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_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.
Referenced by decl_as_string(), decl_to_string(), dump_decl(), dump_expr(), dump_function_name(), dump_scope(), dump_simple_decl(), dump_template_decl(), dump_template_parameter(), dump_template_parms(), dump_type(), dump_typename(), fndecl_to_string(), and lang_decl_name().
Definition at line 1235 of file error.c.
References dump_type(), NULL_TREE, output_add_string(), print_right_paren, separate_with_comma, TREE_CHAIN, and TREE_VALUE.
Referenced by dump_function_decl(), and dump_type_suffix().
Definition at line 1451 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_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.
Referenced by dump_binary_op(), dump_decl(), dump_expr(), dump_expr_init_vec(), dump_expr_list(), dump_parameters(), dump_template_argument(), dump_template_parameter(), dump_type(), dump_type_suffix(), dump_unary_op(), expr_as_string(), and expr_to_string().
Definition at line 1435 of file error.c.
References dump_expr(), separate_with_comma, TFF_EXPR_IN_PARENS, TREE_CHAIN, and TREE_VALUE.
Referenced by dump_expr().
Definition at line 1107 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.
Referenced by dump_decl(), dump_scope(), and dump_template_decl().
Definition at line 1259 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.
Referenced by dump_function_decl(), lang_decl_name(), and print_call_name().
Definition at line 805 of file error.c.
References abort, DECL_GLOBAL_CTOR_P, DECL_GLOBAL_DTOR_P, input_filename, NULL, and p.
Referenced by dump_decl().
Definition at line 1201 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.
Referenced by dump_function_decl(), dump_type(), and dump_type_suffix().
Definition at line 172 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.
Referenced by cv_to_string(), dump_aggr_type(), dump_function_decl(), dump_type(), dump_type_prefix(), and dump_type_suffix().
Definition at line 139 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.
Referenced by context_as_string(), dump_aggr_type(), dump_decl(), dump_function_decl(), and dump_simple_decl().
Definition at line 821 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.
Referenced by dump_decl().
Definition at line 209 of file error.c.
References dump_expr(), dump_type(), TFF_CLASS_KEY_OR_ENUM, TFF_EXPR_IN_PARENS, TREE_CODE, and TYPE_P.
Referenced by dump_decl(), dump_template_argument_list(), dump_template_bindings(), and dump_template_parms().
Definition at line 223 of file error.c.
References dump_template_argument(), i, n, separate_with_comma, TREE_VEC_ELT, and TREE_VEC_LENGTH.
Referenced by dump_decl(), and dump_type().
Definition at line 284 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.
Referenced by dump_function_decl().
Definition at line 1039 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.
Referenced by dump_decl().
Definition at line 243 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.
Referenced by dump_template_bindings(), and dump_template_decl().
Definition at line 1310 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.
Referenced by dump_aggr_type(), and dump_function_name().
Definition at line 329 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_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.
Referenced by args_to_string(), dump_decl(), dump_exception_spec(), dump_expr(), dump_function_decl(), dump_function_name(), dump_parameters(), dump_scope(), dump_template_argument(), dump_template_decl(), dump_template_parameter(), dump_type(), dump_type_prefix(), dump_typename(), lang_decl_name(), type_as_string(), and type_to_string().
Definition at line 603 of file error.c.
References before, COMPLEX_TYPE, dump_aggr_type(), dump_qualifiers(), dump_type(), 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.
Referenced by dump_function_decl(), dump_simple_decl(), dump_type(), and dump_type_prefix().
Definition at line 714 of file error.c.
References before, COMPLEX_TYPE, cp_build_binary_op, dump_exception_spec(), dump_expr(), dump_parameters(), dump_qualifiers(), 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.
Referenced by dump_function_decl(), dump_simple_decl(), dump_type(), and dump_type_suffix().
Definition at line 494 of file error.c.
References dump_decl(), dump_type(), print_scope_operator, TFF_CLASS_KEY_OR_ENUM, TREE_CODE, TYPE_CONTEXT, and TYPENAME_TYPE_FULLNAME.
Referenced by dump_type(), and dump_typename().
Definition at line 2121 of file error.c.
References dump_expr(), print_identifier, print_left_paren, print_right_paren, TFF_EXPR_IN_PARENS, and TREE_OPERAND.
Referenced by dump_expr().
| const char* expr_as_string | ( | tree | decl, | |
| int | flags | |||
| ) |
Definition at line 2150 of file error.c.
Referenced by dump_array(), dump_class_hierarchy_r(), and mangle_class_name_for_template().
Definition at line 2277 of file error.c.
References dump_expr(), output_finalize_message(), and reinit_global_formatting_buffer.
Referenced by cp_printer().
| static const char* fndecl_to_string | ( | tree | fndecl, | |
| int | verbose | |||
| ) | [static] |
Definition at line 2289 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.
Referenced by cp_printer().
| static const char* function_category | ( | tree | fn | ) | [static] |
Definition at line 2493 of file error.c.
References DECL_CONSTRUCTOR_P, DECL_COPY_CONSTRUCTOR_P, DECL_DESTRUCTOR_P, DECL_FUNCTION_MEMBER_P, and DECL_STATIC_FUNCTION_P.
Referenced by cp_print_error_function().
| const char* lang_decl_name | ( | tree | decl, | |
| int | v | |||
| ) |
| const char* language_to_string | ( | enum languages | c, | |
| v | ||||
| ) |
Definition at line 2315 of file error.c.
References abort, lang_c, lang_cplusplus, and lang_java.
Referenced by cp_dump_tree(), and cp_printer().
Definition at line 2674 of file error.c.
References errorcount, f, internal_error(), va_arg, and void.
Referenced by cp_error_at(), cp_pedwarn_at(), cp_warning_at(), and VPARAMS().
| static void maybe_print_instantiation_context | ( | diagnostic_context * | context | ) | [static] |
Definition at line 2571 of file error.c.
References current_instantiation(), print_instantiation_full_context(), problematic_instantiation_changed(), and record_last_problematic_instantiation().
Referenced by cp_diagnostic_starter(), and cxx_print_error_function().
| 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] |
| static void print_instantiation_full_context | ( | diagnostic_context * | context | ) | [static] |
Definition at line 2516 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.
Referenced by maybe_print_instantiation_context().
| static void print_instantiation_partial_context | ( | diagnostic_context * | context, | |
| tree | t, | |||
| const char * | file, | |||
| int | line | |||
| ) | [static] |
Definition at line 2552 of file error.c.
References decl_as_string(), TFF_DECL_SPECIFIERS, TFF_RETURN_TYPE, TINST_DECL, TINST_FILE, TINST_LINE, and TREE_CHAIN.
Referenced by print_instantiation_context(), and print_instantiation_full_context().
| static void print_integer | ( | output_buffer * | buffer, | |
| HOST_WIDE_INT | i | |||
| ) | [static] |
Definition at line 2650 of file error.c.
References HOST_WIDE_INT, HOST_WIDE_INT_PRINT_DEC, output_add_string(), and sprintf().
Referenced by dump_expr(), and dump_type_suffix().
| static void print_non_consecutive_character | ( | output_buffer * | buffer, | |
| int | c | |||
| ) | [static] |
Definition at line 2659 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 2138 of file error.c.
Referenced by args_to_string(), dump_class_hierarchy(), dump_class_hierarchy_1(), dump_class_hierarchy_r(), dump_thunk(), dump_vtable(), dump_vtt(), mangle_class_name_for_template(), and name_as_c_string().
| static const char* type_to_string | ( | tree | typ, | |
| int | verbose | |||
| ) | [static] |
Definition at line 2362 of file error.c.
References dump_type(), flags, output_finalize_message(), reinit_global_formatting_buffer, TFF_CLASS_KEY_OR_ENUM, and TFF_TEMPLATE_HEADER.
Referenced by cp_printer(), main(), and print_symbol().
Definition at line 2733 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] |
Definition at line 204 of file error.c.
Referenced by dump_generic_node(), pp_c_floating_constant(), pp_c_integer_constant(), pp_c_integer_literal(), and pp_c_real_literal().
output_buffer* scratch_buffer = &scratch_buffer_rec [static] |
output_buffer scratch_buffer_rec [static] |
1.5.6