summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-02-19 16:03:16 +0000
committerDaniel Jasper <djasper@google.com>2015-02-19 16:03:16 +0000
commit6fa9ec788508472e8e07a2c6f0ccbdbd64f1ade7 (patch)
treef907e165ae2195c5207b42d114687c3cde310a55 /clang/unittests/Format/FormatTestJS.cpp
parentea68a944a1e92b619acececd66ca89d30cd59e4d (diff)
downloadbcm5719-llvm-6fa9ec788508472e8e07a2c6f0ccbdbd64f1ade7.tar.gz
bcm5719-llvm-6fa9ec788508472e8e07a2c6f0ccbdbd64f1ade7.zip
clang-format: [js] Do not fall through for JS structural elements.
Patch by Martin Probst. Thank you. llvm-svn: 229862
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 8c74b0425ad..b60e47083ef 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -521,6 +521,8 @@ TEST_F(FormatTestJS, MetadataAnnotations) {
" return 'y';\n"
" }\n"
"}");
+ verifyFormat("class X {}\n"
+ "class Y {}");
}
} // end namespace tooling
OpenPOWER on IntegriCloud