diff options
author | Daniel Jasper <djasper@google.com> | 2015-02-19 16:03:16 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-02-19 16:03:16 +0000 |
commit | 6fa9ec788508472e8e07a2c6f0ccbdbd64f1ade7 (patch) | |
tree | f907e165ae2195c5207b42d114687c3cde310a55 /clang/unittests/Format/FormatTestJS.cpp | |
parent | ea68a944a1e92b619acececd66ca89d30cd59e4d (diff) | |
download | bcm5719-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.cpp | 2 |
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 |