summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-05-19 07:18:07 +0000
committerDaniel Jasper <djasper@google.com>2016-05-19 07:18:07 +0000
commit5dbcd3bd07dd11c0dd62b5da440c8abbff886224 (patch)
tree33701da18585d811c8cbd0fd838df42aef00374a /clang/unittests/Format/FormatTestJS.cpp
parent451544ab57dc5c8ec187d1ce7e1ddc049d4d1b76 (diff)
downloadbcm5719-llvm-5dbcd3bd07dd11c0dd62b5da440c8abbff886224.tar.gz
bcm5719-llvm-5dbcd3bd07dd11c0dd62b5da440c8abbff886224.zip
clang-format: [JS] Fix spacing in destructuring assignments.
Before: const[a, b, c] = [1, 2, 3]; After: const [a, b, c] = [1, 2, 3]; llvm-svn: 270029
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 485e8224c32..5f60f1d2162 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -148,6 +148,7 @@ TEST_F(FormatTestJS, CppKeywords) {
TEST_F(FormatTestJS, ES6DestructuringAssignment) {
verifyFormat("var [a, b, c] = [1, 2, 3];");
+ verifyFormat("const [a, b, c] = [1, 2, 3];");
verifyFormat("let [a, b, c] = [1, 2, 3];");
verifyFormat("var {a, b} = {a: 1, b: 2};");
verifyFormat("let {a, b} = {a: 1, b: 2};");
OpenPOWER on IntegriCloud