#include "clang/Basic/SourceMgrAdapter.h"
#include "clang/Basic/Diagnostic.h"
usingnamespaceclang;
void SourceMgrAdapter::handleDiag(const llvm::SMDiagnostic &Diag,
void *Context) { … }
SourceMgrAdapter::SourceMgrAdapter(SourceManager &SM,
DiagnosticsEngine &Diagnostics,
unsigned ErrorDiagID, unsigned WarningDiagID,
unsigned NoteDiagID,
OptionalFileEntryRef DefaultFile)
: … { … }
SourceMgrAdapter::~SourceMgrAdapter() { … }
SourceLocation SourceMgrAdapter::mapLocation(const llvm::SourceMgr &LLVMSrcMgr,
llvm::SMLoc Loc) { … }
SourceRange SourceMgrAdapter::mapRange(const llvm::SourceMgr &LLVMSrcMgr,
llvm::SMRange Range) { … }
void SourceMgrAdapter::handleDiag(const llvm::SMDiagnostic &Diag) { … }