aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/name-lookup.h
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-05-11 17:38:55 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-05-11 17:38:55 +0000
commit4f15a5da6f41bec5eced2956cb3f2e098ec8d77b (patch)
treeefc7463bec84070e699dc61f8cffd14e12e1d647 /gcc/cp/name-lookup.h
parent59fbddcfff234b2f074288b92da7523c11d23aa0 (diff)
downloadgcc-4f15a5da6f41bec5eced2956cb3f2e098ec8d77b.zip
gcc-4f15a5da6f41bec5eced2956cb3f2e098ec8d77b.tar.gz
gcc-4f15a5da6f41bec5eced2956cb3f2e098ec8d77b.tar.bz2
name-lookup.h (pushdecl): Add default friend parm.
* name-lookup.h (pushdecl): Add default friend parm. (pushdecl_maybe_friend): Delete. (pushdecl_top_level): Add default friend parm. (pushdecl_top_level_maybe_friend): Delete. * name-lookup.c (pushdecl_maybe_friend): Delete. (pushdecl): Add is_friend parm. (pushdecl_top_level): Add is friend_parm. (pushdecl_top_level_maybe_friend, pushdecl_top_level_1): Delete. (pushdecl_top_level_and_finish): Do pushing and finishing directly. * friend.c (do_friend): Adjust. * pt.c (tsubst_friend_class): Adjust. From-SVN: r247918
Diffstat (limited to 'gcc/cp/name-lookup.h')
-rw-r--r--gcc/cp/name-lookup.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/cp/name-lookup.h b/gcc/cp/name-lookup.h
index 4b46f3e..9755884 100644
--- a/gcc/cp/name-lookup.h
+++ b/gcc/cp/name-lookup.h
@@ -335,11 +335,9 @@ extern tree innermost_non_namespace_value (tree);
extern cxx_binding *outer_binding (tree, cxx_binding *, bool);
extern void cp_emit_debug_info_for_using (tree, tree);
-extern tree pushdecl_maybe_friend (tree, bool is_friend);
-extern tree pushdecl (tree);
extern tree pushdecl_outermost_localscope (tree);
-extern tree pushdecl_top_level_maybe_friend (tree, bool is_friend);
-extern tree pushdecl_top_level (tree);
+extern tree pushdecl (tree, bool is_friend = false);
+extern tree pushdecl_top_level (tree, bool is_friend = false);
extern tree pushdecl_top_level_and_finish (tree, tree);
extern tree pushtag (tree, tree, tag_scope);
extern bool push_namespace (tree);