summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-11-01 06:23:10 +0000
committerDaniel Jasper <djasper@google.com>2016-11-01 06:23:10 +0000
commitb559b43802d040888f5cf4931d05fc12a18c8e81 (patch)
tree9c90d476143dffa89ff3e86adb9679998dbb5fd8 /clang/unittests/Format
parent3ade3be2a1e97fdac987638cf9470930f61f49d5 (diff)
downloadbcm5719-llvm-b559b43802d040888f5cf4931d05fc12a18c8e81.tar.gz
bcm5719-llvm-b559b43802d040888f5cf4931d05fc12a18c8e81.zip
clang-format: [JS] Fix incorrect space when "as" is used as identifier.
Before: aaaaa.as (); After: aaaaa.as(); llvm-svn: 285672
Diffstat (limited to 'clang/unittests/Format')
-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 846abaffebf..f4b50591aae 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -136,6 +136,7 @@ TEST_F(FormatTestJS, ReservedWords) {
verifyFormat("x.let() = 1;");
verifyFormat("x.var() = 1;");
verifyFormat("x.for() = 1;");
+ verifyFormat("x.as() = 1;");
verifyFormat("x = {\n"
" a: 12,\n"
" interface: 1,\n"
OpenPOWER on IntegriCloud