[cfe-dev] Fixup throw parsing

Mike Stump mrs at apple.com
Mon Feb 25 20:10:17 PST 2008

This fixes one last case of throw parsing and cleans up throw; parsing  
to be better.  I do the first by rotating in the throw parsing into  
ParseCastExpression as the way the code is written currently, it  
really wants to handle all the leaf things in that routine.  I  
preserve that and extend that.  I don't quite know if I like that  
design, but, I'll offer this version of the code.  I could equally  
just add the:

  if (Tok.is(tok::kw_throw))
     LHS = ParseThrowExpression();

style code to the few other places that need it.  What do people think  
is better?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: eh-2.patch
Type: application/octet-stream
Size: 6861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080225/ad586146/attachment.obj>
-------------- next part --------------

More information about the cfe-dev mailing list