Lines Matching refs:scope
775 friend_accessible_p (tree scope, tree decl, tree binfo) in friend_accessible_p() argument
780 if (!scope) in friend_accessible_p()
783 if (TREE_CODE (scope) == FUNCTION_DECL in friend_accessible_p()
784 || DECL_FUNCTION_TEMPLATE_P (scope)) in friend_accessible_p()
785 befriending_classes = DECL_BEFRIENDING_CLASSES (scope); in friend_accessible_p()
786 else if (TYPE_P (scope)) in friend_accessible_p()
787 befriending_classes = CLASSTYPE_BEFRIENDING_CLASSES (scope); in friend_accessible_p()
797 if (TYPE_P (scope)) in friend_accessible_p()
798 for (t = TYPE_CONTEXT (scope); t && TYPE_P (t); t = TYPE_CONTEXT (t)) in friend_accessible_p()
802 if (TREE_CODE (scope) == FUNCTION_DECL in friend_accessible_p()
803 || DECL_FUNCTION_TEMPLATE_P (scope)) in friend_accessible_p()
807 if (DECL_CLASS_SCOPE_P (scope) in friend_accessible_p()
808 && friend_accessible_p (DECL_CONTEXT (scope), decl, binfo)) in friend_accessible_p()
812 if (DECL_TEMPLATE_INFO (scope)) in friend_accessible_p()
818 ret = friend_accessible_p (DECL_TI_TEMPLATE (scope), decl, binfo); in friend_accessible_p()
834 tree scope = current_scope (); in dfs_accessible_post() local
835 if (scope && TREE_CODE (scope) != NAMESPACE_DECL in dfs_accessible_post()
836 && is_friend (BINFO_TYPE (binfo), scope)) in dfs_accessible_post()
855 tree scope; in accessible_p() local
868 scope = current_scope (); in accessible_p()
869 if (scope && DECL_THUNK_P (scope)) in accessible_p()
921 protected_ok = friend_accessible_p (scope, decl, binfo); in accessible_p()
1740 tree scope; in dfs_walk_once_accessible_r() local
1743 scope = current_scope (); in dfs_walk_once_accessible_r()
1744 if (!scope in dfs_walk_once_accessible_r()
1745 || TREE_CODE (scope) == NAMESPACE_DECL in dfs_walk_once_accessible_r()
1746 || !is_friend (BINFO_TYPE (binfo), scope)) in dfs_walk_once_accessible_r()