Author: Kadir Cetinkaya Date: 2020-10-12T14:24:44+02:00 New Revision: 9407686687907fa2af24219e1d6e57787872bef8
URL: https://github.com/llvm/llvm-project/commit/9407686687907fa2af24219e1d6e57787872bef8 DIFF: https://github.com/llvm/llvm-project/commit/9407686687907fa2af24219e1d6e57787872bef8.diff LOG: [clangd][NFC] Fix formatting in ClangdLSPServer 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 9ed635c88e71..01f962ad5b48 100644 --- a/clang-tools-extra/clangd/ClangdLSPServer.cpp +++ b/clang-tools-extra/clangd/ClangdLSPServer.cpp @@ -1049,22 +1049,21 @@ void ClangdLSPServer::onCompletion(const CompletionParams &Params, vlog("ignored auto-triggered completion, preceding char did not match"); return Reply(CompletionList()); } - Server->codeComplete(Params.textDocument.uri.file(), Params.position, - Opts.CodeComplete, - [Reply = std::move(Reply), - this](llvm::Expected<CodeCompleteResult> List) mutable { - if (!List) - return Reply(List.takeError()); - CompletionList LSPList; - LSPList.isIncomplete = List->HasMore; - for (const auto &R : List->Completions) { - CompletionItem C = R.render(Opts.CodeComplete); - C.kind = adjustKindToCapability( - C.kind, SupportedCompletionItemKinds); - LSPList.items.push_back(std::move(C)); - } - return Reply(std::move(LSPList)); - }); + Server->codeComplete( + Params.textDocument.uri.file(), Params.position, Opts.CodeComplete, + [Reply = std::move(Reply), + this](llvm::Expected<CodeCompleteResult> List) mutable { + if (!List) + return Reply(List.takeError()); + CompletionList LSPList; + LSPList.isIncomplete = List->HasMore; + for (const auto &R : List->Completions) { + CompletionItem C = R.render(Opts.CodeComplete); + C.kind = adjustKindToCapability(C.kind, SupportedCompletionItemKinds); + LSPList.items.push_back(std::move(C)); + } + return Reply(std::move(LSPList)); + }); } void ClangdLSPServer::onSignatureHelp(const TextDocumentPositionParams &Params, _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits