aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.h
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2015-01-19 10:48:04 +0000
committerManuel Klimek <klimek@google.com>2015-01-19 10:48:04 +0000
commit7a95ce4399a988821ce2637fd37d1dac93bc2e31 (patch)
tree7a80163adcf03f622758ae6983003896516c58bb /llvm/lib/Bitcode/Reader/BitcodeReader.h
parent93756cff07ba03c7f0d805e02d68f6bf34a71397 (diff)
downloadllvm-7a95ce4399a988821ce2637fd37d1dac93bc2e31.zip
llvm-7a95ce4399a988821ce2637fd37d1dac93bc2e31.tar.gz
llvm-7a95ce4399a988821ce2637fd37d1dac93bc2e31.tar.bz2
Make clang-format work in emacs buffers with unicode characters.
Emacs functions by default use character positions; convert characters to offsets when handing parameters to clang-format and convert byte offsets we get from clang-format back to character positions. Reworked the code a bit so the 0-based to 1-based offset calculations are done in the same place where we do the multi-byte to offset mapping. llvm-svn: 226445
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.h')
0 files changed, 0 insertions, 0 deletions