summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-09-19 10:48:15 +0000
committerDaniel Jasper <djasper@google.com>2014-09-19 10:48:15 +0000
commit3549ea1a73d70f4950925794a34240a466ac86c4 (patch)
treea5f67810e9bab4aab38ae6c30bb62166f7c3ed76 /clang/unittests/Format/FormatTestJS.cpp
parent2c589bcc5e1b48aca57cdf0d5d47bdc2988a8e28 (diff)
downloadbcm5719-llvm-3549ea1a73d70f4950925794a34240a466ac86c4.tar.gz
bcm5719-llvm-3549ea1a73d70f4950925794a34240a466ac86c4.zip
clang-format: [JS] add space before operator 'in'.
Before: return ('aaa')in bbbb; After: return ('aaa') in bbbb; llvm-svn: 218119
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 bf763388ffe..52f45c7ddd1 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -81,6 +81,7 @@ TEST_F(FormatTestJS, UnderstandsJavaScriptOperators) {
getGoogleJSStyleWithColumns(20));
verifyFormat("var b = a.map((x) => x + 1);");
+ verifyFormat("return ('aaa') in bbbb;");
}
TEST_F(FormatTestJS, UnderstandsAmpAmp) {
OpenPOWER on IntegriCloud