]> granicus.if.org Git - clang/commit
clang-format: [JS] Support ES6 spread operator.
authorDaniel Jasper <djasper@google.com>
Tue, 26 May 2015 07:18:56 +0000 (07:18 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 26 May 2015 07:18:56 +0000 (07:18 +0000)
commit86cd45525cbe6e1f2b18442110109f31109b6ee1
treed3d37efe568ee1b508238e4ae4c78cdc489ba6a3
parenta6074110bb8b1a7ae6fa718cabe08ea11f5caf24
clang-format: [JS] Support ES6 spread operator.

Specifically, don't add a space before it.

Before:
  someFunction(... a);
  var x = [1, 2, ... a];

After:
  someFunction(...a);
  var x = [1, 2, ...a];

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@238183 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp