FreeBSD/contrib/gcc/cp/call.c
/* Print information about one overload candidate CANDIDATE.  MSGSTR
   is the text to print before the candidate itself.

   NOTE: Unlike most diagnostic functions in GCC, MSGSTR is expected
   to have been run through gettext by the caller.  This wart makes
   life simpler in print_z_candidates and for the translators.  */
Print information about one overload candidate CANDIDATE.  MSGSTR
is the text to print before the candidate itself.

Unlike most diagnostic functions in GCC, MSGSTR is expected
to have been run through gettext by the caller.  This wart makes
life simpler in print_z_candidates and for the translators.
Print information about one overload candidate CANDIDATE . MSGSTR is the text to print before the candidate itself . Unlike most diagnostic functions in GCC MSGSTR is expected to have been run through gettext by the caller . This wart makes life simpler in print_z_candidates and for the translators .
static void
print_z_candidate (const char *msgstr, struct z_candidate *candidate)
{
  if (TREE_CODE (candidate->fn) == IDENTIFIER_NODE)
    {
      if (candidate->num_convs == 3)
	inform ("%s %D(%T, %T, %T) <built-in>", msgstr, candidate->fn,
		candidate->convs[0]->type,
		candidate->convs[1]->type,
		candidate->convs[2]->type);
      else if (candidate->num_convs == 2)
	inform ("%s %D(%T, %T) <built-in>", msgstr, candidate->fn,
		candidate->convs[0]->type,
		candidate->convs[1]->type);
      else
	inform ("%s %D(%T) <built-in>", msgstr, candidate->fn,
		candidate->convs[0]->type);
    }
  else if (TYPE_P (candidate->fn))
    inform ("%s %T <conversion>", msgstr, candidate->fn);
  else if (candidate->viable == -1)
    inform ("%s %+#D <near match>", msgstr, candidate->fn);
  else
    inform ("%s %+#D", msgstr, candidate->fn);
}
static void print_z_candidate ( const char * msgstr , struct z_candidate * candidate ) { if ( TREE_CODE ( candidate -> fn ) == IDENTIFIER_NODE ) { if ( candidate -> num_convs == 3 ) inform ( " " , msgstr , candidate -> fn , candidate -> convs [ 0 ] -> type , candidate -> convs [ 1 ] -> type , candidate -> convs [ 2 ] -> type ) ; else if ( candidate -> num_convs == 2 ) inform ( " " , msgstr , candidate -> fn , candidate -> convs [ 0 ] -> type , candidate -> convs [ 1 ] -> type ) ; else inform ( " " , msgstr , candidate -> fn , candidate -> convs [ 0 ] -> type ) ; } else if ( TYPE_P ( candidate -> fn ) ) inform ( " " , msgstr , candidate -> fn ) ; else if ( candidate -> viable == -1 ) inform ( " " , msgstr , candidate -> fn ) ; else inform ( " " , msgstr , candidate -> fn ) ; }
Print information about one overload candidate CANDIDATE.
Print information about one overload candidate CANDIDATE .