]> granicus.if.org Git - clang/commit
clang-format: [JS] Support for EC6 arrow functions.
authorDaniel Jasper <djasper@google.com>
Mon, 19 May 2014 07:27:02 +0000 (07:27 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 19 May 2014 07:27:02 +0000 (07:27 +0000)
commitf805b0c2ed55d573afb7c0ca8705ad74fe5fc3fd
tree8bc50747a08b35ad7c8f3bd40ab88dfc1f807e72
parentcea7244f3d6e9ac7fb25d3f4b02316b48670ca04
clang-format: [JS] Support for EC6 arrow functions.

Before:
  var b = a.map((x) = > x + 1);

After:
  var b = a.map((x) => x + 1);

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