clang-format: Fix incorrect indentation.
authorDaniel Jasper <djasper@google.com>
Fri, 6 Jun 2014 13:49:04 +0000 (13:49 +0000)
committerDaniel Jasper <djasper@google.com>
Fri, 6 Jun 2014 13:49:04 +0000 (13:49 +0000)
commit58cb2edd69a863f7d284b5db493403e8945ca652
tree6963ab3fcd4f0464c1d03e562814ab030807916a
parent9c8274254a0bfd4e135905d1d0db101fddffbaec
clang-format: Fix incorrect indentation.

Before (JavaScript example, but can extend to other languages):
  return {
    a: 'E',
    b: function() {
      return function() {
      f();  // This is wrong.
      };
    }
  };

After:
  return {
    a: 'E',
    b: function() {
      return function() {
        f();  // This is better.
      };
    }
  };

llvm-svn: 210334
clang/lib/Format/Format.cpp
clang/unittests/Format/FormatTestJS.cpp