summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-08-29 15:21:40 +0000
committerManuel Klimek <klimek@google.com>2013-08-29 15:21:40 +0000
commitc41e8198dc1f24a1c6d35046fc4d478546761648 (patch)
tree4f9473d859600ba3756aadfa99269b0a6d7e0bcc /lib/CodeGen/CodeGenFunction.cpp
parent263cea4485040bb590800ef3290448a81f0dbc4b (diff)
downloadclang-c41e8198dc1f24a1c6d35046fc4d478546761648.tar.gz
clang-c41e8198dc1f24a1c6d35046fc4d478546761648.tar.bz2
clang-c41e8198dc1f24a1c6d35046fc4d478546761648.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions