Implements breaking of string literals if they stick out.
authorManuel Klimek <klimek@google.com>
Wed, 20 Feb 2013 10:15:13 +0000 (10:15 +0000)
committerManuel Klimek <klimek@google.com>
Wed, 20 Feb 2013 10:15:13 +0000 (10:15 +0000)
commit1998ea2c7e3eee72b6622ef7caf8ae16b630f958
treebd2893eace4ae5f3550adb26222e4e0bcf150638
parentcc5224ceb861e256f240709084a0db2fd1365658
Implements breaking of string literals if they stick out.

An alternative strategy to calculating the break on demand when hitting
a token that would need to be broken would be to put all possible breaks
inside the token into the optimizer.

Currently only supports breaking at spaces; more break points to come.

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