llvm/clang/lib/Basic/SourceMgrAdapter.cpp

//=== SourceMgrAdapter.cpp - SourceMgr to SourceManager Adapter -----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file implements the adapter that maps diagnostics from llvm::SourceMgr
// to Clang's SourceManager.
//
//===----------------------------------------------------------------------===//

#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) {}