diff options
author | Manuel Klimek <klimek@google.com> | 2013-08-29 15:21:40 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2013-08-29 15:21:40 +0000 |
commit | 31c85921b2080d9054542ec2631d857ca35fe1c0 (patch) | |
tree | 7f3982084d962956f3b1aae278773ba455455cd2 /lldb/source/Interpreter/OptionValueArray.cpp | |
parent | 81332632b1f6def9eeb2ed707d37f4b963ffc38a (diff) | |
download | bcm5719-llvm-31c85921b2080d9054542ec2631d857ca35fe1c0.tar.gz bcm5719-llvm-31c85921b2080d9054542ec2631d857ca35fe1c0.zip |
Fixes various problems with accounting for tabs in the original code.
We now count the original token's column directly when lexing the
tokens, where we already have all knowledge about where lines start.
Before this patch, formatting:
void f() {
\tg();
\th();
}
would incorrectly count the \t's as 1 character if only the line
containing h() was reformatted, and thus indent h() at offset 1.
llvm-svn: 189585
Diffstat (limited to 'lldb/source/Interpreter/OptionValueArray.cpp')
0 files changed, 0 insertions, 0 deletions