commit | e1e12a73d74ce73c6e2c5994a598f6bb3bdb4bcc | [log] [tgz] |
---|---|---|
author | Martin Probst <martin@probst.io> | Fri Aug 19 14:35:01 2016 +0000 |
committer | Martin Probst <martin@probst.io> | Fri Aug 19 14:35:01 2016 +0000 |
tree | 895bfe6008b195bc8ebd66b972bf8f4499196957 | |
parent | 66dd6797e81f80a89c204eb9fb3d2c266e3665af [diff] [blame] |
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
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index 2819383..838caff 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -1218,6 +1218,7 @@ " 1, //\n" " 2\n" "];"); + verifyFormat("var x = [{x: 1} as type];"); } TEST_F(FormatTestJS, TypeArguments) {