FreeBSD/contrib/gcc/cp/error.c
/* Generate the three forms of printable names for cxx_printable_name.  */
Generate the three forms of printable names for cxx_printable_name.
Generate the three forms of printable names for cxx_printable_name .
const char *
lang_decl_name (tree decl, int v)
{
  if (v >= 2)
    return decl_as_string (decl, TFF_DECL_SPECIFIERS);
  reinit_cxx_pp ();
  if (v == 1 && DECL_CLASS_SCOPE_P (decl))
    {
      dump_type (CP_DECL_CONTEXT (decl), TFF_PLAIN_IDENTIFIER);
      pp_cxx_colon_colon (cxx_pp);
    }
  if (TREE_CODE (decl) == FUNCTION_DECL)
    dump_function_name (decl, TFF_PLAIN_IDENTIFIER);
  else
    dump_decl (DECL_NAME (decl), TFF_PLAIN_IDENTIFIER);
  return pp_formatted_text (cxx_pp);
}
const char * lang_decl_name ( tree decl , int v ) { if ( v >= 2 ) return decl_as_string ( decl , TFF_DECL_SPECIFIERS ) ; reinit_cxx_pp ( ) ; if ( v == 1 && DECL_CLASS_SCOPE_P ( decl ) ) { dump_type ( CP_DECL_CONTEXT ( decl ) , TFF_PLAIN_IDENTIFIER ) ; pp_cxx_colon_colon ( cxx_pp ) ; } if ( TREE_CODE ( decl ) == FUNCTION_DECL ) dump_function_name ( decl , TFF_PLAIN_IDENTIFIER ) ; else dump_decl ( DECL_NAME ( decl ) , TFF_PLAIN_IDENTIFIER ) ; return pp_formatted_text ( cxx_pp ) ; }
Generate the three forms of printable names for cxx_printable_name.
Generate the three forms of printable names for cxx_printable_name .