]> granicus.if.org Git - clang/commit
clang-format: Fix regression introduced in r290084.
authorDaniel Jasper <djasper@google.com>
Mon, 19 Dec 2016 08:40:56 +0000 (08:40 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 19 Dec 2016 08:40:56 +0000 (08:40 +0000)
commit895b5f639a673c8189c984d3c26c9237950257be
tree037b8863dc36a2475b0ced680bf58e4c75b680d5
parent70a217a797bf1c9566b86398aa90dc970f8aee20
clang-format: Fix regression introduced in r290084.

We still want to try in linewrap within single elements of a 1-column
list.

After:
  Type *Params[] = {PointerType::getUnqual(FunctionType::get(
Builder.getVoidTy(), Builder.getInt8PtrTy(), false)),
    Builder.getInt8PtrTy(),
    Builder.getInt32Ty(),
    LongType,
    LongType,
    LongType};

Before:
  No line break in the first element, so column limit violation.

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