]> granicus.if.org Git - clang/commit
Only break string literals as a last resort.
authorDaniel Jasper <djasper@google.com>
Tue, 26 Feb 2013 12:52:34 +0000 (12:52 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 26 Feb 2013 12:52:34 +0000 (12:52 +0000)
commit0fb382bfbfbfee73763a213b2257042ed342c4b0
treee4b1fce3e2fb59728f8440eec3b3f6aa68a928bd
parent863fb3574468ef9fdc9f5ea3fa3d62671979ccf1
Only break string literals as a last resort.

We might want to move towards doing this if the formatting can be
significantly improved, but we need to carefully evaluate the different
situations first.

Before (the string literal was split by clang-format here):
aaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaa, aaaaaa("aaa aaaaa aaa aaa aaaaa aaa "
                                                  "aaaaa aaa aaa aaaaaa"));

After:
aaaaaaaaaaaaaaaaaaaa(
    aaaaaaaaaaaaaaaaaaaa,
    aaaaaa("aaa aaaaa aaa aaa aaaaa aaa aaaaa aaa aaa aaaaaa"));

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