diff options
author | Daniel Jasper <djasper@google.com> | 2015-09-28 14:28:08 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-09-28 14:28:08 +0000 |
commit | 9f642f7d7aeefd4ce676c891ea462c0f32a5ed68 (patch) | |
tree | 6e755f32044a712f855087f4716b09d3a61f80b6 /clang/unittests/Format/FormatTestJS.cpp | |
parent | 28b9a14b07f0c6b491076c0bff8ddee7beb75231 (diff) | |
download | bcm5719-llvm-9f642f7d7aeefd4ce676c891ea462c0f32a5ed68.tar.gz bcm5719-llvm-9f642f7d7aeefd4ce676c891ea462c0f32a5ed68.zip |
clang-format: [JS] handle let (ES6)
Patch by Martin Probst. Thank you!
llvm-svn: 248713
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index d068d35d7d3..c02d51be505 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -101,7 +101,9 @@ TEST_F(FormatTestJS, LiteralOperatorsCanBeKeywords) { TEST_F(FormatTestJS, ES6DestructuringAssignment) { verifyFormat("var [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};"); } TEST_F(FormatTestJS, ContainerLiterals) { |