]> granicus.if.org Git - clang/commit
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)
commitdc837b1722d8e071d9ec0434aea487dbdfd57853
tree0acb924f3eb9dc494f88892398f27c42a1673aa8
parent8437957c9da906c24d4e385869c05d8e601c664d
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();
  }

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