]> granicus.if.org Git - clang/commit
clang-format: Fix bug in wrapping behavior of operators.
authorDaniel Jasper <djasper@google.com>
Thu, 16 Mar 2017 07:54:11 +0000 (07:54 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 16 Mar 2017 07:54:11 +0000 (07:54 +0000)
commitf54b40f9cf6133a18e02b6fbb396476066b15a5e
treec7cce22fce3dae4c07a5d8a8c9040ee487fe6e4f
parentacde964fd9b70f6828b3c153562f305ea27ce02d
clang-format: Fix bug in wrapping behavior of operators.

Before (even violating the column limit):
  auto Diag =
      diag()
      << aaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);

After:
  auto Diag = diag() << aaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaa,
                                         aaaaaaaaaaaaaaaaaaaaaaaaaa);

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