FreeBSD/contrib/gcc/cp/call.c
/* Returns nonzero iff DERIVED is derived from BASE.  The inputs may
   be any _TYPE nodes.  */
Returns nonzero iff DERIVED is derived from BASE.  The inputs may
be any _TYPE nodes.
Returns nonzero iff DERIVED is derived from BASE . The inputs may be any _TYPE nodes .
bool
is_properly_derived_from (tree derived, tree base)
{
  if (!IS_AGGR_TYPE_CODE (TREE_CODE (derived))
      || !IS_AGGR_TYPE_CODE (TREE_CODE (base)))
    return false;
  return (!same_type_ignoring_top_level_qualifiers_p (derived, base)
	  && DERIVED_FROM_P (base, derived));
}
bool is_properly_derived_from ( tree derived , tree base ) { if ( ! IS_AGGR_TYPE_CODE ( TREE_CODE ( derived ) ) || ! IS_AGGR_TYPE_CODE ( TREE_CODE ( base ) ) ) return false ; return ( ! same_type_ignoring_top_level_qualifiers_p ( derived , base ) && DERIVED_FROM_P ( base , derived ) ) ; }
Returns nonzero iff DERIVED is derived from BASE.
Returns nonzero iff DERIVED is derived from BASE .
/* We only allow proper derivation here.  The DERIVED_FROM_P macro
     considers every class derived from itself.  */