clang-format: [JS] handle object literals with casts.
authorMartin Probst <martin@probst.io>
Fri, 19 Aug 2016 14:35:01 +0000 (14:35 +0000)
committerMartin Probst <martin@probst.io>
Fri, 19 Aug 2016 14:35:01 +0000 (14:35 +0000)
commite1e12a73d74ce73c6e2c5994a598f6bb3bdb4bcc
tree895bfe6008b195bc8ebd66b972bf8f4499196957
parent66dd6797e81f80a89c204eb9fb3d2c266e3665af
clang-format: [JS] handle object literals with casts.

Summary: E.g. `{a: 1} as b`.

Reviewers: djasper

Subscribers: cfe-commits, klimek

Differential Revision: https://reviews.llvm.org/D23714

llvm-svn: 279250
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTestJS.cpp