]> granicus.if.org Git - clang/commit
clang-format: [JS] Fix failing format with TypeScript casts.
authorDaniel Jasper <djasper@google.com>
Tue, 14 Jun 2016 13:54:38 +0000 (13:54 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 14 Jun 2016 13:54:38 +0000 (13:54 +0000)
commit4ace26b3754bea5f81194312b1a2f15ffd71fa8f
tree24f82aac91aece109c7d44cfa80a5c0f61e55fe8
parent08ab1ac94c47149daeedb67b1a203211fce953c7
clang-format: [JS] Fix failing format with TypeScript casts.

Before, this could be formatted at all (with BracketAlignmentStyle
AlwaysBreak):

  foo = <Bar[]>[
    1, /* */
    2
  ];

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