diff options
author | Daniel Jasper <djasper@google.com> | 2015-11-23 08:33:48 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-11-23 08:33:48 +0000 |
commit | 3fed94525cf27fce7a6c0497721036b6f15a15a4 (patch) | |
tree | 03c2532c3b8694053217ee24832a58560043be25 /llvm/unittests/Support/MathExtrasTest.cpp | |
parent | 2f8d345adc8b0011139ecc13fb96c5f992cb2593 (diff) | |
download | llvm-3fed94525cf27fce7a6c0497721036b6f15a15a4.zip llvm-3fed94525cf27fce7a6c0497721036b6f15a15a4.tar.gz llvm-3fed94525cf27fce7a6c0497721036b6f15a15a4.tar.bz2 |
Fix calculation of shifted cursor/code positions. Specifically support
the case where a specific range is replaced by new text. Previously,
the calculation would shift any position from within a replaced region
to the first character after the region. This is undersirable, e.g. for
clang-format's include sorting.
llvm-svn: 253859
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions