clang-tools 20.0.0git
|
URIScheme is an extension point for teaching clangd to recognize a custom URI scheme. More...
#include <URI.h>
Public Member Functions | |
virtual | ~URIScheme ()=default |
virtual llvm::Expected< std::string > | getAbsolutePath (llvm::StringRef Authority, llvm::StringRef Body, llvm::StringRef HintPath) const =0 |
Returns the absolute path of the file corresponding to the URI authority+body in the file system. | |
virtual llvm::Expected< URI > | uriFromAbsolutePath (llvm::StringRef AbsolutePath) const =0 |
virtual llvm::Expected< std::string > | getIncludeSpelling (const URI &U) const |
Returns the include path of the file (e.g. | |
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.
|
virtualdefault |
|
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
.
Implemented in clang::clangd::TestScheme.
|
inlinevirtual |
Returns the include path of the file (e.g.
<path>, "path"), which can be #included directly. See URI::includeSpelling for details.
|
pure virtual |
Implemented in clang::clangd::TestScheme.