]> granicus.if.org Git - clang/commit
Recover from errors in enum definition
authorSerge Pavlov <sepavloff@gmail.com>
Tue, 31 Dec 2013 06:26:03 +0000 (06:26 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Tue, 31 Dec 2013 06:26:03 +0000 (06:26 +0000)
commit28010ae796fee77b21ef4b7a99391cdd9c257192
treeb4a6a17b1b0e222d7ad3244fb17c1123cac57ae7
parent3770da522a8a10e916545ecf09ea4de98a6b4f2a
Recover from errors in enum definition

Previously any error in enum definition body stopped parsing it. With this
change parser tries to recover from errors.
The patch fixes PR10982.

Differential Revision: http://llvm-reviews.chandlerc.com/D2018

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198259 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
lib/Parse/ParseDecl.cpp
test/Parser/cxx0x-ambig.cpp
test/Parser/declarators.c