]> granicus.if.org Git - clang/commit
clang-format: Slightly row back on r257257.
authorDaniel Jasper <djasper@google.com>
Mon, 11 Jan 2016 11:01:05 +0000 (11:01 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 11 Jan 2016 11:01:05 +0000 (11:01 +0000)
commit4764e0cdd604e9f7b7f89eaebf92a525b09ff6ae
treec098018174b840f702a1950aac43be1f0f2ed023
parent39aa30ea9781635771723e63f23cfd58dd7d1505
clang-format: Slightly row back on r257257.

r257257 change the way clang-format enforces line breaks after a
templated type has been line-wrapped. This was to fix an incorrect line
break if BinPackParameters is set to false. However, it also leads to
an unwanted line break in a different case. Thus, for now, only do this
when BinPackParameters is false. This isn't ideal yet, but helps us
until we have a better solution.

With BinPackParameters:
Before:
  void fffffffffff(aaaaaaaaaaaaaaaaaaaaaaaaaaa<aaaaaaaaaaaaaaaaaaaaaaa,
                                               aaaaaaaaaaaaaaaaaaaa);

After:
  void fffffffffff(
      aaaaaaaaaaaaaaaaaaaaaaaaaaa<aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa>
          aaaaaaaaaa);

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