[PATCH] D61630: [clangd] Oops, switchSourceHeader still needs to return a URI.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 7 01:28:09 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE360121: [clangd] Oops, switchSourceHeader still needs to return a URI. (authored by sammccall, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D61630?vs=198407&id=198409#toc
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61630/new/
https://reviews.llvm.org/D61630
Files:
clangd/ClangdLSPServer.cpp
clangd/ClangdLSPServer.h
Index: clangd/ClangdLSPServer.h
===================================================================
--- clangd/ClangdLSPServer.h
+++ clangd/ClangdLSPServer.h
@@ -85,7 +85,7 @@
Callback<std::vector<Location>>);
void onReference(const ReferenceParams &, Callback<std::vector<Location>>);
void onSwitchSourceHeader(const TextDocumentIdentifier &,
- Callback<llvm::Optional<std::string>>);
+ Callback<llvm::Optional<URIForFile>>);
void onDocumentHighlight(const TextDocumentPositionParams &,
Callback<std::vector<DocumentHighlight>>);
void onFileEvent(const DidChangeWatchedFilesParams &);
Index: clangd/ClangdLSPServer.cpp
===================================================================
--- clangd/ClangdLSPServer.cpp
+++ clangd/ClangdLSPServer.cpp
@@ -825,9 +825,9 @@
void ClangdLSPServer::onSwitchSourceHeader(
const TextDocumentIdentifier &Params,
- Callback<llvm::Optional<std::string>> Reply) {
+ Callback<llvm::Optional<URIForFile>> Reply) {
if (auto Result = Server->switchSourceHeader(Params.uri.file()))
- Reply(URI::resolvePath(*Result, Params.uri.file()));
+ Reply(URIForFile::canonicalize(*Result, Params.uri.file()));
else
Reply(llvm::None);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61630.198409.patch
Type: text/x-patch
Size: 1309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190507/e6825439/attachment.bin>
More information about the cfe-commits
mailing list