]> granicus.if.org Git - clang/commit
Try to recover a bit better if a close brace is missing from the end of a class
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 9 Nov 2013 04:52:51 +0000 (04:52 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sat, 9 Nov 2013 04:52:51 +0000 (04:52 +0000)
commitb310439121c875937d78cc49cc969bc1197fc025
treee495bf1652ba6f9a53acc0de9c79cd82ac2b42b2
parentc31fbe34c9cc9d7fcf4e5d6d79e27835cdefc716
Try to recover a bit better if a close brace is missing from the end of a class
definition. If we see something that looks like a namespace definition inside a
class, that strongly indicates that a close brace was missing somewhere.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194319 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Parse/Parser.h
lib/Parse/ParseDeclCXX.cpp
test/Parser/recovery.cpp