clang-format: Don't merge short else blocks.
authorDaniel Jasper <djasper@google.com>
Thu, 30 Apr 2015 09:24:17 +0000 (09:24 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 30 Apr 2015 09:24:17 +0000 (09:24 +0000)
commite9f5357f495dabedcc84bd956da7c357d8547fd1
treea55f776bb37a175175862e7c352159499eb5662e
parent90b059d555e7e3a910dad247a342babb537d5cd7
clang-format: Don't merge short else blocks.

Before (with the appropriate flags settings):
  if (a) {
    f();
  } else { g(); }

Before (with other appropriate flags settings):
  if (a) { f(); } else {
    g();
  }

After:
  if (a) {
    f();
  } else {
    g();
  }

llvm-svn: 236217
clang/lib/Format/UnwrappedLineFormatter.cpp
clang/unittests/Format/FormatTest.cpp