]> granicus.if.org Git - clang/commit
clang-format: With ColumnLimit=0, keep short array literals on a line.
authorDaniel Jasper <djasper@google.com>
Mon, 14 Apr 2014 12:05:05 +0000 (12:05 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 14 Apr 2014 12:05:05 +0000 (12:05 +0000)
commit7701d043851456661e4885ef37bac679199e81d7
treeb8090552eca262f3213395fd78dce38a95083120
parent1e171ff6b26339e29ca16e144644b85e5c85dc06
clang-format: With ColumnLimit=0, keep short array literals on a line.

Before:
    NSArray* a = [[NSArray alloc] initWithArray:@[
                                                   @"a"
                                                ]
                                      copyItems:YES];

After:
    NSArray* a = [[NSArray alloc] initWithArray:@[ @"a" ]
                                      copyItems:YES];

This fixed llvm.org/PR19080.

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