Author: Kadir Cetinkaya Date: 2021-12-21T17:06:59+01:00 New Revision: 1a929525e86a20d0b3455a400d0dbed40b325a13
URL: https://github.com/llvm/llvm-project/commit/1a929525e86a20d0b3455a400d0dbed40b325a13 DIFF: https://github.com/llvm/llvm-project/commit/1a929525e86a20d0b3455a400d0dbed40b325a13.diff LOG: [clangd] Return error for textdocument/outgoingCalls rather than success Added: Modified: clang-tools-extra/clangd/ClangdLSPServer.cpp Removed: ################################################################################ diff --git a/clang-tools-extra/clangd/ClangdLSPServer.cpp b/clang-tools-extra/clangd/ClangdLSPServer.cpp index 93382466160c..18539877ec97 100644 --- a/clang-tools-extra/clangd/ClangdLSPServer.cpp +++ b/clang-tools-extra/clangd/ClangdLSPServer.cpp @@ -1208,13 +1208,6 @@ void ClangdLSPServer::onCallHierarchyIncomingCalls( Server->incomingCalls(Params.item, std::move(Reply)); } -void ClangdLSPServer::onCallHierarchyOutgoingCalls( - const CallHierarchyOutgoingCallsParams &Params, - Callback<std::vector<CallHierarchyOutgoingCall>> Reply) { - // FIXME: To be implemented. - Reply(std::vector<CallHierarchyOutgoingCall>{}); -} - void ClangdLSPServer::onInlayHints(const InlayHintsParams &Params, Callback<std::vector<InlayHint>> Reply) { Server->inlayHints(Params.textDocument.uri.file(), std::move(Reply)); @@ -1478,7 +1471,6 @@ void ClangdLSPServer::bindMethods(LSPBinder &Bind, Bind.method("typeHierarchy/resolve", this, &ClangdLSPServer::onResolveTypeHierarchy); Bind.method("textDocument/prepareCallHierarchy", this, &ClangdLSPServer::onPrepareCallHierarchy); Bind.method("callHierarchy/incomingCalls", this, &ClangdLSPServer::onCallHierarchyIncomingCalls); - Bind.method("callHierarchy/outgoingCalls", this, &ClangdLSPServer::onCallHierarchyOutgoingCalls); Bind.method("textDocument/selectionRange", this, &ClangdLSPServer::onSelectionRange); Bind.method("textDocument/documentLink", this, &ClangdLSPServer::onDocumentLink); Bind.method("textDocument/semanticTokens/full", this, &ClangdLSPServer::onSemanticTokens); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits