]> granicus.if.org Git - clang/commit
clang-format: Improve recovery from enums with errors.
authorDaniel Jasper <djasper@google.com>
Fri, 30 Aug 2013 10:10:19 +0000 (10:10 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 30 Aug 2013 10:10:19 +0000 (10:10 +0000)
commit4b434cf0c913a853cb5fd5011a631447836563b2
tree39b8d7a1617d8afdd8f6540451c42fec41a967f2
parent3e4d3a280b31bef39713cb0f111af951f5ef9aef
clang-format: Improve recovery from enums with errors.

Before:
  namespace n {
  enum Type {
    One,
    Two, // missing };
    int i;
  } void g() {
  }

After:
  namespace n {
  enum Type {
    One,
    Two, // missing };
    int i;
  }
  void g() {}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189662 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/UnwrappedLineParser.cpp
unittests/Format/FormatTest.cpp