diff options
author | Daniel Jasper <djasper@google.com> | 2014-05-06 14:12:21 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-05-06 14:12:21 +0000 |
commit | 166c19bd373ca6fcdce897a6a540c610434c7171 (patch) | |
tree | 53e75cb2f353e00ed10376840e508bae8d70b51a /clang/unittests/Format/FormatTestJS.cpp | |
parent | aa44aaee90dda304dab4024f9cc8fd7489dfcbea (diff) | |
download | bcm5719-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.cpp | 4 |
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 |