Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "ansidecl.h"
#include "libiberty.h"
#include "demangle.h"
#include "cp-demangle.h"
Go to the source code of this file.
Classes | |
struct | d_standard_sub_info |
struct | d_print_template |
struct | d_print_mod |
struct | d_growable_string |
struct | d_component_stack |
struct | d_saved_scope |
struct | d_info_checkpoint |
struct | d_print_info |
Macros | |
#define | INT_MAX (int)(((unsigned int)~0) >> 1) /* 0x7FFFFFFF */ |
#define | CP_STATIC_IF_GLIBCPP_V3 |
#define | IS_DIGIT(c) ((c) >= '0' && (c) <= '9') |
#define | IS_UPPER(c) ((c) >= 'A' && (c) <= 'Z') |
#define | IS_LOWER(c) ((c) >= 'a' && (c) <= 'z') |
#define | ANONYMOUS_NAMESPACE_PREFIX "_GLOBAL_" |
#define | ANONYMOUS_NAMESPACE_PREFIX_LEN (sizeof(ANONYMOUS_NAMESPACE_PREFIX) - 1) |
#define | d_left(dc) ((dc)->u.s_binary.left) |
#define | d_right(dc) ((dc)->u.s_binary.right) |
#define | MAX_RECURSION_COUNT 1024 |
#define | FNQUAL_COMPONENT_CASE |
#define | NL(s) s, (sizeof s) - 1 |
Enumerations | |
enum | { D_PRINT_BUFFER_LENGTH = 256 } |
Variables | |
CP_STATIC_IF_GLIBCPP_V3 const struct demangle_operator_info | cplus_demangle_operators [] |
CP_STATIC_IF_GLIBCPP_V3 const struct demangle_builtin_type_info | cplus_demangle_builtin_types [D_BUILTIN_TYPE_COUNT] |
static const struct d_standard_sub_info | standard_subs [] |
#define ANONYMOUS_NAMESPACE_PREFIX "_GLOBAL_" |
Definition at line 214 of file cp-demangle.c.
#define ANONYMOUS_NAMESPACE_PREFIX_LEN (sizeof(ANONYMOUS_NAMESPACE_PREFIX) - 1) |
Definition at line 215 of file cp-demangle.c.
#define CP_STATIC_IF_GLIBCPP_V3 |
Definition at line 182 of file cp-demangle.c.
#define d_left | ( | dc | ) | ((dc)->u.s_binary.left) |
Definition at line 242 of file cp-demangle.c.
#define d_right | ( | dc | ) | ((dc)->u.s_binary.right) |
Definition at line 243 of file cp-demangle.c.
#define FNQUAL_COMPONENT_CASE |
Definition at line 560 of file cp-demangle.c.
Definition at line 131 of file cp-demangle.c.
Definition at line 208 of file cp-demangle.c.
#define MAX_RECURSION_COUNT 1024 |
Definition at line 313 of file cp-demangle.c.
Definition at line 1663 of file cp-demangle.c.
anonymous enum |
char* alloca | ( | ) |
Referenced by cplus_demangle_print_callback(), d_demangle_callback(), env_strncmp(), is_ctor_or_dtor(), and make_program_env().
CP_STATIC_IF_GLIBCPP_V3 int cplus_demangle_fill_ctor | ( | struct demangle_component * | p, |
enum gnu_v3_ctor_kinds | kind, | ||
struct demangle_component * | name | ||
) |
Definition at line 871 of file cp-demangle.c.
References DEMANGLE_COMPONENT_CTOR, gnu_v3_complete_object_ctor, gnu_v3_object_ctor_group, demangle_component::kind, name, NULL, and p.
Referenced by d_make_ctor().
CP_STATIC_IF_GLIBCPP_V3 int cplus_demangle_fill_dtor | ( | struct demangle_component * | p, |
enum gnu_v3_dtor_kinds | kind, | ||
struct demangle_component * | name | ||
) |
Definition at line 886 of file cp-demangle.c.
References DEMANGLE_COMPONENT_DTOR, gnu_v3_deleting_dtor, gnu_v3_object_dtor_group, demangle_component::kind, name, NULL, and p.
Referenced by d_make_dtor().
CP_STATIC_IF_GLIBCPP_V3 int cplus_demangle_fill_extended_operator | ( | struct demangle_component * | p, |
int | args, | ||
struct demangle_component * | name | ||
) |
Definition at line 857 of file cp-demangle.c.
References args, DEMANGLE_COMPONENT_EXTENDED_OPERATOR, name, NULL, and p.
Referenced by d_make_extended_operator().
CP_STATIC_IF_GLIBCPP_V3 int cplus_demangle_fill_name | ( | struct demangle_component * | p, |
const char * | s, | ||
int | len | ||
) |
Definition at line 844 of file cp-demangle.c.
References DEMANGLE_COMPONENT_NAME, len, NULL, p, and s.
Referenced by d_make_name().
CP_STATIC_IF_GLIBCPP_V3 void cplus_demangle_init_info | ( | const char * | mangled, |
int | options, | ||
size_t | len, | ||
struct d_info * | di | ||
) |
Definition at line 5681 of file cp-demangle.c.
References d_info::expansion, d_info::is_conversion, d_info::is_expression, d_info::last_name, len, d_info::n, d_info::next_comp, d_info::next_sub, NULL, d_info::num_comps, d_info::num_subs, options, d_info::options, d_info::s, and d_info::send.
Referenced by d_demangle_callback(), and is_ctor_or_dtor().
CP_STATIC_IF_GLIBCPP_V3 struct demangle_component* cplus_demangle_mangled_name | ( | struct d_info * | di, |
int | top_level | ||
) |
Definition at line 1170 of file cp-demangle.c.
References d_check_char, d_clone_suffix(), d_encoding(), d_peek_char, d_peek_next_char, DMGL_PARAMS, IS_DIGIT, IS_LOWER, NULL, d_info::options, and p.
Referenced by d_demangle_callback(), d_expr_primary(), and is_ctor_or_dtor().
CP_STATIC_IF_GLIBCPP_V3 char* cplus_demangle_print | ( | int | options, |
struct demangle_component * | dc, | ||
int | estimate, | ||
size_t * | palc | ||
) |
Definition at line 4010 of file cp-demangle.c.
References d_growable_string::alc, d_growable_string::allocation_failure, d_growable_string::buf, cplus_demangle_print_callback(), d_growable_string_callback_adapter(), d_growable_string_init(), free(), NULL, and options.
CP_STATIC_IF_GLIBCPP_V3 int cplus_demangle_print_callback | ( | int | options, |
struct demangle_component * | dc, | ||
demangle_callbackref | callback, | ||
void * | opaque | ||
) |
Definition at line 3967 of file cp-demangle.c.
References __extension__, alloca(), d_print_info::callback, CP_STATIC_IF_GLIBCPP_V3, d_print_comp(), d_print_flush(), d_print_init(), d_print_saw_error(), and d_print_info::opaque.
Referenced by cplus_demangle_print(), and d_demangle_callback().
CP_STATIC_IF_GLIBCPP_V3 struct demangle_component* cplus_demangle_type | ( | struct d_info * | di | ) |
Definition at line 2212 of file cp-demangle.c.
References args, cplus_demangle_builtin_types, d_add_substitution(), d_advance, d_array_type(), d_backtrack(), d_checkpoint(), d_class_enum_type(), d_cv_qualifiers(), d_expression(), d_function_type(), d_left, d_make_builtin_type(), d_make_comp(), d_make_empty(), d_make_name(), d_next_char, d_number(), d_peek_char, d_peek_next_char, d_pointer_to_member_type(), d_source_name(), d_substitution(), d_template_args(), d_template_param(), d_vector_type(), DEMANGLE_COMPONENT_COMPLEX, DEMANGLE_COMPONENT_DECLTYPE, DEMANGLE_COMPONENT_FIXED_TYPE, DEMANGLE_COMPONENT_IMAGINARY, DEMANGLE_COMPONENT_PACK_EXPANSION, DEMANGLE_COMPONENT_POINTER, DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_REFERENCE_THIS, DEMANGLE_COMPONENT_RVALUE_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS, DEMANGLE_COMPONENT_SUB_STD, DEMANGLE_COMPONENT_TEMPLATE, DEMANGLE_COMPONENT_VENDOR_TYPE, DEMANGLE_COMPONENT_VENDOR_TYPE_QUAL, d_info::expansion, fn, d_info::is_conversion, IS_DIGIT, IS_UPPER, next_is_type_qual(), NULL, demangle_component::s_builtin, demangle_component::s_fixed, demangle_component::type, and demangle_component::u.
Referenced by d_array_type(), d_bare_function_type(), d_ctor_dtor_name(), d_demangle_callback(), d_expr_primary(), d_expression_1(), d_operator_name(), d_parmlist(), d_pointer_to_member_type(), d_prefix(), d_special_name(), d_template_arg(), and d_vector_type().
Definition at line 5942 of file cp-demangle.c.
References d_growable_string::alc, d_demangle(), and options.
int cplus_demangle_v3_callback | ( | const char * | mangled, |
int | options, | ||
demangle_callbackref | callback, | ||
void * | opaque | ||
) |
Definition at line 5948 of file cp-demangle.c.
References d_demangle_callback(), and options.
|
static |
Definition at line 1300 of file cp-demangle.c.
References d_advance, d_make_comp(), d_peek_char, d_source_name(), DEMANGLE_COMPONENT_TAGGED_NAME, d_info::last_name, and test-lz4-versions::tag.
Referenced by d_substitution(), and d_unqualified_name().
|
static |
Definition at line 3503 of file cp-demangle.c.
References d_info::next_sub, NULL, d_info::num_subs, and d_info::subs.
Referenced by cplus_demangle_type(), d_lambda(), d_name(), d_prefix(), d_substitution(), and d_unnamed_type().
|
inlinestatic |
Definition at line 3933 of file cp-demangle.c.
References d_append_char(), i, and s.
Referenced by d_append_string(), d_print_comp_inner(), and d_print_expr_op().
|
inlinestatic |
Definition at line 3924 of file cp-demangle.c.
References d_print_info::buf, c, d_print_flush(), d_print_info::last_char, and d_print_info::len.
Referenced by d_append_buffer(), d_maybe_print_fold_expression(), d_print_array_type(), d_print_comp_inner(), d_print_conversion(), d_print_function_type(), d_print_java_identifier(), d_print_mod(), d_print_mod_list(), and d_print_subexpr().
|
inlinestatic |
Definition at line 3946 of file cp-demangle.c.
References d_append_string(), and sprintf.
Referenced by d_print_comp_inner(), and d_print_mod_list().
|
inlinestatic |
Definition at line 3941 of file cp-demangle.c.
References d_append_buffer(), and s.
Referenced by d_append_num(), d_maybe_print_fold_expression(), d_print_array_type(), d_print_comp_inner(), d_print_mod(), and d_print_mod_list().
|
static |
Definition at line 4133 of file cp-demangle.c.
References a, count, d_find_pack(), d_left, d_pack_length(), d_right, DEMANGLE_COMPONENT_PACK_EXPANSION, DEMANGLE_COMPONENT_TEMPLATE_ARGLIST, NULL, and demangle_component::type.
Referenced by d_print_comp_inner().
|
static |
Definition at line 2773 of file cp-demangle.c.
References cplus_demangle_type(), d_advance, d_check_char, d_expression(), d_make_comp(), d_make_name(), d_peek_char, d_str, DEMANGLE_COMPONENT_ARRAY_TYPE, IS_DIGIT, NULL, and s.
Referenced by cplus_demangle_type().
|
static |
Definition at line 3648 of file cp-demangle.c.
References d_info_checkpoint::expansion, d_info::expansion, d_info_checkpoint::n, d_info::n, d_info_checkpoint::next_comp, d_info::next_comp, d_info_checkpoint::next_sub, and d_info::next_sub.
Referenced by cplus_demangle_type().
|
static |
Definition at line 2733 of file cp-demangle.c.
References cplus_demangle_type(), d_advance, d_make_comp(), d_parmlist(), d_peek_char, DEMANGLE_COMPONENT_FUNCTION_TYPE, has_return_type(), and NULL.
Referenced by d_encoding(), and d_function_type().
Definition at line 2030 of file cp-demangle.c.
References c, d_check_char, d_next_char, and d_number().
Referenced by d_special_name().
|
static |
Definition at line 3640 of file cp-demangle.c.
References d_info_checkpoint::expansion, d_info::expansion, d_info_checkpoint::n, d_info::n, d_info_checkpoint::next_comp, d_info::next_comp, d_info_checkpoint::next_sub, and d_info::next_sub.
Referenced by cplus_demangle_type().
|
static |
Definition at line 2764 of file cp-demangle.c.
References d_name().
Referenced by cplus_demangle_type().
|
static |
Definition at line 3480 of file cp-demangle.c.
References d_advance, d_make_comp(), d_make_name(), d_str, DEMANGLE_COMPONENT_CLONE, cmd_descs_generate::encoding, IS_DIGIT, IS_LOWER, n, and suffix.
Referenced by cplus_demangle_mangled_name().
Definition at line 2871 of file cp-demangle.c.
References d_check_char, d_number(), d_peek_char, and num.
Referenced by d_expression_1(), d_lambda(), d_local_name(), d_template_param(), and d_unnamed_type().
|
static |
Definition at line 3734 of file cp-demangle.c.
References d_left, d_right, DEMANGLE_COMPONENT_ARGLIST, DEMANGLE_COMPONENT_ARRAY_TYPE, DEMANGLE_COMPONENT_BINARY, DEMANGLE_COMPONENT_BINARY_ARGS, DEMANGLE_COMPONENT_BUILTIN_TYPE, DEMANGLE_COMPONENT_CAST, DEMANGLE_COMPONENT_CHARACTER, DEMANGLE_COMPONENT_CLONE, DEMANGLE_COMPONENT_COMPLEX, DEMANGLE_COMPONENT_COMPOUND_NAME, DEMANGLE_COMPONENT_CONST, DEMANGLE_COMPONENT_CONST_THIS, DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE, DEMANGLE_COMPONENT_CONVERSION, DEMANGLE_COMPONENT_COVARIANT_THUNK, DEMANGLE_COMPONENT_CTOR, DEMANGLE_COMPONENT_DECLTYPE, DEMANGLE_COMPONENT_DEFAULT_ARG, DEMANGLE_COMPONENT_DTOR, DEMANGLE_COMPONENT_EXTENDED_OPERATOR, DEMANGLE_COMPONENT_FIXED_TYPE, DEMANGLE_COMPONENT_FUNCTION_PARAM, DEMANGLE_COMPONENT_FUNCTION_TYPE, DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS, DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS, DEMANGLE_COMPONENT_GUARD, DEMANGLE_COMPONENT_HIDDEN_ALIAS, DEMANGLE_COMPONENT_IMAGINARY, DEMANGLE_COMPONENT_INITIALIZER_LIST, DEMANGLE_COMPONENT_JAVA_CLASS, DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_LAMBDA, DEMANGLE_COMPONENT_LITERAL, DEMANGLE_COMPONENT_LITERAL_NEG, DEMANGLE_COMPONENT_LOCAL_NAME, DEMANGLE_COMPONENT_NAME, DEMANGLE_COMPONENT_NOEXCEPT, DEMANGLE_COMPONENT_NONTRANSACTION_CLONE, DEMANGLE_COMPONENT_NULLARY, DEMANGLE_COMPONENT_NUMBER, DEMANGLE_COMPONENT_OPERATOR, DEMANGLE_COMPONENT_PACK_EXPANSION, DEMANGLE_COMPONENT_POINTER, DEMANGLE_COMPONENT_PTRMEM_TYPE, DEMANGLE_COMPONENT_QUAL_NAME, DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_REFERENCE_THIS, DEMANGLE_COMPONENT_REFTEMP, DEMANGLE_COMPONENT_RESTRICT, DEMANGLE_COMPONENT_RESTRICT_THIS, DEMANGLE_COMPONENT_RVALUE_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS, DEMANGLE_COMPONENT_SUB_STD, DEMANGLE_COMPONENT_TAGGED_NAME, DEMANGLE_COMPONENT_TEMPLATE, DEMANGLE_COMPONENT_TEMPLATE_ARGLIST, DEMANGLE_COMPONENT_TEMPLATE_PARAM, DEMANGLE_COMPONENT_THROW_SPEC, DEMANGLE_COMPONENT_THUNK, DEMANGLE_COMPONENT_TLS_INIT, DEMANGLE_COMPONENT_TLS_WRAPPER, DEMANGLE_COMPONENT_TPARM_OBJ, DEMANGLE_COMPONENT_TRANSACTION_CLONE, DEMANGLE_COMPONENT_TRANSACTION_SAFE, DEMANGLE_COMPONENT_TRINARY, DEMANGLE_COMPONENT_TRINARY_ARG1, DEMANGLE_COMPONENT_TRINARY_ARG2, DEMANGLE_COMPONENT_TYPED_NAME, DEMANGLE_COMPONENT_TYPEINFO, DEMANGLE_COMPONENT_TYPEINFO_FN, DEMANGLE_COMPONENT_TYPEINFO_NAME, DEMANGLE_COMPONENT_UNARY, DEMANGLE_COMPONENT_UNNAMED_TYPE, DEMANGLE_COMPONENT_VECTOR_TYPE, DEMANGLE_COMPONENT_VENDOR_TYPE, DEMANGLE_COMPONENT_VENDOR_TYPE_QUAL, DEMANGLE_COMPONENT_VIRTUAL_THUNK, DEMANGLE_COMPONENT_VOLATILE, DEMANGLE_COMPONENT_VOLATILE_THIS, DEMANGLE_COMPONENT_VTABLE, DEMANGLE_COMPONENT_VTT, NULL, demangle_component::s_ctor, demangle_component::s_dtor, demangle_component::s_extended_operator, demangle_component::s_fixed, demangle_component::s_unary_num, type, demangle_component::type, and demangle_component::u.
Referenced by d_print_init().
|
static |
Definition at line 2059 of file cp-demangle.c.
References cplus_demangle_type(), d_advance, d_make_ctor(), d_make_dtor(), d_peek_char, d_peek_next_char, DEMANGLE_COMPONENT_NAME, DEMANGLE_COMPONENT_SUB_STD, d_info::expansion, gnu_v3_base_object_ctor, gnu_v3_base_object_dtor, gnu_v3_complete_object_allocating_ctor, gnu_v3_complete_object_ctor, gnu_v3_complete_object_dtor, gnu_v3_deleting_dtor, gnu_v3_object_ctor_group, gnu_v3_object_dtor_group, gnu_v3_unified_ctor, gnu_v3_unified_dtor, demangle_component::kind, d_info::last_name, NULL, demangle_component::s_name, demangle_component::s_string, demangle_component::type, and demangle_component::u.
Referenced by d_unqualified_name().
|
static |
Definition at line 2557 of file cp-demangle.c.
References d_advance, d_check_char, d_expression(), d_left, d_make_comp(), d_next_char, d_parmlist(), d_peek_char, DEMANGLE_COMPONENT_CONST, DEMANGLE_COMPONENT_CONST_THIS, DEMANGLE_COMPONENT_NOEXCEPT, DEMANGLE_COMPONENT_RESTRICT, DEMANGLE_COMPONENT_RESTRICT_THIS, DEMANGLE_COMPONENT_THROW_SPEC, DEMANGLE_COMPONENT_TRANSACTION_SAFE, DEMANGLE_COMPONENT_VOLATILE, DEMANGLE_COMPONENT_VOLATILE_THIS, d_info::expansion, next_is_type_qual(), NULL, and demangle_component::right.
Referenced by cplus_demangle_type(), and d_nested_name().
Definition at line 5798 of file cp-demangle.c.
References d_growable_string::alc, d_growable_string::allocation_failure, d_growable_string::buf, d_demangle_callback(), d_growable_string_callback_adapter(), d_growable_string_init(), free(), NULL, options, and status.
Referenced by cplus_demangle_v3(), and java_demangle_v3().
|
static |
Definition at line 5713 of file cp-demangle.c.
References __extension__, alloca(), cplus_demangle_init_info(), cplus_demangle_mangled_name(), cplus_demangle_print_callback(), cplus_demangle_type(), d_advance, d_make_comp(), d_make_demangle_mangled_name(), d_peek_char, d_str, DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS, DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS, DMGL_PARAMS, DMGL_TYPES, NULL, options, status, and type.
Referenced by cplus_demangle_v3_callback(), d_demangle(), and java_demangle_v3_callback().
Definition at line 3387 of file cp-demangle.c.
References d_advance, d_number(), and d_peek_char.
Referenced by d_local_name(), and d_unqualified_name().
|
static |
Definition at line 1247 of file cp-demangle.c.
References d_bare_function_type(), d_left, d_make_comp(), d_name(), d_peek_char, d_right, d_special_name(), DEMANGLE_COMPONENT_FUNCTION_TYPE, DEMANGLE_COMPONENT_LOCAL_NAME, DEMANGLE_COMPONENT_TYPED_NAME, DMGL_PARAMS, has_return_type(), is_fnqual_component_type(), NULL, d_info::options, type, and demangle_component::type.
Referenced by cplus_demangle_mangled_name(), d_local_name(), d_make_demangle_mangled_name(), and d_special_name().
|
static |
Definition at line 3265 of file cp-demangle.c.
References cplus_demangle_mangled_name(), cplus_demangle_type(), d_advance, d_check_char, d_make_comp(), d_make_name(), d_peek_char, D_PRINT_DEFAULT, d_str, DEMANGLE_COMPONENT_BUILTIN_TYPE, DEMANGLE_COMPONENT_LITERAL, DEMANGLE_COMPONENT_LITERAL_NEG, d_info::expansion, NULL, s, and type.
Referenced by d_expression_1(), and d_template_arg().
|
static |
Definition at line 3249 of file cp-demangle.c.
References d_expression_1(), and d_info::is_expression.
Referenced by cplus_demangle_type(), d_array_type(), d_cv_qualifiers(), d_exprlist(), d_template_arg(), and d_vector_type().
|
inlinestatic |
Definition at line 3041 of file cp-demangle.c.
References args, op::code, cplus_demangle_type(), d_advance, d_check_char, d_compact_number(), d_expr_primary(), d_exprlist(), d_make_comp(), d_make_function_param(), d_operator_name(), d_peek_char, d_peek_next_char, d_template_args(), d_template_args_1(), d_template_param(), d_unqualified_name(), DEMANGLE_COMPONENT_BINARY, DEMANGLE_COMPONENT_BINARY_ARGS, DEMANGLE_COMPONENT_CAST, DEMANGLE_COMPONENT_EXTENDED_OPERATOR, DEMANGLE_COMPONENT_INITIALIZER_LIST, DEMANGLE_COMPONENT_NULLARY, DEMANGLE_COMPONENT_OPERATOR, DEMANGLE_COMPONENT_PACK_EXPANSION, DEMANGLE_COMPONENT_QUAL_NAME, DEMANGLE_COMPONENT_TEMPLATE, DEMANGLE_COMPONENT_TRINARY, DEMANGLE_COMPONENT_TRINARY_ARG1, DEMANGLE_COMPONENT_TRINARY_ARG2, DEMANGLE_COMPONENT_UNARY, d_info::expansion, INT_MAX, IS_DIGIT, demangle_component::left, name, NULL, op, op_is_new_cast(), demangle_component::right, suffix, and type.
Referenced by d_expression().
|
static |
Definition at line 2992 of file cp-demangle.c.
References d_advance, d_expression(), d_make_comp(), d_peek_char, d_right, DEMANGLE_COMPONENT_ARGLIST, list(), NULL, and p.
Referenced by d_expression_1().
|
static |
Definition at line 4072 of file cp-demangle.c.
References a, d_left, d_lookup_template_argument(), d_right, DEMANGLE_COMPONENT_BUILTIN_TYPE, DEMANGLE_COMPONENT_CHARACTER, DEMANGLE_COMPONENT_CTOR, DEMANGLE_COMPONENT_DEFAULT_ARG, DEMANGLE_COMPONENT_DTOR, DEMANGLE_COMPONENT_EXTENDED_OPERATOR, DEMANGLE_COMPONENT_FIXED_TYPE, DEMANGLE_COMPONENT_FUNCTION_PARAM, DEMANGLE_COMPONENT_LAMBDA, DEMANGLE_COMPONENT_NAME, DEMANGLE_COMPONENT_NUMBER, DEMANGLE_COMPONENT_OPERATOR, DEMANGLE_COMPONENT_PACK_EXPANSION, DEMANGLE_COMPONENT_SUB_STD, DEMANGLE_COMPONENT_TAGGED_NAME, DEMANGLE_COMPONENT_TEMPLATE_ARGLIST, DEMANGLE_COMPONENT_TEMPLATE_PARAM, DEMANGLE_COMPONENT_UNNAMED_TYPE, NULL, demangle_component::s_ctor, demangle_component::s_dtor, demangle_component::s_extended_operator, demangle_component::type, and demangle_component::u.
Referenced by d_args_length(), and d_print_comp_inner().
|
static |
Definition at line 2670 of file cp-demangle.c.
References d_advance, d_bare_function_type(), d_check_char, d_peek_char, d_ref_qualifier(), and NULL.
Referenced by cplus_demangle_type().
|
static |
Definition at line 4205 of file cp-demangle.c.
References d_saved_scope::container, i, d_print_info::next_saved_scope, NULL, and d_print_info::saved_scopes.
Referenced by d_print_comp_inner().
|
inlinestatic |
Definition at line 3701 of file cp-demangle.c.
References d_growable_string::alc, d_growable_string::allocation_failure, d_growable_string::buf, d_growable_string_resize(), d_growable_string::len, memcpy(), and s.
Referenced by d_growable_string_callback_adapter().
Definition at line 3720 of file cp-demangle.c.
References d_growable_string_append_buffer(), and s.
Referenced by cplus_demangle_print(), and d_demangle().
|
static |
Definition at line 3658 of file cp-demangle.c.
References d_growable_string::alc, d_growable_string::allocation_failure, d_growable_string::buf, d_growable_string_resize(), d_growable_string::len, and NULL.
Referenced by cplus_demangle_print(), and d_demangle().
|
inlinestatic |
Definition at line 3671 of file cp-demangle.c.
References d_growable_string::alc, d_growable_string::allocation_failure, d_growable_string::buf, free(), d_growable_string::len, NULL, and realloc().
Referenced by d_growable_string_append_buffer(), and d_growable_string_init().
|
static |
Definition at line 1624 of file cp-demangle.c.
References ANONYMOUS_NAMESPACE_PREFIX, ANONYMOUS_NAMESPACE_PREFIX_LEN, d_advance, d_make_name(), d_peek_char, d_str, DMGL_JAVA, d_info::expansion, len, name, NULL, d_info::options, s, and d_info::send.
Referenced by d_source_name().
|
static |
Definition at line 4032 of file cp-demangle.c.
References a, args, d_left, d_right, DEMANGLE_COMPONENT_TEMPLATE_ARGLIST, i, and NULL.
Referenced by d_lookup_template_argument(), and d_print_comp_inner().
|
static |
Definition at line 1798 of file cp-demangle.c.
References c, d_advance, d_make_character(), d_make_comp(), d_make_name(), d_next_char, d_number(), d_str, DEMANGLE_COMPONENT_COMPOUND_NAME, DEMANGLE_COMPONENT_JAVA_RESOURCE, i, len, NULL, p, and cmd_descs_generate::str.
Referenced by d_special_name().
|
static |
Definition at line 3414 of file cp-demangle.c.
References d_add_substitution(), d_check_char, d_compact_number(), d_make_empty(), d_parmlist(), DEMANGLE_COMPONENT_LAMBDA, NULL, num, demangle_component::s_unary_num, demangle_component::type, and demangle_component::u.
Referenced by d_unqualified_name().
|
inlinestatic |
Definition at line 3953 of file cp-demangle.c.
References d_print_info::last_char.
Referenced by d_print_comp_inner(), d_print_conversion(), d_print_function_type(), and d_print_mod().
|
static |
Definition at line 3323 of file cp-demangle.c.
References d_advance, d_check_char, d_compact_number(), d_discriminator(), d_encoding(), d_left, d_make_comp(), d_make_default_arg(), d_make_name(), d_name(), d_peek_char, d_right, DEMANGLE_COMPONENT_FUNCTION_TYPE, DEMANGLE_COMPONENT_LAMBDA, DEMANGLE_COMPONENT_LOCAL_NAME, DEMANGLE_COMPONENT_TYPED_NAME, DEMANGLE_COMPONENT_UNNAMED_TYPE, name, NULL, num, and type.
Referenced by d_name().
|
static |
Definition at line 4058 of file cp-demangle.c.
References d_index_template_argument(), d_print_error(), d_right, NULL, demangle_component::s_number, d_print_template::template_decl, d_print_info::templates, and demangle_component::u.
Referenced by d_find_pack(), and d_print_comp_inner().
|
static |
Definition at line 1042 of file cp-demangle.c.
References d_make_empty(), DEMANGLE_COMPONENT_BUILTIN_TYPE, NULL, p, and type.
Referenced by cplus_demangle_type().
|
static |
Definition at line 1787 of file cp-demangle.c.
References c, d_make_empty(), DEMANGLE_COMPONENT_CHARACTER, NULL, and p.
Referenced by d_java_resource().
|
static |
Definition at line 915 of file cp-demangle.c.
References d_make_empty(), DEMANGLE_COMPONENT_ARGLIST, DEMANGLE_COMPONENT_ARRAY_TYPE, DEMANGLE_COMPONENT_BINARY, DEMANGLE_COMPONENT_BINARY_ARGS, DEMANGLE_COMPONENT_CAST, DEMANGLE_COMPONENT_CLONE, DEMANGLE_COMPONENT_COMPLEX, DEMANGLE_COMPONENT_COMPOUND_NAME, DEMANGLE_COMPONENT_CONST, DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE, DEMANGLE_COMPONENT_CONVERSION, DEMANGLE_COMPONENT_COVARIANT_THUNK, DEMANGLE_COMPONENT_DECLTYPE, DEMANGLE_COMPONENT_FUNCTION_TYPE, DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS, DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS, DEMANGLE_COMPONENT_GUARD, DEMANGLE_COMPONENT_HIDDEN_ALIAS, DEMANGLE_COMPONENT_IMAGINARY, DEMANGLE_COMPONENT_INITIALIZER_LIST, DEMANGLE_COMPONENT_JAVA_CLASS, DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_LITERAL, DEMANGLE_COMPONENT_LITERAL_NEG, DEMANGLE_COMPONENT_LOCAL_NAME, DEMANGLE_COMPONENT_NONTRANSACTION_CLONE, DEMANGLE_COMPONENT_NULLARY, DEMANGLE_COMPONENT_PACK_EXPANSION, DEMANGLE_COMPONENT_POINTER, DEMANGLE_COMPONENT_PTRMEM_TYPE, DEMANGLE_COMPONENT_QUAL_NAME, DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_REFTEMP, DEMANGLE_COMPONENT_RESTRICT, DEMANGLE_COMPONENT_RVALUE_REFERENCE, DEMANGLE_COMPONENT_TAGGED_NAME, DEMANGLE_COMPONENT_TEMPLATE, DEMANGLE_COMPONENT_TEMPLATE_ARGLIST, DEMANGLE_COMPONENT_THUNK, DEMANGLE_COMPONENT_TLS_INIT, DEMANGLE_COMPONENT_TLS_WRAPPER, DEMANGLE_COMPONENT_TPARM_OBJ, DEMANGLE_COMPONENT_TRANSACTION_CLONE, DEMANGLE_COMPONENT_TRINARY, DEMANGLE_COMPONENT_TRINARY_ARG1, DEMANGLE_COMPONENT_TRINARY_ARG2, DEMANGLE_COMPONENT_TYPED_NAME, DEMANGLE_COMPONENT_TYPEINFO, DEMANGLE_COMPONENT_TYPEINFO_FN, DEMANGLE_COMPONENT_TYPEINFO_NAME, DEMANGLE_COMPONENT_UNARY, DEMANGLE_COMPONENT_VECTOR_TYPE, DEMANGLE_COMPONENT_VENDOR_TYPE, DEMANGLE_COMPONENT_VENDOR_TYPE_QUAL, DEMANGLE_COMPONENT_VIRTUAL_THUNK, DEMANGLE_COMPONENT_VOLATILE, DEMANGLE_COMPONENT_VTABLE, DEMANGLE_COMPONENT_VTT, FNQUAL_COMPONENT_CASE, demangle_component::left, NULL, p, demangle_component::right, and type.
Referenced by cplus_demangle_type(), d_abi_tags(), d_array_type(), d_bare_function_type(), d_clone_suffix(), d_cv_qualifiers(), d_demangle_callback(), d_encoding(), d_expr_primary(), d_expression_1(), d_exprlist(), d_java_resource(), d_local_name(), d_name(), d_operator_name(), d_parmlist(), d_pointer_to_member_type(), d_prefix(), d_ref_qualifier(), d_special_name(), d_template_args_1(), d_unqualified_name(), and d_vector_type().
|
static |
Definition at line 1098 of file cp-demangle.c.
References cplus_demangle_fill_ctor(), d_make_empty(), demangle_component::kind, NULL, and p.
Referenced by d_ctor_dtor_name().
|
static |
Definition at line 1084 of file cp-demangle.c.
References d_make_empty(), DEMANGLE_COMPONENT_DEFAULT_ARG, num, p, and demangle_component::sub.
Referenced by d_local_name().
|
static |
Definition at line 1020 of file cp-demangle.c.
References d_advance, d_encoding(), d_make_name(), d_peek_char, d_peek_next_char, and s.
Referenced by d_demangle_callback().
|
static |
Definition at line 1111 of file cp-demangle.c.
References cplus_demangle_fill_dtor(), d_make_empty(), demangle_component::kind, NULL, and p.
Referenced by d_ctor_dtor_name().
|
static |
Definition at line 901 of file cp-demangle.c.
References d_info::comps, d_info::next_comp, NULL, d_info::num_comps, and p.
Referenced by cplus_demangle_type(), d_lambda(), d_make_builtin_type(), d_make_character(), d_make_comp(), d_make_ctor(), d_make_default_arg(), d_make_dtor(), d_make_extended_operator(), d_make_function_param(), d_make_name(), d_make_operator(), d_make_sub(), d_make_template_param(), d_number_component(), and d_unnamed_type().
|
static |
Definition at line 1073 of file cp-demangle.c.
References args, cplus_demangle_fill_extended_operator(), d_make_empty(), NULL, and p.
Referenced by d_operator_name().
|
static |
Definition at line 1138 of file cp-demangle.c.
References d_make_empty(), DEMANGLE_COMPONENT_FUNCTION_PARAM, i, NULL, and p.
Referenced by d_expression_1().
|
static |
Definition at line 1030 of file cp-demangle.c.
References cplus_demangle_fill_name(), d_make_empty(), len, NULL, p, and s.
Referenced by cplus_demangle_type(), d_array_type(), d_clone_suffix(), d_expr_primary(), d_identifier(), d_java_resource(), d_local_name(), d_make_demangle_mangled_name(), and d_name().
|
static |
Definition at line 1059 of file cp-demangle.c.
References d_make_empty(), DEMANGLE_COMPONENT_OPERATOR, NULL, op, and p.
Referenced by d_operator_name().
|
static |
Definition at line 1152 of file cp-demangle.c.
References d_make_empty(), DEMANGLE_COMPONENT_SUB_STD, len, name, NULL, and p.
Referenced by d_substitution().
|
static |
Definition at line 1124 of file cp-demangle.c.
References d_make_empty(), DEMANGLE_COMPONENT_TEMPLATE_PARAM, i, NULL, and p.
Referenced by d_template_param().
|
static |
Definition at line 4220 of file cp-demangle.c.
References d_append_char(), d_append_string(), d_left, d_print_expr_op(), d_print_subexpr(), d_right, DEMANGLE_COMPONENT_TRINARY_ARG2, ops, options, d_print_info::pack_index, and demangle_component::type.
Referenced by d_print_comp_inner().
|
static |
Definition at line 1333 of file cp-demangle.c.
References d_add_substitution(), d_advance, d_local_name(), d_make_comp(), d_make_name(), d_nested_name(), d_peek_char, d_peek_next_char, d_substitution(), d_template_args(), d_unqualified_name(), DEMANGLE_COMPONENT_QUAL_NAME, DEMANGLE_COMPONENT_TEMPLATE, d_info::expansion, and NULL.
Referenced by d_class_enum_type(), d_encoding(), d_local_name(), and d_special_name().
|
static |
Definition at line 1403 of file cp-demangle.c.
References d_check_char, d_cv_qualifiers(), d_left, d_prefix(), d_ref_qualifier(), and NULL.
Referenced by d_name().
Definition at line 1581 of file cp-demangle.c.
References d_advance, d_peek_char, INT_MAX, and IS_DIGIT.
Referenced by cplus_demangle_type(), d_call_offset(), d_compact_number(), d_discriminator(), d_java_resource(), d_number_component(), d_source_name(), and d_special_name().
|
static |
Definition at line 1612 of file cp-demangle.c.
References d_make_empty(), d_number(), DEMANGLE_COMPONENT_NUMBER, demangle_component::s_number, demangle_component::type, and demangle_component::u.
Referenced by d_special_name(), and d_vector_type().
|
static |
Definition at line 1738 of file cp-demangle.c.
References c1, c2, cplus_demangle_operators, cplus_demangle_type(), d_make_comp(), d_make_extended_operator(), d_make_operator(), d_next_char, d_source_name(), DEMANGLE_COMPONENT_CAST, DEMANGLE_COMPONENT_CONVERSION, i, d_info::is_conversion, IS_DIGIT, d_info::is_expression, NULL, p, and type.
Referenced by d_expression_1(), and d_unqualified_name().
|
static |
Definition at line 4120 of file cp-demangle.c.
References count, d_left, d_right, DEMANGLE_COMPONENT_TEMPLATE_ARGLIST, NULL, and demangle_component::type.
Referenced by d_args_length(), and d_print_comp_inner().
|
static |
Definition at line 2691 of file cp-demangle.c.
References cplus_demangle_type(), d_left, d_make_comp(), d_peek_char, d_peek_next_char, D_PRINT_VOID, d_right, DEMANGLE_COMPONENT_ARGLIST, DEMANGLE_COMPONENT_BUILTIN_TYPE, d_info::expansion, NULL, type, and demangle_component::u.
Referenced by d_bare_function_type(), d_cv_qualifiers(), and d_lambda().
|
static |
Definition at line 2835 of file cp-demangle.c.
References cplus_demangle_type(), d_check_char, d_make_comp(), DEMANGLE_COMPONENT_PTRMEM_TYPE, mem, and NULL.
Referenced by cplus_demangle_type().
|
static |
Definition at line 1447 of file cp-demangle.c.
References cplus_demangle_type(), d_add_substitution(), d_advance, d_make_comp(), d_peek_char, d_peek_next_char, d_substitution(), d_template_args(), d_template_param(), d_unqualified_name(), DEMANGLE_COMPONENT_QUAL_NAME, DEMANGLE_COMPONENT_TEMPLATE, IS_DIGIT, IS_LOWER, and NULL.
Referenced by d_nested_name().
|
static |
Definition at line 5573 of file cp-demangle.c.
References d_append_char(), d_append_string(), d_left, d_print_comp(), d_print_mod_list(), DEMANGLE_COMPONENT_ARRAY_TYPE, NULL, options, and p.
Referenced by d_print_comp_inner(), and d_print_mod_list().
|
static |
Definition at line 5632 of file cp-demangle.c.
References d_left, d_print_comp(), and options.
Referenced by d_print_comp_inner().
|
static |
Definition at line 5271 of file cp-demangle.c.
References d_print_info::component_stack, d_print_comp_inner(), d_print_error(), demangle_component::d_printing, d_component_stack::dc, MAX_RECURSION_COUNT, NULL, options, d_component_stack::parent, and d_print_info::recursion.
Referenced by cplus_demangle_print_callback(), d_print_array_type(), d_print_cast(), d_print_comp_inner(), d_print_conversion(), d_print_expr_op(), d_print_function_type(), d_print_mod(), d_print_mod_list(), and d_print_subexpr().
|
static |
Definition at line 4280 of file cp-demangle.c.
References a, d_print_info::buf, op::code, d_print_info::component_stack, cplus_demangle_builtin_types, d_print_info::current_template, d_append_buffer(), d_append_char(), d_append_num(), d_append_string(), d_args_length(), d_find_pack(), d_get_saved_scope(), d_index_template_argument(), d_last_char(), d_left, d_lookup_template_argument(), d_maybe_print_fold_expression(), d_pack_length(), d_print_array_type(), D_PRINT_BOOL, d_print_cast(), d_print_comp(), d_print_conversion(), D_PRINT_DEFAULT, d_print_error(), d_print_expr_op(), D_PRINT_FLOAT, d_print_flush(), d_print_function_type(), D_PRINT_INT, d_print_java_identifier(), D_PRINT_LONG, D_PRINT_LONG_LONG, d_print_mod(), d_print_saw_error(), d_print_subexpr(), D_PRINT_UNSIGNED, D_PRINT_UNSIGNED_LONG, D_PRINT_UNSIGNED_LONG_LONG, d_right, d_save_scope(), d_component_stack::dc, DEMANGLE_COMPONENT_ARGLIST, DEMANGLE_COMPONENT_ARRAY_TYPE, DEMANGLE_COMPONENT_BINARY, DEMANGLE_COMPONENT_BINARY_ARGS, DEMANGLE_COMPONENT_BUILTIN_TYPE, DEMANGLE_COMPONENT_CAST, DEMANGLE_COMPONENT_CHARACTER, DEMANGLE_COMPONENT_CLONE, DEMANGLE_COMPONENT_COMPLEX, DEMANGLE_COMPONENT_COMPOUND_NAME, DEMANGLE_COMPONENT_CONST, DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE, DEMANGLE_COMPONENT_CONVERSION, DEMANGLE_COMPONENT_COVARIANT_THUNK, DEMANGLE_COMPONENT_CTOR, DEMANGLE_COMPONENT_DECLTYPE, DEMANGLE_COMPONENT_DEFAULT_ARG, DEMANGLE_COMPONENT_DTOR, DEMANGLE_COMPONENT_EXTENDED_OPERATOR, DEMANGLE_COMPONENT_FIXED_TYPE, DEMANGLE_COMPONENT_FUNCTION_PARAM, DEMANGLE_COMPONENT_FUNCTION_TYPE, DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS, DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS, DEMANGLE_COMPONENT_GUARD, DEMANGLE_COMPONENT_HIDDEN_ALIAS, DEMANGLE_COMPONENT_IMAGINARY, DEMANGLE_COMPONENT_INITIALIZER_LIST, DEMANGLE_COMPONENT_JAVA_CLASS, DEMANGLE_COMPONENT_JAVA_RESOURCE, DEMANGLE_COMPONENT_LAMBDA, DEMANGLE_COMPONENT_LITERAL, DEMANGLE_COMPONENT_LITERAL_NEG, DEMANGLE_COMPONENT_LOCAL_NAME, DEMANGLE_COMPONENT_NAME, DEMANGLE_COMPONENT_NONTRANSACTION_CLONE, DEMANGLE_COMPONENT_NULLARY, DEMANGLE_COMPONENT_NUMBER, DEMANGLE_COMPONENT_OPERATOR, DEMANGLE_COMPONENT_PACK_EXPANSION, DEMANGLE_COMPONENT_POINTER, DEMANGLE_COMPONENT_PTRMEM_TYPE, DEMANGLE_COMPONENT_QUAL_NAME, DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_REFTEMP, DEMANGLE_COMPONENT_RESTRICT, DEMANGLE_COMPONENT_RVALUE_REFERENCE, DEMANGLE_COMPONENT_SUB_STD, DEMANGLE_COMPONENT_TAGGED_NAME, DEMANGLE_COMPONENT_TEMPLATE, DEMANGLE_COMPONENT_TEMPLATE_ARGLIST, DEMANGLE_COMPONENT_TEMPLATE_PARAM, DEMANGLE_COMPONENT_THUNK, DEMANGLE_COMPONENT_TLS_INIT, DEMANGLE_COMPONENT_TLS_WRAPPER, DEMANGLE_COMPONENT_TPARM_OBJ, DEMANGLE_COMPONENT_TRANSACTION_CLONE, DEMANGLE_COMPONENT_TRINARY, DEMANGLE_COMPONENT_TRINARY_ARG1, DEMANGLE_COMPONENT_TRINARY_ARG2, DEMANGLE_COMPONENT_TYPED_NAME, DEMANGLE_COMPONENT_TYPEINFO, DEMANGLE_COMPONENT_TYPEINFO_FN, DEMANGLE_COMPONENT_TYPEINFO_NAME, DEMANGLE_COMPONENT_UNARY, DEMANGLE_COMPONENT_UNNAMED_TYPE, DEMANGLE_COMPONENT_VECTOR_TYPE, DEMANGLE_COMPONENT_VENDOR_TYPE, DEMANGLE_COMPONENT_VENDOR_TYPE_QUAL, DEMANGLE_COMPONENT_VIRTUAL_THUNK, DEMANGLE_COMPONENT_VOLATILE, DEMANGLE_COMPONENT_VTABLE, DEMANGLE_COMPONENT_VTT, DMGL_JAVA, DMGL_RET_DROP, DMGL_RET_POSTFIX, d_print_info::flush_count, FNQUAL_COMPONENT_CASE, i, is_fnqual_component_type(), d_print_info::is_lambda_arg, IS_LOWER, len, d_print_info::len, list(), mod(), d_print_mod::mod, d_print_info::modifiers, d_print_template::next, d_print_mod::next, NULL, num, op_is_new_cast(), options, d_print_info::pack_index, d_component_stack::parent, d_print_mod::printed, demangle_component::s_binary, demangle_component::s_builtin, demangle_component::s_character, demangle_component::s_ctor, demangle_component::s_dtor, demangle_component::s_extended_operator, demangle_component::s_fixed, demangle_component::s_name, demangle_component::s_number, demangle_component::s_operator, demangle_component::s_string, demangle_component::s_unary_num, demangle_component::sub, d_print_template::template_decl, d_print_mod::templates, d_saved_scope::templates, d_print_info::templates, type, demangle_component::type, and demangle_component::u.
Referenced by d_print_comp().
|
static |
Definition at line 5640 of file cp-demangle.c.
References d_print_info::current_template, d_append_char(), d_last_char(), d_left, d_print_comp(), d_right, DEMANGLE_COMPONENT_TEMPLATE, d_print_template::next, NULL, options, d_print_template::template_decl, d_print_info::templates, and type.
Referenced by d_print_comp_inner().
|
inlinestatic |
Definition at line 3902 of file cp-demangle.c.
References d_print_info::demangle_failure.
Referenced by d_lookup_template_argument(), d_print_comp(), d_print_comp_inner(), and d_save_scope().
|
static |
Definition at line 5620 of file cp-demangle.c.
References d_append_buffer(), d_print_comp(), DEMANGLE_COMPONENT_OPERATOR, options, demangle_component::s_operator, demangle_component::type, and demangle_component::u.
Referenced by d_maybe_print_fold_expression(), and d_print_comp_inner().
|
inlinestatic |
Definition at line 3914 of file cp-demangle.c.
References d_print_info::buf, d_print_info::callback, d_print_info::flush_count, d_print_info::len, and d_print_info::opaque.
Referenced by cplus_demangle_print_callback(), d_append_char(), and d_print_comp_inner().
|
static |
Definition at line 5501 of file cp-demangle.c.
References d_append_char(), d_last_char(), d_print_comp(), d_print_mod_list(), d_right, DEMANGLE_COMPONENT_COMPLEX, DEMANGLE_COMPONENT_CONST, DEMANGLE_COMPONENT_IMAGINARY, DEMANGLE_COMPONENT_POINTER, DEMANGLE_COMPONENT_PTRMEM_TYPE, DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RESTRICT, DEMANGLE_COMPONENT_RVALUE_REFERENCE, DEMANGLE_COMPONENT_VENDOR_TYPE_QUAL, DEMANGLE_COMPONENT_VOLATILE, FNQUAL_COMPONENT_CASE, d_print_info::modifiers, NULL, options, and p.
Referenced by d_print_comp_inner(), and d_print_mod_list().
|
static |
Definition at line 3866 of file cp-demangle.c.
References d_print_info::callback, d_print_info::component_stack, d_print_info::copy_templates, d_print_info::current_template, d_count_templates_scopes(), d_print_info::demangle_failure, d_print_info::flush_count, d_print_info::is_lambda_arg, d_print_info::last_char, d_print_info::len, d_print_info::modifiers, d_print_info::next_copy_template, d_print_info::next_saved_scope, NULL, d_print_info::num_copy_templates, d_print_info::num_saved_scopes, d_print_info::opaque, d_print_info::pack_index, d_print_info::recursion, d_print_info::saved_scopes, and d_print_info::templates.
Referenced by cplus_demangle_print_callback().
|
static |
Definition at line 5299 of file cp-demangle.c.
References c, d_append_char(), test_evm::end, IS_DIGIT, len, and p.
Referenced by d_print_comp_inner().
|
static |
Definition at line 5413 of file cp-demangle.c.
References d_append_char(), d_append_string(), d_last_char(), d_left, d_print_comp(), d_right, DEMANGLE_COMPONENT_COMPLEX, DEMANGLE_COMPONENT_CONST, DEMANGLE_COMPONENT_CONST_THIS, DEMANGLE_COMPONENT_IMAGINARY, DEMANGLE_COMPONENT_NOEXCEPT, DEMANGLE_COMPONENT_POINTER, DEMANGLE_COMPONENT_PTRMEM_TYPE, DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_REFERENCE_THIS, DEMANGLE_COMPONENT_RESTRICT, DEMANGLE_COMPONENT_RESTRICT_THIS, DEMANGLE_COMPONENT_RVALUE_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS, DEMANGLE_COMPONENT_THROW_SPEC, DEMANGLE_COMPONENT_TRANSACTION_SAFE, DEMANGLE_COMPONENT_TYPED_NAME, DEMANGLE_COMPONENT_VECTOR_TYPE, DEMANGLE_COMPONENT_VENDOR_TYPE_QUAL, DEMANGLE_COMPONENT_VOLATILE, DEMANGLE_COMPONENT_VOLATILE_THIS, DMGL_JAVA, mod(), and options.
Referenced by d_print_comp_inner(), and d_print_mod_list().
|
static |
Definition at line 5341 of file cp-demangle.c.
References d_append_char(), d_append_num(), d_append_string(), d_left, d_print_array_type(), d_print_comp(), d_print_function_type(), d_print_mod(), d_print_saw_error(), d_right, DEMANGLE_COMPONENT_ARRAY_TYPE, DEMANGLE_COMPONENT_DEFAULT_ARG, DEMANGLE_COMPONENT_FUNCTION_TYPE, DEMANGLE_COMPONENT_LOCAL_NAME, DMGL_JAVA, is_fnqual_component_type(), d_print_mod::mod, d_print_info::modifiers, d_print_mod::next, NULL, options, d_print_mod::printed, demangle_component::s_unary_num, suffix, d_print_mod::templates, d_print_info::templates, demangle_component::type, and demangle_component::u.
Referenced by d_print_array_type(), and d_print_function_type().
|
inlinestatic |
Definition at line 3907 of file cp-demangle.c.
References d_print_info::demangle_failure.
Referenced by cplus_demangle_print_callback(), d_print_comp_inner(), and d_print_mod_list().
|
static |
Definition at line 4153 of file cp-demangle.c.
References d_append_char(), d_print_comp(), DEMANGLE_COMPONENT_FUNCTION_PARAM, DEMANGLE_COMPONENT_INITIALIZER_LIST, DEMANGLE_COMPONENT_NAME, DEMANGLE_COMPONENT_QUAL_NAME, options, and demangle_component::type.
Referenced by d_maybe_print_fold_expression(), and d_print_comp_inner().
|
static |
Definition at line 2645 of file cp-demangle.c.
References d_advance, d_make_comp(), d_peek_char, DEMANGLE_COMPONENT_REFERENCE_THIS, DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS, d_info::expansion, NULL, and demangle_component::sub.
Referenced by d_function_type(), and d_nested_name().
|
static |
Definition at line 4168 of file cp-demangle.c.
References d_saved_scope::container, d_print_info::copy_templates, d_print_error(), dst, link, d_print_info::next_copy_template, d_print_info::next_saved_scope, NULL, d_print_info::num_copy_templates, d_print_info::num_saved_scopes, d_print_info::saved_scopes, src, d_saved_scope::templates, and d_print_info::templates.
Referenced by d_print_comp_inner().
|
static |
Definition at line 1566 of file cp-demangle.c.
References d_identifier(), d_number(), d_info::last_name, len, and NULL.
Referenced by cplus_demangle_type(), d_abi_tags(), d_operator_name(), and d_unqualified_name().
|
static |
Definition at line 1894 of file cp-demangle.c.
References cplus_demangle_type(), d_call_offset(), d_check_char, d_encoding(), d_java_resource(), d_make_comp(), d_name(), d_next_char, d_number(), d_number_component(), d_template_arg(), DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE, DEMANGLE_COMPONENT_COVARIANT_THUNK, DEMANGLE_COMPONENT_GUARD, DEMANGLE_COMPONENT_HIDDEN_ALIAS, DEMANGLE_COMPONENT_JAVA_CLASS, DEMANGLE_COMPONENT_NONTRANSACTION_CLONE, DEMANGLE_COMPONENT_REFTEMP, DEMANGLE_COMPONENT_THUNK, DEMANGLE_COMPONENT_TLS_INIT, DEMANGLE_COMPONENT_TLS_WRAPPER, DEMANGLE_COMPONENT_TPARM_OBJ, DEMANGLE_COMPONENT_TRANSACTION_CLONE, DEMANGLE_COMPONENT_TYPEINFO, DEMANGLE_COMPONENT_TYPEINFO_FN, DEMANGLE_COMPONENT_TYPEINFO_NAME, DEMANGLE_COMPONENT_VIRTUAL_THUNK, DEMANGLE_COMPONENT_VTABLE, DEMANGLE_COMPONENT_VTT, d_info::expansion, and NULL.
Referenced by d_encoding().
|
static |
Definition at line 3557 of file cp-demangle.c.
References c, d_abi_tags(), d_add_substitution(), d_check_char, d_make_sub(), d_next_char, d_peek_char, DMGL_VERBOSE, d_info::expansion, id, IS_DIGIT, IS_UPPER, d_info::last_name, len, d_info::next_sub, NULL, d_info::options, p, prefix, s, standard_subs, d_info::subs, and verbose.
Referenced by cplus_demangle_type(), d_name(), and d_prefix().
|
static |
Definition at line 2964 of file cp-demangle.c.
References cplus_demangle_type(), d_advance, d_check_char, d_expr_primary(), d_expression(), d_peek_char, d_template_args(), and NULL.
Referenced by d_special_name(), and d_template_args_1().
|
static |
Definition at line 2906 of file cp-demangle.c.
References d_advance, d_peek_char, d_template_args_1(), and NULL.
Referenced by cplus_demangle_type(), d_expression_1(), d_name(), d_prefix(), and d_template_arg().
|
static |
Definition at line 2917 of file cp-demangle.c.
References a, al, d_advance, d_make_comp(), d_peek_char, d_right, d_template_arg(), DEMANGLE_COMPONENT_TEMPLATE_ARGLIST, d_info::last_name, and NULL.
Referenced by d_expression_1(), and d_template_args().
|
static |
Definition at line 2890 of file cp-demangle.c.
References d_check_char, d_compact_number(), d_make_template_param(), and NULL.
Referenced by cplus_demangle_type(), d_expression_1(), and d_prefix().
|
static |
Definition at line 3451 of file cp-demangle.c.
References d_add_substitution(), d_check_char, d_compact_number(), d_make_empty(), DEMANGLE_COMPONENT_UNNAMED_TYPE, NULL, num, demangle_component::s_number, demangle_component::type, and demangle_component::u.
Referenced by d_unqualified_name().
|
static |
Definition at line 1517 of file cp-demangle.c.
References d_abi_tags(), d_advance, d_ctor_dtor_name(), d_discriminator(), d_lambda(), d_make_comp(), d_operator_name(), d_peek_char, d_peek_next_char, d_source_name(), d_unnamed_type(), DEMANGLE_COMPONENT_OPERATOR, DEMANGLE_COMPONENT_UNARY, d_info::expansion, IS_DIGIT, IS_LOWER, NULL, demangle_component::s_operator, demangle_component::type, and demangle_component::u.
Referenced by d_expression_1(), d_name(), and d_prefix().
|
static |
Definition at line 2811 of file cp-demangle.c.
References cplus_demangle_type(), d_advance, d_check_char, d_expression(), d_make_comp(), d_number_component(), d_peek_char, DEMANGLE_COMPONENT_VECTOR_TYPE, and NULL.
Referenced by cplus_demangle_type().
|
static |
Definition at line 1202 of file cp-demangle.c.
References d_left, d_right, DEMANGLE_COMPONENT_LOCAL_NAME, DEMANGLE_COMPONENT_TEMPLATE, FNQUAL_COMPONENT_CASE, is_ctor_dtor_or_conversion(), NULL, and demangle_component::type.
Referenced by d_bare_function_type(), and d_encoding().
|
static |
Definition at line 1221 of file cp-demangle.c.
References d_right, DEMANGLE_COMPONENT_CONVERSION, DEMANGLE_COMPONENT_CTOR, DEMANGLE_COMPONENT_DTOR, DEMANGLE_COMPONENT_LOCAL_NAME, DEMANGLE_COMPONENT_QUAL_NAME, NULL, and demangle_component::type.
Referenced by has_return_type().
|
static |
Definition at line 5982 of file cp-demangle.c.
References __extension__, alloca(), cplus_demangle_init_info(), cplus_demangle_mangled_name(), d_left, d_right, DEMANGLE_COMPONENT_CONST_THIS, DEMANGLE_COMPONENT_CTOR, DEMANGLE_COMPONENT_DTOR, DEMANGLE_COMPONENT_LOCAL_NAME, DEMANGLE_COMPONENT_QUAL_NAME, DEMANGLE_COMPONENT_REFERENCE_THIS, DEMANGLE_COMPONENT_RESTRICT_THIS, DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS, DEMANGLE_COMPONENT_TEMPLATE, DEMANGLE_COMPONENT_TYPED_NAME, DEMANGLE_COMPONENT_VOLATILE_THIS, DMGL_GNU_V3, NULL, demangle_component::s_ctor, demangle_component::s_dtor, demangle_component::type, and demangle_component::u.
|
static |
Definition at line 574 of file cp-demangle.c.
References FNQUAL_COMPONENT_CASE, and type.
Referenced by d_encoding(), d_print_comp_inner(), and d_print_mod_list().
enum gnu_v3_ctor_kinds is_gnu_v3_mangled_ctor | ( | const char * | name | ) |
Definition at line 5982 of file cp-demangle.c.
enum gnu_v3_dtor_kinds is_gnu_v3_mangled_dtor | ( | const char * | name | ) |
Definition at line 5982 of file cp-demangle.c.
char* java_demangle_v3 | ( | const char * | mangled | ) |
Definition at line 5960 of file cp-demangle.c.
References d_growable_string::alc, d_demangle(), DMGL_JAVA, DMGL_PARAMS, and DMGL_RET_POSTFIX.
int java_demangle_v3_callback | ( | const char * | mangled, |
demangle_callbackref | callback, | ||
void * | opaque | ||
) |
Definition at line 5966 of file cp-demangle.c.
References d_demangle_callback(), DMGL_JAVA, DMGL_PARAMS, and DMGL_RET_POSTFIX.
Definition at line 2140 of file cp-demangle.c.
References d_peek_char, and d_peek_next_char.
Referenced by cplus_demangle_type(), and d_cv_qualifiers().
|
static |
Definition at line 3024 of file cp-demangle.c.
References op::code.
Referenced by d_expression_1(), and d_print_comp_inner().
CP_STATIC_IF_GLIBCPP_V3 const struct demangle_builtin_type_info cplus_demangle_builtin_types[D_BUILTIN_TYPE_COUNT] |
Definition at line 2172 of file cp-demangle.c.
Referenced by cplus_demangle_type(), and d_print_comp_inner().
CP_STATIC_IF_GLIBCPP_V3 const struct demangle_operator_info cplus_demangle_operators[] |
Definition at line 1665 of file cp-demangle.c.
Referenced by d_operator_name().
|
static |
Definition at line 3503 of file cp-demangle.c.
Referenced by d_substitution().