FreeBSD/contrib/gcc/cp/name-lookup.c
/* Return the type associated with id.  */
Return the type associated with id.
Return the type associated with id .
tree
identifier_type_value (tree id)
{
  timevar_push (TV_NAME_LOOKUP);
  if (REAL_IDENTIFIER_TYPE_VALUE (id) == NULL_TREE)
    POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, NULL_TREE);
  if (REAL_IDENTIFIER_TYPE_VALUE (id) != global_type_node)
    POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, REAL_IDENTIFIER_TYPE_VALUE (id));
  id = lookup_name_real (id, 2, 1, true, 0, LOOKUP_COMPLAIN);
  if (id)
    POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, TREE_TYPE (id));
  POP_TIMEVAR_AND_RETURN (TV_NAME_LOOKUP, NULL_TREE);
}
tree identifier_type_value ( tree id ) { timevar_push ( TV_NAME_LOOKUP ) ; if ( REAL_IDENTIFIER_TYPE_VALUE ( id ) == NULL_TREE ) POP_TIMEVAR_AND_RETURN ( TV_NAME_LOOKUP , NULL_TREE ) ; if ( REAL_IDENTIFIER_TYPE_VALUE ( id ) != global_type_node ) POP_TIMEVAR_AND_RETURN ( TV_NAME_LOOKUP , REAL_IDENTIFIER_TYPE_VALUE ( id ) ) ; id = lookup_name_real ( id , 2 , 1 , true , 0 , LOOKUP_COMPLAIN ) ; if ( id ) POP_TIMEVAR_AND_RETURN ( TV_NAME_LOOKUP , TREE_TYPE ( id ) ) ; POP_TIMEVAR_AND_RETURN ( TV_NAME_LOOKUP , NULL_TREE ) ; }
Return the type associated with id.
Return the type associated with id .
/* There is no type with that name, anywhere.  */ /* This is not the type marker, but the real thing.  */ /* Have to search for it. It must be on the global level, now.
     Ask lookup_name not to return non-types.  */ /*block_p=*/