diff options
author | Martin Probst <martin@probst.io> | 2016-06-13 16:39:50 +0000 |
---|---|---|
committer | Martin Probst <martin@probst.io> | 2016-06-13 16:39:50 +0000 |
commit | 0cd74ee87557836ca25604c9895c546e0a6e648e (patch) | |
tree | 8a7ee83c3f079c67401530a1cb24e9a5555a5107 /clang/unittests/Format/SortImportsTestJS.cpp | |
parent | db176c11dc3d78b3cfbf623eb3fe71532a80a91f (diff) | |
download | bcm5719-llvm-0cd74ee87557836ca25604c9895c546e0a6e648e.tar.gz bcm5719-llvm-0cd74ee87557836ca25604c9895c546e0a6e648e.zip |
clang-format: [JS] Introduce JavaScriptWrapImports option.
Summary:
When turned on, clang-format wraps JavaScript imports (and importing exports),
instead of forcing the entire import statement onto one line.
Reviewers: djasper
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D21273
llvm-svn: 272558
Diffstat (limited to 'clang/unittests/Format/SortImportsTestJS.cpp')
-rw-r--r-- | clang/unittests/Format/SortImportsTestJS.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/unittests/Format/SortImportsTestJS.cpp b/clang/unittests/Format/SortImportsTestJS.cpp index 17e73b08554..cc408ca9da7 100644 --- a/clang/unittests/Format/SortImportsTestJS.cpp +++ b/clang/unittests/Format/SortImportsTestJS.cpp @@ -92,12 +92,12 @@ TEST_F(SortImportsTestJS, SeparateMainCodeBody) { TEST_F(SortImportsTestJS, Comments) { verifySort("/** @fileoverview This is a great file. */\n" "// A very important import follows.\n" - "import {sym} from 'a'; /* more comments */\n" - "import {sym} from 'b'; // from //foo:bar\n", + "import {sym} from 'a'; /* more comments */\n" + "import {sym} from 'b'; // from //foo:bar\n", "/** @fileoverview This is a great file. */\n" - "import {sym} from 'b'; // from //foo:bar\n" + "import {sym} from 'b'; // from //foo:bar\n" "// A very important import follows.\n" - "import {sym} from 'a'; /* more comments */\n"); + "import {sym} from 'a'; /* more comments */\n"); } TEST_F(SortImportsTestJS, SortStar) { |