Files
clang-p2996/clang/test/Parser
Chris Lattner 0046de17e5 Fix a couple of suboptimalities in error recovery.
1. In the top level of ParseStatementOrDeclaration, don't eat a } if we
   just parsed a statement if it list there.  Also, don't even bother
   emitting an error about a missing semicolon if the statement had a 
   bug (an rbrace is fine).
2. In do/while parsing, don't require a 'while' to be present if the do
   body didn't parse.

This allows us to generate a clean diagnostic for this code:

t.c:1:22: error: expected expression
void foo (void) { do . while (0); }
                     ^

Thanks to Neil for pointing this out.

llvm-svn: 59256
2008-11-13 18:52:53 +00:00
..
2007-01-25 07:42:11 +00:00
2008-05-27 23:32:43 +00:00
2007-01-23 01:32:33 +00:00
2007-02-13 01:52:09 +00:00
2008-09-09 20:56:12 +00:00
2008-05-23 11:19:39 +00:00
2008-08-20 22:07:34 +00:00
2007-10-18 00:38:23 +00:00
2007-01-23 20:16:22 +00:00
2006-08-15 05:11:49 +00:00