aboutsummaryrefslogtreecommitdiff
path: root/lib/Format/UnwrappedLineParser.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-01-09 10:16:05 +0000
committerDaniel Jasper <djasper@google.com>2013-01-09 10:16:05 +0000
commitceb99ab9d721848c0851c59f3fdd9c1ca85c58be (patch)
treeb8c27a7b113012584050895e50454ddd113e47d6 /lib/Format/UnwrappedLineParser.cpp
parentd64f73812f3e6473ef8b6b6ec909bb9d8a510843 (diff)
Don't simply give up when exceeding 80cols, choose an "ok" option.
This addresses llvm.org/PR14847. We can now format something like: int aaaaaaaaaaaaaaaaaaaaaaaaaaa = // aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaiaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb; clang-format unavoidably exceeds the column limit, but does not just flush everything into a single line. Moreover, it tries to minimize the number of characters beyond the column limit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/UnwrappedLineParser.cpp')
0 files changed, 0 insertions, 0 deletions