aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/expr.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2018-01-12 18:35:15 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2018-01-12 18:35:15 +0000
commitb84619155e8f8537140aae55ab53125cafa8bc6c (patch)
tree7d8e60ff469d89dbad8f4bce456a95f28b260af9 /gcc/cp/expr.c
parent8f72ce2cec8b8961f381995eb6e2c5de1cd0f3d3 (diff)
downloadgcc-b84619155e8f8537140aae55ab53125cafa8bc6c.zip
gcc-b84619155e8f8537140aae55ab53125cafa8bc6c.tar.gz
gcc-b84619155e8f8537140aae55ab53125cafa8bc6c.tar.bz2
[C++ PATCH] some reformatting
https://gcc.gnu.org/ml/gcc-patches/2018-01/msg01107.html * cp-tree.h (mark_rvalue_use): Add parm name. * expr.c (mark_lvalue_use, mark_lvalue_use_nonread): Move next to mark_rvalue_use. * call.c (convert_like_real): Fix formatting. From-SVN: r256593
Diffstat (limited to 'gcc/cp/expr.c')
-rw-r--r--gcc/cp/expr.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c
index 7d79215..da09ab8 100644
--- a/gcc/cp/expr.c
+++ b/gcc/cp/expr.c
@@ -199,6 +199,22 @@ mark_rvalue_use (tree e,
return mark_use (e, true, true, loc, reject_builtin);
}
+/* Called whenever an expression is used in an lvalue context. */
+
+tree
+mark_lvalue_use (tree expr)
+{
+ return mark_use (expr, false, true, input_location, false);
+}
+
+/* As above, but don't consider this use a read. */
+
+tree
+mark_lvalue_use_nonread (tree expr)
+{
+ return mark_use (expr, false, false, input_location, false);
+}
+
/* Called when expr appears as a discarded-value expression. */
tree
@@ -245,22 +261,6 @@ mark_discarded_use (tree expr)
return mark_use (expr, true, true, input_location, false);
}
-/* Called whenever an expression is used in an lvalue context. */
-
-tree
-mark_lvalue_use (tree expr)
-{
- return mark_use (expr, false, true, input_location, false);
-}
-
-/* As above, but don't consider this use a read. */
-
-tree
-mark_lvalue_use_nonread (tree expr)
-{
- return mark_use (expr, false, false, input_location, false);
-}
-
/* Called whenever an expression is used in a type use context. */
tree