]> granicus.if.org Git - clang/commit
Fix bug where optimization would lead to strange line breaks.
authorManuel Klimek <klimek@google.com>
Wed, 20 Nov 2013 11:20:32 +0000 (11:20 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 20 Nov 2013 11:20:32 +0000 (11:20 +0000)
commit0c5efe57db9937919ae74c18a44d74be95a7b8aa
treea94f4a6beeca75476a728f6cce56cb80d082819b
parentc725b7c537f95dee792dbcb5cb1407b227941116
Fix bug where optimization would lead to strange line breaks.

Before:
  void f() {
    CHECK_EQ(aaaa, (
                       *bbbbbbbbb)->cccccc)
        << "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq";
  }

After:
  void f() {
    CHECK_EQ(aaaa, (*bbbbbbbbb)->cccccc)
        << "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq";
  }

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