clang-tools
11.0.0
|
Functions | |
std::unique_ptr< clangd::SymbolIndex > | getClient (llvm::StringRef Address, llvm::StringRef IndexRoot) |
Returns an SymbolIndex client that passes requests to remote index located at Address . More... | |
clangd::FuzzyFindRequest | fromProtobuf (const FuzzyFindRequest *Request, llvm::StringRef IndexRoot) |
llvm::Optional< clangd::Symbol > | fromProtobuf (const Symbol &Message, llvm::UniqueStringSaver *Strings, llvm::StringRef IndexRoot) |
llvm::Optional< clangd::Ref > | fromProtobuf (const Ref &Message, llvm::UniqueStringSaver *Strings, llvm::StringRef IndexRoot) |
LookupRequest | toProtobuf (const clangd::LookupRequest &From) |
FuzzyFindRequest | toProtobuf (const clangd::FuzzyFindRequest &From, llvm::StringRef IndexRoot) |
RefsRequest | toProtobuf (const clangd::RefsRequest &From) |
Symbol | toProtobuf (const clangd::Symbol &From, llvm::StringRef IndexRoot) |
Ref | toProtobuf (const clangd::Ref &From, llvm::StringRef IndexRoot) |
llvm::Optional< std::string > | relativePathToURI (llvm::StringRef RelativePath, llvm::StringRef IndexRoot) |
Translates RelativePath into the absolute path and builds URI for the user machine. More... | |
llvm::Optional< std::string > | uriToRelativePath (llvm::StringRef URI, llvm::StringRef IndexRoot) |
Translates a URI from the server's backing index to a relative path suitable to send over the wire to the client. More... | |
clangd::FuzzyFindRequest clang::clangd::remote::fromProtobuf | ( | const FuzzyFindRequest * | Request, |
llvm::StringRef | IndexRoot | ||
) |
Definition at line 126 of file Marshalling.cpp.
llvm::Optional< clangd::Ref > clang::clangd::remote::fromProtobuf | ( | const Ref & | Message, |
llvm::UniqueStringSaver * | Strings, | ||
llvm::StringRef | IndexRoot | ||
) |
Definition at line 192 of file Marshalling.cpp.
References clang::clangd::elog(), clang::tidy::bugprone::Message, and clang::clangd::None.
llvm::Optional< clangd::Symbol > clang::clangd::remote::fromProtobuf | ( | const Symbol & | Message, |
llvm::UniqueStringSaver * | Strings, | ||
llvm::StringRef | IndexRoot | ||
) |
Definition at line 146 of file Marshalling.cpp.
References clang::clangd::elog(), clang::tidy::bugprone::Message, and clang::clangd::None.
std::unique_ptr< clangd::SymbolIndex > clang::clangd::remote::getClient | ( | llvm::StringRef | Address, |
llvm::StringRef | IndexRoot | ||
) |
Returns an SymbolIndex client that passes requests to remote index located at Address
.
The client allows synchronous RPC calls. IndexRoot
is an absolute path on the local machine to the source tree described by the remote index. Paths returned by the index will be treated as relative to this directory.
This method attempts to resolve the address and establish the connection.
Definition at line 115 of file Client.cpp.
llvm::Optional< std::string > clang::clangd::remote::relativePathToURI | ( | llvm::StringRef | RelativePath, |
llvm::StringRef | IndexRoot | ||
) |
Translates RelativePath
into the absolute path and builds URI for the user machine.
This translation happens on the client side with the RelativePath
received from remote index server and IndexRoot
is provided by the client.
Definition at line 289 of file Marshalling.cpp.
References clang::clangd::elog(), and clang::clangd::None.
FuzzyFindRequest clang::clangd::remote::toProtobuf | ( | const clangd::FuzzyFindRequest & | From, |
llvm::StringRef | IndexRoot | ||
) |
Definition at line 215 of file Marshalling.cpp.
References clang::clangd::FuzzyFindRequest::AnyScope, clang::clangd::FuzzyFindRequest::Limit, clang::clangd::FuzzyFindRequest::PreferredTypes, clang::clangd::FuzzyFindRequest::ProximityPaths, clang::clangd::FuzzyFindRequest::Query, clang::clangd::FuzzyFindRequest::RestrictForCodeCompletion, clang::clangd::FuzzyFindRequest::Scopes, and Type.
LookupRequest clang::clangd::remote::toProtobuf | ( | const clangd::LookupRequest & | From | ) |
Definition at line 208 of file Marshalling.cpp.
References clang::clangd::LookupRequest::IDs, and clang::clangd::SymbolID::str().
Ref clang::clangd::remote::toProtobuf | ( | const clangd::Ref & | From, |
llvm::StringRef | IndexRoot | ||
) |
Definition at line 280 of file Marshalling.cpp.
RefsRequest clang::clangd::remote::toProtobuf | ( | const clangd::RefsRequest & | From | ) |
Definition at line 236 of file Marshalling.cpp.
Symbol clang::clangd::remote::toProtobuf | ( | const clangd::Symbol & | From, |
llvm::StringRef | IndexRoot | ||
) |
Definition at line 246 of file Marshalling.cpp.
llvm::Optional< std::string > clang::clangd::remote::uriToRelativePath | ( | llvm::StringRef | URI, |
llvm::StringRef | IndexRoot | ||
) |
Translates a URI from the server's backing index to a relative path suitable to send over the wire to the client.
Definition at line 313 of file Marshalling.cpp.
References clang::clangd::elog(), clang::clangd::None, clang::clangd::URI::parse(), and clang::clangd::URI::scheme().