|
clang-tools 22.0.0git
|
This class exposes ClangdServer's capabilities via Language Server Protocol. More...
#include <ClangdLSPServer.h>
Classes | |
| class | MessageHandler |
| struct | Options |
Public Member Functions | |
| ClangdLSPServer (Transport &Transp, const ThreadsafeFS &TFS, const ClangdLSPServer::Options &Opts) | |
| ~ClangdLSPServer () | |
| The destructor blocks on any outstanding background tasks. | |
| ClangdLSPServer (const ClangdLSPServer &other)=delete | |
| ClangdLSPServer & | operator= (const ClangdLSPServer &other)=delete |
| bool | run () |
| Run LSP server loop, communicating with the Transport provided in the constructor. | |
| void | profile (MemoryTree &MT) const |
| Profiles resource-usage. | |
This class exposes ClangdServer's capabilities via Language Server Protocol.
MessageHandler binds the implemented LSP methods (e.g. onInitialize) to corresponding JSON-RPC methods ("initialize"). The server also supports $/cancelRequest (MessageHandler provides this).
Definition at line 39 of file ClangdLSPServer.h.
| clang::clangd::ClangdLSPServer::ClangdLSPServer | ( | Transport & | Transp, |
| const ThreadsafeFS & | TFS, | ||
| const ClangdLSPServer::Options & | Opts ) |
Definition at line 1656 of file ClangdLSPServer.cpp.
References ClangdLSPServer(), and clang::clangd::LSPBinder::method().
Referenced by ClangdLSPServer(), ClangdLSPServer(), clang::clangd::ClangdLSPServer::MessageHandler::MessageHandler(), and operator=().
| clang::clangd::ClangdLSPServer::~ClangdLSPServer | ( | ) |
The destructor blocks on any outstanding background tasks.
Definition at line 1746 of file ClangdLSPServer.cpp.
|
delete |
References ClangdLSPServer().
|
delete |
References ClangdLSPServer(), and clang::clangd::File.
| void clang::clangd::ClangdLSPServer::profile | ( | MemoryTree & | MT | ) | const |
Profiles resource-usage.
Definition at line 1764 of file ClangdLSPServer.cpp.
References clang::clangd::MemoryTree::child().
| bool clang::clangd::ClangdLSPServer::run | ( | ) |
Run LSP server loop, communicating with the Transport provided in the constructor.
This method must not be executed more than once.
Definition at line 1753 of file ClangdLSPServer.cpp.
References clang::clangd::elog().
Referenced by clang::clangd::clangdMain(), and LLVMFuzzerTestOneInput().