]> granicus.if.org Git - clang/commit
clang-format: [JS] Support different function literal style.
authorDaniel Jasper <djasper@google.com>
Wed, 21 May 2014 12:51:23 +0000 (12:51 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 21 May 2014 12:51:23 +0000 (12:51 +0000)
commitc890573f2c2e042f1c585f925fc9a4edd1123662
treeca5b407adf90eeddb4913f40daa5bfe5003ff2eb
parent4b98993f7f080d81275b691270548ac235d364af
clang-format: [JS] Support different function literal style.

Before:
  goog.array.forEach(array, function() {
                              doSomething();
                              doSomething();
                            },
                     this);

After:
  goog.array.forEach(array, function() {
    doSomething();
    doSomething();
  }, this);

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