summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-09-05 08:29:31 +0000
committerDaniel Jasper <djasper@google.com>2014-09-05 08:29:31 +0000
commit97bfb7b1ba5dfc5c0d71e8e9bea3e23e9666ba17 (patch)
tree7deec385daf09507549ced5cacce63ff3f17208d /clang/unittests/Format/FormatTestJS.cpp
parent634c355e35b0d04034a7023dbd674785f6fccb5a (diff)
downloadbcm5719-llvm-97bfb7b1ba5dfc5c0d71e8e9bea3e23e9666ba17.tar.gz
bcm5719-llvm-97bfb7b1ba5dfc5c0d71e8e9bea3e23e9666ba17.zip
clang-format: [JS] Fix indentation in dict literals.
Before: return { 'finish': // a }; After: return { 'finish': // a }; llvm-svn: 217235
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index fcddba72a8b..55e7cc6fe19 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -123,6 +123,11 @@ TEST_F(FormatTestJS, ContainerLiterals) {
" // comment for tasks\n"
" tasks: false\n"
"};");
+ verifyFormat("return {\n"
+ " 'finish':\n"
+ " //\n"
+ " a\n"
+ "};");
}
TEST_F(FormatTestJS, SpacesInContainerLiterals) {
OpenPOWER on IntegriCloud