MLIR 22.0.0git
mlir::lsp::SourceMgrInclude Struct Reference

This class represents a single include within a root file. More...

#include "mlir/Tools/lsp-server-support/SourceMgrUtils.h"

Public Member Functions

 SourceMgrInclude (const llvm::lsp::URIForFile &uri, const llvm::lsp::Range &range)
llvm::lsp::Hover buildHover () const
 Build a hover for the current include file.

Public Attributes

llvm::lsp::URIForFile uri
 The URI of the file that is included.
llvm::lsp::Range range
 The range of the include directive.

Detailed Description

This class represents a single include within a root file.

Definition at line 48 of file SourceMgrUtils.h.

Constructor & Destructor Documentation

◆ SourceMgrInclude()

mlir::lsp::SourceMgrInclude::SourceMgrInclude ( const llvm::lsp::URIForFile & uri,
const llvm::lsp::Range & range )
inline

Definition at line 49 of file SourceMgrUtils.h.

References range, and uri.

Member Function Documentation

◆ buildHover()

Hover SourceMgrInclude::buildHover ( ) const

Build a hover for the current include file.

Definition at line 127 of file SourceMgrUtils.cpp.

References range, and uri.

Member Data Documentation

◆ range

llvm::lsp::Range mlir::lsp::SourceMgrInclude::range

The range of the include directive.

Definition at line 60 of file SourceMgrUtils.h.

Referenced by buildHover(), and SourceMgrInclude().

◆ uri

llvm::lsp::URIForFile mlir::lsp::SourceMgrInclude::uri

The URI of the file that is included.

Definition at line 57 of file SourceMgrUtils.h.

Referenced by buildHover(), and SourceMgrInclude().


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