clang-format: Increase penalty for wrapping array subscript expressions
authorDaniel Jasper <djasper@google.com>
Tue, 10 Jun 2014 13:27:57 +0000 (13:27 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 10 Jun 2014 13:27:57 +0000 (13:27 +0000)
commitecaba1799656d6ec91632e8100986be2d57319e7
tree04e3348c6397a7630ba4b5c9142123833612eb71
parent6c8682e2e99cde2c1511d804e29a0816991f00ba
clang-format: Increase penalty for wrapping array subscript expressions

Before:
  aaaaaaaaaaa aaaaaaaaaaaaaaa = aaaaaaaaaaaaaaaaaaaaaaaaaa->aaaaaaaaa[0].aaaaaaa
                                    [0].aaaaaaaaaaaaaaaaaaaaaa();

After:
  aaaaaaaaaaa aaaaaaaaaaaaaaa = aaaaaaaaaaaaaaaaaaaaaaaaaa->aaaaaaaaa[0]
                                    .aaaaaaa[0]
                                    .aaaaaaaaaaaaaaaaaaaaaa();

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