summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-05-06 14:12:21 +0000
committerDaniel Jasper <djasper@google.com>2014-05-06 14:12:21 +0000
commit166c19bd373ca6fcdce897a6a540c610434c7171 (patch)
tree53e75cb2f353e00ed10376840e508bae8d70b51a /clang/unittests/Format/FormatTestJS.cpp
parentaa44aaee90dda304dab4024f9cc8fd7489dfcbea (diff)
downloadbcm5719-llvm-166c19bd373ca6fcdce897a6a540c610434c7171.tar.gz
bcm5719-llvm-166c19bd373ca6fcdce897a6a540c610434c7171.zip
clang-format: [JS] Keep space between 'return' and '['.
llvm-svn: 208090
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 4e8908685f0..153b07535ee 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -98,5 +98,9 @@ TEST_F(FormatTestJS, GoogScopes) {
"}); // goog.scope");
}
+TEST_F(FormatTestJS, ReturnStatements) {
+ verifyFormat("function() { return [hello, world]; }");
+}
+
} // end namespace tooling
} // end namespace clang
OpenPOWER on IntegriCloud