]> granicus.if.org Git - clang/commit
clang-format: Slightly tweak the behavior of <<-wrapping.
authorDaniel Jasper <djasper@google.com>
Mon, 19 Dec 2016 11:14:23 +0000 (11:14 +0000)
committerDaniel Jasper <djasper@google.com>
Mon, 19 Dec 2016 11:14:23 +0000 (11:14 +0000)
commit1a0fd5b2763781f8b38abd9fdab226eb0869c004
tree74d38240304adccf903d3f04f821216f54d2a1a2
parent50dd7b04c578e43ddc951a329b647d30b9ccd115
clang-format: Slightly tweak the behavior of <<-wrapping.

Before:
  SomeLongLoggingStatementOrMacro() << "Some long text "
                                    << some_variable << "\n";

Before:
  SomeLongLoggingStatementOrMacro()
      << "Some long text " << some_variable << "\n";

Short logging statements are already special cased in a different part
of the code.

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