clang-format: Increase the penalty for breaking between array subscripts.
authorDaniel Jasper <djasper@google.com>
Tue, 1 Mar 2016 04:19:55 +0000 (04:19 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 1 Mar 2016 04:19:55 +0000 (04:19 +0000)
commitf9168de892634832f25c9dd91462ed8236782f81
treef30be372fb363a020e57e4ab25a2b9c1c874dbe1
parentb18425bf96b1b8d4b21cf1827bda5fde6a91df3a
clang-format: Increase the penalty for breaking between array subscripts.

Before:
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa[aaaaaaaaaaaaaaaaaaaaaaa]
                                    [a].aaaaaaaaaaaaaaaaaaaaaa();

After:
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa[aaaaaaaaaaaaaaaaaaaaaaa][a]
      .aaaaaaaaaaaaaaaaaaaaaa();

llvm-svn: 262292
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTest.cpp