summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2016-04-11 07:35:57 +0000
committerMartin Probst <martin@probst.io>2016-04-11 07:35:57 +0000
commitbbffeac569e89a61201ce159790f68b8493042b6 (patch)
tree85aa3c93841b370e8c44ca1fc6b048950d18cc20 /clang/unittests/Format/FormatTestJS.cpp
parentd8d2f62107cf72c347907a3eb6234eac99555e26 (diff)
downloadbcm5719-llvm-bbffeac569e89a61201ce159790f68b8493042b6.tar.gz
bcm5719-llvm-bbffeac569e89a61201ce159790f68b8493042b6.zip
clang-format: [JS] do not insert semicolons after wrapped annotations.
Reviewers: djasper Subscribers: klimek Differential Revision: http://reviews.llvm.org/D18943 llvm-svn: 265916
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 73f3afbaf09..912682449e3 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -686,6 +686,8 @@ TEST_F(FormatTestJS, AutomaticSemicolonInsertionHeuristic) {
verifyFormat("x instanceof String", "x\n"
"instanceof\n"
"String");
+ verifyFormat("function f(@Foo bar) {}", "function f(@Foo\n"
+ " bar) {}");
}
TEST_F(FormatTestJS, ClosureStyleCasts) {
OpenPOWER on IntegriCloud