summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-06-02 15:31:37 +0000
committerDaniel Jasper <djasper@google.com>2015-06-02 15:31:37 +0000
commit1feab0f95ea0202f95a555a86f5dd60db4a8a5c8 (patch)
tree88879d8c065059459f7b63fc92661c52c6c511bb /clang/unittests/Format/FormatTestJS.cpp
parentf85028359dd5a25deadc497de3c314612b1f404a (diff)
downloadbcm5719-llvm-1feab0f95ea0202f95a555a86f5dd60db4a8a5c8.tar.gz
bcm5719-llvm-1feab0f95ea0202f95a555a86f5dd60db4a8a5c8.zip
clang-format: Don't try to detect C++ lambdas in other languages.
llvm-svn: 238845
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index a18d35b034a..6550863244f 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -266,6 +266,8 @@ TEST_F(FormatTestJS, ArrayLiterals) {
" bbbbbbbbbbbbbbbbbbbbbbbbbbb,\n"
" ccccccccccccccccccccccccccc\n"
"]);");
+
+ verifyFormat("someFunction([], {a: a});");
}
TEST_F(FormatTestJS, FunctionLiterals) {
OpenPOWER on IntegriCloud