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)
commitd6a007803925164fdb40fd4efd647e9d32b2d67b
tree68134461bcf6f2c1145b1dabd67de2287da87362
parentbefba52f89a70f8cf1b11f57063c7a52fe886188
clang-format: Correctly calculate affected ranges when sorting #includes.

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

llvm-svn: 280165
clang/lib/Format/Format.cpp
clang/unittests/Format/SortIncludesTest.cpp