]> granicus.if.org Git - clang/commit
clang-format: [JS] Format embedded function literals more efficently.
authorDaniel Jasper <djasper@google.com>
Fri, 5 Sep 2014 09:27:38 +0000 (09:27 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 5 Sep 2014 09:27:38 +0000 (09:27 +0000)
commit664ce273d061dfa586a0f194f46e409aeb7ea8c8
tree64c3aec226424e8c3bd64aa6c31b03ccbbdf7c18
parenta1290a65bc39953d5e4d5cd6fa05af0fa5b534f5
clang-format: [JS] Format embedded function literals more efficently.

Before:
  return {
    a: a,
    link:
        function() {
          f();  //
        },
    link:
        function() {
          f();  //
        }
  };

After:
  return {
    a: a,
    link: function() {
      f();  //
    },
    link: function() {
      f();  //
    }
  };

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