Implements breaking string literals at slashes.
authorManuel Klimek <klimek@google.com>
Fri, 1 Mar 2013 13:29:19 +0000 (13:29 +0000)
committerManuel Klimek <klimek@google.com>
Fri, 1 Mar 2013 13:29:19 +0000 (13:29 +0000)
commite317d1b1e8fae926239aa1e0d75fc1ddd679199d
treef7edd053ac41c652bf624ae2e9d1b8a5ae6a749f
parentb176cff89de33a17f3e664b612c8b78882b801e0
Implements breaking string literals at slashes.

We now break at a slash if we do not find a space to break on.

Also fixes a bug where we would go over the limit when breaking the
second line.

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