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)
commit5497fce41c003794db0af0e445385406128e83f9
tree4a8bfa2a8f181052df8b783b9025d99cf98da1db
parent46c0bc233bd7fda8eb4a9bf249bfc7bb45227ad2
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"));

llvm-svn: 176084
clang/lib/Format/Format.cpp
clang/unittests/Format/FormatTest.cpp