aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-06-29 14:13:11 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-06-29 14:13:11 +0000
commite98889226cc487b39334ae069422c0ac4615f9ec (patch)
treea5f3433070fd82111d79d7aaa831f37cca63f1c4 /gcc/cp/method.c
parent0630a4ecda602a90e978c3285cf1028e92ff5e8b (diff)
downloadgcc-e98889226cc487b39334ae069422c0ac4615f9ec.zip
gcc-e98889226cc487b39334ae069422c0ac4615f9ec.tar.gz
gcc-e98889226cc487b39334ae069422c0ac4615f9ec.tar.bz2
Whitespace cleanups.
* call.c (name_as_c_string): Move CONST_CAST to return. (build_new_method_call_1): Remove unneeded bracing. * class.c (include_empty_classes): Unbreak line. * constraint.cc (tsubst_check_constraint): Add space. * cp-tree.h (lang_decl_ns): Add comment. (PTRMEM_CST_MEMBER): Break line. * decl.c (grokfndecl): Add blank lines. Unbreak some others. (grokdeclarator): Remove lines, move declaration to first use. * decl2.c (decl_needed_p): Fix indentation. (c_parse_final_cleanups): Remove blank line. * method.c (implicitly_declare_fn): Move declaration to first use. * search.c (current_scope): Add blank lines. From-SVN: r249786
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 4cb52f2..ba65284 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -1982,7 +1982,6 @@ implicitly_declare_fn (special_function_kind kind, tree type,
case sfk_move_assignment:
case sfk_inheriting_constructor:
{
- bool move_p;
if (kind == sfk_copy_assignment
|| kind == sfk_move_assignment)
{
@@ -2000,8 +1999,8 @@ implicitly_declare_fn (special_function_kind kind, tree type,
rhs_parm_type = cp_build_qualified_type (type, TYPE_QUAL_CONST);
else
rhs_parm_type = type;
- move_p = (kind == sfk_move_assignment
- || kind == sfk_move_constructor);
+ bool move_p = (kind == sfk_move_assignment
+ || kind == sfk_move_constructor);
rhs_parm_type = cp_build_reference_type (rhs_parm_type, move_p);
parameter_types = tree_cons (NULL_TREE, rhs_parm_type, parameter_types);