]> granicus.if.org Git - clang/commit
Let the formatter ignore UnwrappedLines containing errors.
authorDaniel Jasper <djasper@google.com>
Fri, 4 Jan 2013 18:52:56 +0000 (18:52 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 4 Jan 2013 18:52:56 +0000 (18:52 +0000)
commit1f42f11870325d1869eb7d51b98ebf5e6d7bcc26
treeb62e5945f375315060a6d60ebb3074883a2a3a68
parent463b383bcd0269ab56dfa13a3b86fb382c97b515
Let the formatter ignore UnwrappedLines containing errors.

This prevents code like:

namespace {
class Foo {
  Foo(
  };
}  // comment

from causing segfaults (see llvm.org/PR14774).

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