clang-tools  7.0.0
Public Member Functions | Friends | List of all members
clang::clangd::URIForFile Struct Reference

#include <Protocol.h>

Public Member Functions

 URIForFile ()=default
 
 URIForFile (std::string AbsPath)
 
llvm::StringRef file () const
 Retrieves absolute path to the file. More...
 
 operator bool () const
 
std::string uri () const
 

Friends

bool operator== (const URIForFile &LHS, const URIForFile &RHS)
 
bool operator!= (const URIForFile &LHS, const URIForFile &RHS)
 
bool operator< (const URIForFile &LHS, const URIForFile &RHS)
 

Detailed Description

Definition at line 52 of file Protocol.h.

Constructor & Destructor Documentation

◆ URIForFile() [1/2]

clang::clangd::URIForFile::URIForFile ( )
default

◆ URIForFile() [2/2]

clang::clangd::URIForFile::URIForFile ( std::string  AbsPath)
explicit

Definition at line 28 of file Protocol.cpp.

References clang::clangd::File.

Member Function Documentation

◆ file()

llvm::StringRef clang::clangd::URIForFile::file ( ) const
inline

Retrieves absolute path to the file.

Definition at line 57 of file Protocol.h.

References clang::clangd::File.

◆ operator bool()

clang::clangd::URIForFile::operator bool ( ) const
inlineexplicit

Definition at line 59 of file Protocol.h.

References clang::clangd::File.

◆ uri()

std::string clang::clangd::URIForFile::uri ( ) const
inline

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const URIForFile LHS,
const URIForFile RHS 
)
friend

Definition at line 66 of file Protocol.h.

◆ operator<

bool operator< ( const URIForFile LHS,
const URIForFile RHS 
)
friend

Definition at line 70 of file Protocol.h.

◆ operator==

bool operator== ( const URIForFile LHS,
const URIForFile RHS 
)
friend

Definition at line 62 of file Protocol.h.


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