#include <Protocol.h>
◆ URIForFile()
lspserver::URIForFile::URIForFile |
( |
| ) |
|
|
default |
◆ canonicalize()
URIForFile lspserver::URIForFile::canonicalize |
( |
llvm::StringRef | AbsPath, |
|
|
llvm::StringRef | TUPath ) |
|
static |
Canonicalizes AbsPath
via URI.
File paths in URIForFile can come from index or local AST. Path from index goes through URI transformation, and the final path is resolved by URI scheme and could potentially be different from the original path. Hence, we do the same transformation for all paths.
Files can be referred to by several paths (e.g. in the presence of links). Which one we prefer may depend on where we're coming from. TUPath
is a hint, and should usually be the main entrypoint file we're processing.
Definition at line 43 of file lspserver/src/Protocol.cpp.
References lspserver::elog(), lspserver::URI::resolvePath(), and URIForFile().
◆ file()
llvm::StringRef lspserver::URIForFile::file |
( |
| ) |
const |
|
inline |
◆ fromURI()
llvm::Expected< URIForFile > lspserver::URIForFile::fromURI |
( |
const URI & | U, |
|
|
llvm::StringRef | HintPath ) |
|
static |
◆ operator bool()
lspserver::URIForFile::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ uri()
std::string lspserver::URIForFile::uri |
( |
| ) |
const |
|
inline |
◆ operator!=
◆ operator<
◆ operator==
The documentation for this struct was generated from the following files: