clang: clang::SourceMgrAdapter Class Reference (original) (raw)

An adapter that can be used to translate diagnostics from one or more llvm::SourceMgr instances to a ,. More...

#include "[clang/Basic/SourceMgrAdapter.h](SourceMgrAdapter%5F8h%5Fsource.html)"

Public Member Functions
SourceMgrAdapter (SourceManager &SM, DiagnosticsEngine &Diagnostics, unsigned ErrorDiagID, unsigned WarningDiagID, unsigned NoteDiagID, OptionalFileEntryRef DefaultFile=std::nullopt)
Create a new SourceMgr adaptor that maps to the given source manager and diagnostics engine.
~SourceMgrAdapter ()
SourceLocation mapLocation (const llvm::SourceMgr &LLVMSrcMgr, llvm::SMLoc Loc)
Map a source location in the given LLVM source manager to its corresponding location in the Clang source manager.
SourceRange mapRange (const llvm::SourceMgr &LLVMSrcMgr, llvm::SMRange Range)
Map a source range in the given LLVM source manager to its corresponding range in the Clang source manager.
void handleDiag (const llvm::SMDiagnostic &Diag)
Handle the given diagnostic from an LLVM source manager.
llvm::SourceMgr::DiagHandlerTy getDiagHandler ()
Retrieve the diagnostic handler to use with the underlying SourceMgr.
void * getDiagContext ()
Retrieve the context to use with the diagnostic handler produced by getDiagHandler().

An adapter that can be used to translate diagnostics from one or more llvm::SourceMgr instances to a ,.

Definition at line 30 of file SourceMgrAdapter.h.

Create a new SourceMgr adaptor that maps to the given source manager and diagnostics engine.

Definition at line 24 of file SourceMgrAdapter.cpp.

~SourceMgrAdapter()

SourceMgrAdapter::~SourceMgrAdapter ( )

getDiagContext()

void * clang::SourceMgrAdapter::getDiagContext ( ) inline

getDiagHandler()

llvm::SourceMgr::DiagHandlerTy clang::SourceMgrAdapter::getDiagHandler ( ) inline

Retrieve the diagnostic handler to use with the underlying SourceMgr.

Definition at line 74 of file SourceMgrAdapter.h.

handleDiag()

void SourceMgrAdapter::handleDiag ( const llvm::SMDiagnostic & Diag )

mapLocation()

SourceLocation SourceMgrAdapter::mapLocation ( const llvm::SourceMgr & LLVMSrcMgr,
llvm::SMLoc Loc
)

mapRange()

SourceRange SourceMgrAdapter::mapRange ( const llvm::SourceMgr & LLVMSrcMgr,
llvm::SMRange Range
)

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