clang-format: [JS] More aggressively keep array literals on one line.
authorDaniel Jasper <djasper@google.com>
Wed, 3 Jun 2015 08:57:36 +0000 (08:57 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 3 Jun 2015 08:57:36 +0000 (08:57 +0000)
commit9970df1f79a74d958f046e004ca658ebb6864f66
tree527aa89e9d473e9dff48698ce1ead8e483c9446d
parent9f77f61ef31d9b04a2af9c2896e778955ccab281
clang-format: [JS] More aggressively keep array literals on one line.

Before:
  var aaaaa: List<SomeThing> = [
    new SomeThingAAAAAAAAAAAA(),
    new SomeThingBBBBBBBBB()
  ];

After:
  var aaaaa: List<SomeThing> =
      [new SomeThingAAAAAAAAAAAA(), new SomeThingBBBBBBBBB()];

llvm-svn: 238909
clang/lib/Format/TokenAnnotator.cpp
clang/unittests/Format/FormatTestJS.cpp