public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-cpparser-branch: Merge remote branch 'archer/archer-cpparser-branch' into archer-sergio-cpparser-branch
@ 2010-09-02 20:14 sergiodj
  0 siblings, 0 replies; only message in thread
From: sergiodj @ 2010-09-02 20:14 UTC (permalink / raw)
  To: archer-commits

The branch, archer-cpparser-branch has been updated
       via  6ad7865b4d39ee850db54f9263696393977899e3 (commit)
       via  f5a02ba97880ea247e73e0a5e79e1f92a036405b (commit)
      from  27d719acda645c668d3fcb555eef7a96a183e3cc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 6ad7865b4d39ee850db54f9263696393977899e3
Merge: f5a02ba 27d719a
Author: Sergio Durigan Junior <sergiodj@redhat.com>
Date:   Thu Sep 2 17:13:20 2010 -0300

    Merge remote branch 'archer/archer-cpparser-branch' into archer-sergio-cpparser-branch

commit f5a02ba97880ea247e73e0a5e79e1f92a036405b
Author: Sergio Durigan Junior <sergiodj@redhat.com>
Date:   Thu Sep 2 17:11:57 2010 -0300

    	* cparser.c (cp_parse_primary_expression): Added case for
    	TTYPE_OPEN_PAREN.

-----------------------------------------------------------------------

Summary of changes:
 gdb/cparser.c |   24 +++++++++++++++++++++++-
 1 files changed, 23 insertions(+), 1 deletions(-)

First 500 lines of diff:
diff --git a/gdb/cparser.c b/gdb/cparser.c
index d272b69..3b7d13c 100644
--- a/gdb/cparser.c
+++ b/gdb/cparser.c
@@ -1026,6 +1026,27 @@ cp_parse_primary_expression (cp_parser *parser)
     case TTYPE_NAME:
       return cp_parse_id_expression (parser, /*optional_p=*/ 0);
 
+    case TTYPE_OPEN_PAREN:
+      {
+	cp_expression *expr;
+	struct cleanup *c;
+
+	/* Consume the `('.  */
+	cp_lexer_consume_token (parser->lexer);
+
+	/* Parse the parenthesized expression.  */
+	expr = cp_parse_expression (parser);
+	c = make_cleanup (free_expression_chain, (void *) expr);
+
+	/* Consume the `)'.  */
+	cp_require_token (parser, TTYPE_CLOSE_PAREN);
+
+	discard_cleanups (c);
+
+	return expr;
+      }
+      break;
+
     default:
       error (_("expected primary expression"));
     }
@@ -1200,12 +1221,13 @@ static cp_expression *
 cp_cast_expression (cp_parser *parser)
 {
   /* determine if parser is looking at a cast of some sort */
+#if 0
   if (cp_lexer_next_token_is (parser->lexer, TTYPE_OPEN_PAREN))
     {
       /* we could be looking at a cast... */
       return NULL;
     }
-
+#endif
   return cp_parse_unary_expression (parser);
 }
 


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-02 20:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02 20:14 [SCM] archer-cpparser-branch: Merge remote branch 'archer/archer-cpparser-branch' into archer-sergio-cpparser-branch sergiodj

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).