diff options
author | Martin Probst <martin@probst.io> | 2016-04-11 07:35:57 +0000 |
---|---|---|
committer | Martin Probst <martin@probst.io> | 2016-04-11 07:35:57 +0000 |
commit | bbffeac569e89a61201ce159790f68b8493042b6 (patch) | |
tree | 85aa3c93841b370e8c44ca1fc6b048950d18cc20 /clang/unittests/Format/FormatTestJS.cpp | |
parent | d8d2f62107cf72c347907a3eb6234eac99555e26 (diff) | |
download | bcm5719-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.cpp | 2 |
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) { |