MLIR  19.0.0git
Classes | Namespaces | Functions
SourceMgrUtils.h File Reference
#include "mlir/Tools/lsp-server-support/Protocol.h"
#include "llvm/Support/SourceMgr.h"
#include <optional>

Go to the source code of this file.

Classes

struct  mlir::lsp::SourceMgrInclude
 This class represents a single include within a root file. More...
 

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::lsp
 

Functions

SMRange mlir::lsp::convertTokenLocToRange (SMLoc loc, StringRef identifierChars="")
 Returns the range of a lexical token given a SMLoc corresponding to the start of an token location. More...
 
std::optional< std::string > mlir::lsp::extractSourceDocComment (llvm::SourceMgr &sourceMgr, SMLoc loc)
 Extract a documentation comment for the given location within the source manager. More...
 
bool mlir::lsp::contains (SMRange range, SMLoc loc)
 Returns true if the given range contains the given source location. More...
 
void mlir::lsp::gatherIncludeFiles (llvm::SourceMgr &sourceMgr, SmallVectorImpl< SourceMgrInclude > &includes)
 Given a source manager, gather all of the processed include files. More...