]> granicus.if.org Git - clang/commit
clang-format: Correctly calculate affected ranges when sorting #includes.
authorDaniel Jasper <djasper@google.com>
Tue, 30 Aug 2016 21:33:41 +0000 (21:33 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 30 Aug 2016 21:33:41 +0000 (21:33 +0000)
commite12937859f69f56f7674fcdf8075cb34f87eca07
treeaac1764b13af13c28f027a311d5e4affb8c6fe24
parentb69026bf2c3fabafe17600662c9824aed7ce7b5c
clang-format: Correctly calculate affected ranges when sorting #includes.

affectedRanges takes a start and an end offset, not offset and length.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280165 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/Format.cpp
unittests/Format/SortIncludesTest.cpp