]> granicus.if.org Git - clang/commit
Improve clang-format's error recovery.
authorDaniel Jasper <djasper@google.com>
Fri, 31 May 2013 14:56:29 +0000 (14:56 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 31 May 2013 14:56:29 +0000 (14:56 +0000)
commitf7ec1cc7f931833b2cb9876a5e7dfd6bf8681c6a
treeff219d976b0eed1d2d73989b8bda970e0169b118
parent8893b8a28d32359a5c778d9308780200a09402ba
Improve clang-format's error recovery.

If a "}" is found inside parenthesis, this is probably a case of
missing parenthesis. This enables continuing to format after stuff code
like:

class A {
  void f(
};
..

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