summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-06-02 22:06:07 +0000
committerDaniel Jasper <djasper@google.com>2015-06-02 22:06:07 +0000
commite497beddb5ec4375df48fe144c700219a2fd3aae (patch)
tree9c1f8ae69c13245d400b7d9feb4aa4f470d697d2 /clang/unittests/Format/FormatTestJS.cpp
parentb1f5879f3a0d034b01f934df004e39cf58ab6cc9 (diff)
downloadbcm5719-llvm-e497beddb5ec4375df48fe144c700219a2fd3aae.tar.gz
bcm5719-llvm-e497beddb5ec4375df48fe144c700219a2fd3aae.zip
clang-format: [JS] Always add space after fat arrow.
Before: return () =>[]; After: return () => []; llvm-svn: 238875
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 1dcce6f0400..80a3e0a66a0 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -484,6 +484,7 @@ TEST_F(FormatTestJS, ArrowFunctions) {
" return a;\n"
"};");
verifyFormat("var x = (a) => a;");
+ verifyFormat("return () => [];");
// FIXME: This is bad, we should be wrapping before "() => {".
verifyFormat("someFunction(() => {\n"
OpenPOWER on IntegriCloud