LLVM: llvm::lsp::URIForFile Class Reference (original) (raw)

URI in "file" scheme for a file. More...

#include "[llvm/Support/LSP/Protocol.h](Protocol%5F8h%5Fsource.html)"

Public Member Functions
URIForFile ()=default
StringRef file () const
Returns the absolute path to the file.
StringRef uri () const
Returns the original uri of the file.
StringRef scheme () const
Return the scheme of the uri.
operator bool () const
Static Public Member Functions
static llvm::Expected< URIForFile > fromURI (StringRef uri)
Try to build a [URIForFile](classllvm%5F1%5F1lsp%5F1%5F1URIForFile.html "URI in "file" scheme for a file.") from the given URI string.
static llvm::Expected< URIForFile > fromFile (StringRef absoluteFilepath, StringRef scheme="file")
Try to build a [URIForFile](classllvm%5F1%5F1lsp%5F1%5F1URIForFile.html "URI in "file" scheme for a file.") from the given absolute file path and optional scheme.
static void registerSupportedScheme (StringRef scheme)
Register a supported URI scheme.

URI in "file" scheme for a file.

Definition at line 102 of file Protocol.h.

llvm::lsp::URIForFile::URIForFile ( ) default

file()

StringRef llvm::lsp::URIForFile::file ( ) const inline

Returns the absolute path to the file.

Definition at line 115 of file Protocol.h.

fromFile()

fromURI()

operator bool()

llvm::lsp::URIForFile::operator bool ( ) const inlineexplicit

registerSupportedScheme()

void URIForFile::registerSupportedScheme ( StringRef scheme) static

scheme()

uri()

StringRef llvm::lsp::URIForFile::uri ( ) const inline

operator!=

operator<

operator==


The documentation for this class was generated from the following files: