clang-tools 20.0.0git
|
PathMappings are a collection of paired client and server paths. More...
#include <PathMapping.h>
Public Types | |
enum class | Direction { ClientToServer , ServerToClient } |
Public Attributes | |
std::string | ClientPath |
std::string | ServerPath |
PathMappings are a collection of paired client and server paths.
These pairs are used to alter file:// URIs appearing in inbound and outbound LSP messages, as the client's environment may have source files or dependencies at different locations than the server. Therefore, both paths are stored as they appear in file URI bodies, e.g. /usr/include or /C:/config
For example, if the mappings were {{"/home/user", "/workarea"}}, then a client-to-server LSP message would have file:///home/user/foo.cpp remapped to file:///workarea/foo.cpp, and the same would happen for replies (in the opposite order).
Definition at line 37 of file PathMapping.h.
|
strong |
Enumerator | |
---|---|
ClientToServer | |
ServerToClient |
Definition at line 40 of file PathMapping.h.
std::string clang::clangd::PathMapping::ClientPath |
Definition at line 38 of file PathMapping.h.
std::string clang::clangd::PathMapping::ServerPath |
Definition at line 39 of file PathMapping.h.