hanchenye-llvm-project/clang/test
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
..
Analysis - Revert r59229 and r59232: AllocRegion should be immutable. 2008-11-13 15:42:31 +00:00
CodeGen Fix testcase for 64-bit systems. 2008-11-12 00:18:32 +00:00
CodeGenObjC NeXT: Emit protocol objects lazily. 2008-10-29 22:36:39 +00:00
Coverage disable these two tests, they crash and take a long time to run crashreporter etc. 2008-11-13 18:45:47 +00:00
Driver Add -rewrite-macros test case. 2008-10-05 01:39:04 +00:00
Lexer Implement support for C++ nested-name-specifiers ('foo::bar::x') in the Parser side. 2008-11-08 16:45:02 +00:00
Misc fix bogus run line. 2008-08-18 19:54:48 +00:00
Parser Fix a couple of suboptimalities in error recovery. 2008-11-13 18:52:53 +00:00
Preprocessor Skip random pathname characters better. I had a 5 in mine. 2008-10-27 22:49:55 +00:00
Rewriter Tighten up blocks rewriter to handle casts and some other interesting cases. 2008-10-15 18:38:58 +00:00
Sema Fix for crash issues with comma operators with a void first operand, and 2008-11-13 06:09:17 +00:00
SemaCXX Implement support for operator overloading using candidate operator 2008-11-12 17:17:38 +00:00
SemaObjC Fix <rdar://problem/6315646> clang on xcode: error: invalid operands to binary expression ('id<NSTableViewDelegate>' and 'XCExtendedArrayController *'). 2008-10-27 10:33:19 +00:00
SemaObjCXX Make it an error if an Objective-C declaration is not in the global scope. 2008-11-04 16:57:32 +00:00
Serialization Added "complex.c" (a copy of test/Codegen/complex.) to the serialization 2007-11-29 19:05:51 +00:00
Makefile Another attempt to make test/Makefile return correct error code. 2008-09-17 18:08:07 +00:00
TestRunner.sh Test commit. 2008-10-15 00:26:06 +00:00