]> granicus.if.org Git - clang/commit
clang-format: Improve wrapping of << operators.
authorDaniel Jasper <djasper@google.com>
Sun, 10 May 2015 21:15:07 +0000 (21:15 +0000)
committerDaniel Jasper <djasper@google.com>
Sun, 10 May 2015 21:15:07 +0000 (21:15 +0000)
commit3eb01df09cf988d630dc9ba5cde84d044bd25855
tree0748e612816ee391c854d97be210332151e13f57
parent117339a2345064b7c77c82608725b31ea2acb05a
clang-format: Improve wrapping of << operators.

Before:
  llvm::errs() << aaaaaaaaaaaaaaaaaaaaaaaaaaaaa(
                     aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
                      aaaaaaaaaaaaaaaa) << aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;

After:
  llvm::errs() << aaaaaaaaaaaaaaaaaaaaaaaaaaaaa(
                      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
                      aaaaaaaaaaaaaaaa)
               << aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa;

Also, cleanup and simplify the operator wrapping logic.

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