[clang-tools-extra] r367811 - [clangd] Fix error message with incorrect TextDocumentcontentChangeEvent.rangeLength
Sam McCall via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 01:14:13 PDT 2019
Author: sammccall
Date: Mon Aug 5 01:14:13 2019
New Revision: 367811
URL: http://llvm.org/viewvc/llvm-project?rev=367811&view=rev
Log:
[clangd] Fix error message with incorrect TextDocumentcontentChangeEvent.rangeLength
Modified:
clang-tools-extra/trunk/clangd/DraftStore.cpp
Modified: clang-tools-extra/trunk/clangd/DraftStore.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/DraftStore.cpp?rev=367811&r1=367810&r2=367811&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/DraftStore.cpp (original)
+++ clang-tools-extra/trunk/clangd/DraftStore.cpp Mon Aug 5 01:14:13 2019
@@ -90,7 +90,7 @@ llvm::Expected<std::string> DraftStore::
return llvm::make_error<llvm::StringError>(
llvm::formatv("Change's rangeLength ({0}) doesn't match the "
"computed range length ({1}).",
- *Change.rangeLength, *EndIndex - *StartIndex),
+ *Change.rangeLength, ComputedRangeLength),
llvm::errc::invalid_argument);
std::string NewContents;
More information about the cfe-commits
mailing list