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
Showing
- include/clang/Basic/DiagnosticParseKinds.td 4 additions, 0 deletionsinclude/clang/Basic/DiagnosticParseKinds.td
- include/clang/Parse/Parser.h 2 additions, 0 deletionsinclude/clang/Parse/Parser.h
- lib/Parse/ParseDeclCXX.cpp 30 additions, 5 deletionslib/Parse/ParseDeclCXX.cpp
- test/Parser/recovery.cpp 11 additions, 0 deletionstest/Parser/recovery.cpp
Loading
Please register or sign in to comment