commit | 3f8cdbf9932c874b7ca4ee3d850a236d9c729961 | [log] [tgz] |
---|---|---|
author | Daniel Jasper <djasper@google.com> | Wed Jan 16 10:41:46 2013 +0000 |
committer | Daniel Jasper <djasper@google.com> | Wed Jan 16 10:41:46 2013 +0000 |
tree | d43034baed4deb1cf11575ad7a0197caaee749c6 | |
parent | cbb6c41f3cec4a940201a8e2e65743c9f26c3673 [diff] |
Calculate the total length of a line up to each token up front. This makes the tedious fitsIntoLimit() method unnecessary and I can replace one hack (constructor initializers) by a slightly better hack. Furthermore, this will enable calculating whether a certain part of a line fits into the limit for future modifications. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172604 91177308-0d34-0410-b5e6-96231b3b80d8