Home | History | Annotate | Download | only in gdb

Lines Matching defs:ret_comp

77 		    struct demangle_component *ret_comp,
129 /* Inspect the given RET_COMP for its type. If it is a typedef,
136 struct demangle_component *ret_comp,
143 /* Copy the symbol's name from RET_COMP and look it up
145 name = (char *) alloca (ret_comp->u.s_name.len + 1);
146 memcpy (name, ret_comp->u.s_name.s, ret_comp->u.s_name.len);
147 name[ret_comp->u.s_name.len] = '\0';
170 ret_comp->u.s_name.s = new_name;
171 ret_comp->u.s_name.len = strlen (new_name);
261 cp_merge_demangle_parse_infos (info, ret_comp, std::move (i));
267 replace_typedefs (info, ret_comp, finder, data);
276 current node (RET_COMP). */
286 ret_comp->u.s_name.s = name;
287 ret_comp->u.s_name.len = len;
334 (DEMANGLE_COMPONENT_QUAL_NAME) represented in RET_COMP for the name parse
339 struct demangle_component *ret_comp,
344 struct demangle_component *comp = ret_comp;
359 d_left (comp), d_left (ret_comp),
364 d_right (ret_comp) = d_right (comp);
365 comp = ret_comp;
404 d_left (ret_comp)->type = DEMANGLE_COMPONENT_NAME;
405 d_left (ret_comp)->u.s_name.s = s;
406 d_left (ret_comp)->u.s_name.len = slen;
407 d_right (ret_comp) = d_right (comp);
408 comp = ret_comp;
441 if (!replace_typedefs_template (info, buf, comp, ret_comp, finder, data))
443 inspect_type (info, ret_comp, finder, data);
452 ret_comp->type = DEMANGLE_COMPONENT_NAME;
453 ret_comp->u.s_name.s = obstack_strdup (&info->obstack, buf.string ());
454 ret_comp->u.s_name.len = buf.size ();
455 inspect_type (info, ret_comp, finder, data);
469 check_cv_qualifiers (struct demangle_component *ret_comp)
471 while (d_left (ret_comp) != NULL
472 && (d_left (ret_comp)->type == DEMANGLE_COMPONENT_CONST
473 || d_left (ret_comp)->type == DEMANGLE_COMPONENT_VOLATILE))
475 d_left (ret_comp) = d_left (d_left (ret_comp));
479 /* Walk the parse tree given by RET_COMP, replacing any typedefs with
484 struct demangle_component *ret_comp,
488 if (ret_comp)
491 && (ret_comp->type == DEMANGLE_COMPONENT_NAME
492 || ret_comp->type == DEMANGLE_COMPONENT_QUAL_NAME
493 || ret_comp->type == DEMANGLE_COMPONENT_TEMPLATE
494 || ret_comp->type == DEMANGLE_COMPONENT_BUILTIN_TYPE))
497 = cp_comp_to_string (ret_comp, 10);
520 ret_comp->type = DEMANGLE_COMPONENT_NAME;
521 ret_comp->u.s_name.s = new_name;
522 ret_comp->u.s_name.len = strlen (new_name);
529 switch (ret_comp->type)
532 check_cv_qualifiers (ret_comp);
539 replace_typedefs (info, d_left (ret_comp), finder, data);
540 replace_typedefs (info, d_right (ret_comp), finder, data);
544 inspect_type (info, ret_comp
548 replace_typedefs_qualified_name (info, ret_comp, finder, data);
555 replace_typedefs (info, d_right (ret_comp), finder, data);
567 replace_typedefs (info, d_left (ret_comp), finder, data);
711 struct demangle_component *ret_comp, *prev_comp, *cur_comp;
721 ret_comp = info->tree;
726 switch (ret_comp->type)
735 ret_comp = d_left (ret_comp);
743 if (ret_comp->type == DEMANGLE_COMPONENT_TYPED_NAME)
744 ret_comp = d_left (ret_comp);
748 if (ret_comp->type == DEMANGLE_COMPONENT_TEMPLATE)
749 ret_comp = d_left (ret_comp);
756 cur_comp = ret_comp;
785 ret = cp_comp_to_string (ret_comp, 10);
800 struct demangle_component *ret_comp = comp, *last_template;
806 switch (ret_comp->type)
810 ret_comp = d_right (ret_comp);
813 ret_comp = d_left (ret_comp);
817 last_template = ret_comp;
818 ret_comp = d_left (ret_comp);
827 ret_comp = d_left (ret_comp);
843 d_left (last_template) = ret_comp;
847 return ret_comp;
858 struct demangle_component *ret_comp;
866 ret_comp = unqualified_name_from_comp (info->tree);
868 if (ret_comp != NULL)
871 ret = cp_comp_to_string (ret_comp, 10);
886 struct demangle_component *ret_comp;
893 ret_comp = unqualified_name_from_comp (info->tree);
895 if (ret_comp != NULL)
896 ret = cp_comp_to_string (ret_comp, 10);
911 struct demangle_component *ret_comp;
923 ret_comp = info->tree;
925 switch (ret_comp->type)
934 ret_comp = d_left (ret_comp);
942 if (ret_comp->type == DEMANGLE_COMPONENT_TYPED_NAME)
943 ret = cp_comp_to_string (d_left (ret_comp), 10);
945 && (ret_comp->type == DEMANGLE_COMPONENT_NAME
946 || ret_comp->type == DEMANGLE_COMPONENT_QUAL_NAME
947 || ret_comp->type == DEMANGLE_COMPONENT_TEMPLATE))
948 ret = cp_comp_to_string (ret_comp, 10);