clang-format: Fix indenting corner case with comment and else.
authorDaniel Jasper <djasper@google.com>
Wed, 30 Oct 2013 14:04:10 +0000 (14:04 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 30 Oct 2013 14:04:10 +0000 (14:04 +0000)
commit16fc75421688428ce6c84cccdaba87c694484045
tree76c1c93e89ab5444b218a41cc2fc417344c49a62
parent9885784d67d7154eb5861130cc2b4b29e4cbf9ea
clang-format: Fix indenting corner case with comment and else.

Before:
  if (a) {
    f();
  }
      // or else ..
      else {
    g();
  }

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

llvm-svn: 193684
clang/lib/Format/ContinuationIndenter.cpp
clang/unittests/Format/FormatTest.cpp