]> granicus.if.org Git - clang/commit
clang-format: Avoid line-breaks that increase the current column.
authorDaniel Jasper <djasper@google.com>
Thu, 27 Mar 2014 16:14:13 +0000 (16:14 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 27 Mar 2014 16:14:13 +0000 (16:14 +0000)
commitbdc07b42302eb57f4abf892323c13c26798696b1
tree438c68ae64fddc78fe743b109cd25bee72c0ad25
parent78137914306f0b549d887d0066b882edff527b8a
clang-format: Avoid line-breaks that increase the current column.

While these might make sense for some rule (e.g. break after multi-line
operand), they generally appear ugly and confusing.

Before:
  fffffffffff(R\"x(
  multiline raw string literal xxxxxxxxxxxxxx
  )x\" + bbbbbb)

After:
  fffffffffff(R\"x(
  multiline raw string literal xxxxxxxxxxxxxx
  )x\" +
              bbbbbb)

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