]> granicus.if.org Git - clang/commit
clang-format: Add special case to reduce indentaiton in streams.
authorDaniel Jasper <djasper@google.com>
Wed, 16 Apr 2014 12:26:54 +0000 (12:26 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 16 Apr 2014 12:26:54 +0000 (12:26 +0000)
commitb0a2764aa108322b313ae7877e7b8920e673617c
treec4d96c5f4a583b5ebbba3c93c49193ade7a34859
parent26bbacc741d4e7b27d479d5b5c1d8f192a544ea1
clang-format: Add special case to reduce indentaiton in streams.

This is similar to how we treat assignments and seems to be generally
desirable.

Before:
  llvm::errs() << aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(
                      aaaaaaaaaaaaaaaaaaaaaaaaaaaa,
                      aaaaaaaaaaaaaaaaaaaaaaaaaaaa);

After:
  llvm::errs() << aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(
      aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);

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