hanchenye-llvm-project/clang/Parse
Chris Lattner de5a472e02 Fix a problem where a semantic error confused error recovery to the point
where the parser emitted bogus diagnostics.  Before, when compiling:

  struct A { int X; } someA;

  int func(int, struct A);

  int test1(void *P, int C) {
    return func(((C*40) + *P) / 42+P, someA);
  }

we emitted:

bug3.c:7:25: error: invalid operands to binary expression ('int' and 'void')
    return func(((C*40) + *P) / 42+P, someA);
                 ~~~~~~ ^ ~~
bug3.c:7:31: error: expected ')'
    return func(((C*40) + *P) / 42+P, someA);
                              ^
bug3.c:7:16: error: to match this '('
    return func(((C*40) + *P) / 42+P, someA);
               ^

now we only emit the first.

llvm-svn: 39474
2007-05-21 05:27:47 +00:00
..
DeclSpec.cpp Add support for inserting up to 10 strings in a diagnostic, with %0, %1, %2, 2007-05-16 17:49:37 +00:00
Makefile Fix these to allow clang to be in any dir. 2006-10-26 04:56:55 +00:00
MinimalAction.cpp add accessors to DeclSpec, start moving clients over to use them. 2006-11-28 04:28:12 +00:00
ParseDecl.cpp Fix an error recovery bug, we were would issue: 2007-04-27 19:13:15 +00:00
ParseExpr.cpp Fix a problem where a semantic error confused error recovery to the point 2007-05-21 05:27:47 +00:00
ParseExprCXX.cpp C++: Added support for bool types. 2007-02-13 01:51:42 +00:00
ParseInit.cpp rename a bunch of files for better consistency 2006-11-05 07:46:30 +00:00
ParseObjc.cpp rename ParsedClassDeclaration -> ParsedObjcClassDeclaration. 2006-11-19 02:35:21 +00:00
ParseStmt.cpp Implement a FIXME: when a typedef is seen at statement scope, make sure to 2007-01-27 19:04:39 +00:00
Parser.cpp Add support for inserting up to 10 strings in a diagnostic, with %0, %1, %2, 2007-05-16 17:49:37 +00:00