[cfe-commits] r145372 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td lib/Parse/ParseDecl.cpp lib/Parse/ParseTemplate.cpp test/FixIt/fixit-cxx0x.cpp test/FixIt/fixit.c test/FixIt/fixit.cpp test/SemaCXX/typedef-redecl.cpp

Chandler Carruth chandlerc at google.com
Mon Nov 28 22:07:27 PST 2011


Your commit message doesn't mention this other recovery change:

On Mon, Nov 28, 2011 at 9:27 PM, Richard Smith
<richard-llvm at metafoo.co.uk>wrote:

> -      if (Tok.is(tok::l_brace)) {
> -        // This recovery skips the entire function body. It would be nice
> -        // to simply call ParseFunctionDefinition() below, however Sema
> -        // assumes the declarator represents a function, not a typedef.
> -        ConsumeBrace();
> -        SkipUntil(tok::r_brace, true);
> -      } else {
> -        SkipUntil(tok::semi);
> -      }
> -      return 0;
> +      // Recover by ignoring the 'typedef'.
> +      DS.ClearStorageClassSpecs();
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111128/2a8671f4/attachment.html>


More information about the cfe-commits mailing list