nixd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lspserver::URIScheme Class Referenceabstract

#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
 
virtual llvm::Expected< URIuriFromAbsolutePath (llvm::StringRef AbsolutePath) const =0
 
virtual llvm::Expected< std::string > getIncludeSpelling (const URI &U) const
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~URIScheme()

virtual lspserver::URIScheme::~URIScheme ( )
virtualdefault

Member Function Documentation

◆ 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: