FreeBSD/contrib/gcc/cp/error.c
/* Return the location of a tree passed to %+ formats.  */
Return the location of a tree passed to %+ formats.
Return the location of a tree passed to % + formats .
static location_t
location_of (tree t)
{
  if (TREE_CODE (t) == PARM_DECL && DECL_CONTEXT (t))
    t = DECL_CONTEXT (t);
  else if (TYPE_P (t))
    t = TYPE_MAIN_DECL (t);
  else if (TREE_CODE (t) == OVERLOAD)
    t = OVL_FUNCTION (t);
  return DECL_SOURCE_LOCATION (t);
}
static location_t location_of ( tree t ) { if ( TREE_CODE ( t ) == PARM_DECL && DECL_CONTEXT ( t ) ) t = DECL_CONTEXT ( t ) ; else if ( TYPE_P ( t ) ) t = TYPE_MAIN_DECL ( t ) ; else if ( TREE_CODE ( t ) == OVERLOAD ) t = OVL_FUNCTION ( t ) ; return DECL_SOURCE_LOCATION ( t ) ; }
Return the location of a tree passed to %+ formats.
Return the location of a tree passed to % + formats .