]> granicus.if.org Git - clang/commit
clang-format: [JS] Avoid bad line-warp around "function".
authorDaniel Jasper <djasper@google.com>
Fri, 8 May 2015 08:38:52 +0000 (08:38 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 8 May 2015 08:38:52 +0000 (08:38 +0000)
commit548a3e7c1076dcc826a83b6854e1fc9bc0ad9425
tree765187c882ddb90c30787be0adfa7d2227e7a985
parent9b0abb9df531ef7928c8182120e1869affca17d5
clang-format: [JS] Avoid bad line-warp around "function".

Before:
  someLooooooooongFunction(
      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, function(
                                              aaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {
        // code
      });

After:
  someLooooooooongFunction(
      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
      function(aaaaaaaaaaaaaaaaaaaaaaaaaaaaa) {
        // code
      });

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