]> granicus.if.org Git - clang/commit
clang-format: Always wrap before multi-line parameters/operands.
authorDaniel Jasper <djasper@google.com>
Mon, 16 Jan 2017 13:13:15 +0000 (13:13 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 16 Jan 2017 13:13:15 +0000 (13:13 +0000)
commit53013530467f00cc2bcdc5b25fbf55f433464566
treea92de4ab28144fedcc26ab70545d174b50775b5d
parent883044a3f4d214eaa371fb78c04a543c36aa65cf
clang-format: Always wrap before multi-line parameters/operands.

Before:
  aaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::
                                   aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
                     aaaaaaaaaaaaaaaaaaaaa);

After:
  aaaaaaaaaaaaaaaaaa(aaaaaaaa,
                     aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa::
                         aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
                     aaaaaaaaaaaaaaaaaaaaa);

No new test cases, as the existing ones cover this fairly well.

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