#include <URI.h>
URIScheme is an extension point for teaching clangd to recognize a custom URI scheme. This is expected to be implemented and exposed via the URISchemeRegistry.
Definition at line 98 of file URI.h.
◆ ~URIScheme()
virtual lspserver::URIScheme::~URIScheme |
( |
| ) |
|
|
virtualdefault |
◆ getAbsolutePath()
virtual llvm::Expected< std::string > lspserver::URIScheme::getAbsolutePath |
( |
llvm::StringRef | Authority, |
|
|
llvm::StringRef | Body, |
|
|
llvm::StringRef | HintPath ) const |
|
pure virtual |
Returns the absolute path of the file corresponding to the URI authority+body in the file system. See URI::resolve for semantics of HintPath
.
◆ getIncludeSpelling()
virtual llvm::Expected< std::string > lspserver::URIScheme::getIncludeSpelling |
( |
const URI & | U | ) |
const |
|
inlinevirtual |
Returns the include path of the file (e.g. <path>, "path"), which can be #included directly. See URI::includeSpelling for details.
Definition at line 114 of file URI.h.
◆ uriFromAbsolutePath()
virtual llvm::Expected< URI > lspserver::URIScheme::uriFromAbsolutePath |
( |
llvm::StringRef | AbsolutePath | ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: