llvm/llvm/unittests/DebugInfo/LogicalView/WarningInternalTest.cpp

//===- llvm/unittest/DebugInfo/LogicalView/WarningInternalTest.cpp --------===//
//
// 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
//
//===----------------------------------------------------------------------===//

#include "llvm/DebugInfo/LogicalView/Core/LVLine.h"
#include "llvm/DebugInfo/LogicalView/Core/LVReader.h"
#include "llvm/DebugInfo/LogicalView/Core/LVScope.h"
#include "llvm/DebugInfo/LogicalView/Core/LVSymbol.h"
#include "llvm/DebugInfo/LogicalView/Core/LVType.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/ToolOutputFile.h"
#include "llvm/Testing/Support/Error.h"

#include "gtest/gtest.h"

usingnamespacellvm;
usingnamespacellvm::logicalview;

namespace {

class MyLocation : public LVLocation {};

// This code emulates the work done by the Readers when processing the
// binary files and the creation of the AddressToLine mapping is done
// automatically, using the text sections.
class MyAddressToLine {};

LVLine *MyAddressToLine::lineLowerBound(LVAddress Address) {}

LVLine *MyAddressToLine::lineUpperBound(LVAddress Address) {}

MyAddressToLine AddressToLine;

class ReaderTestWarningInternal : public LVReader {};

bool MyLocation::validateRanges() {}

// Map all logical lines with their addresses.
void ReaderTestWarningInternal::setMapping() {}

// Helper function to add a logical element to a given scope.
void ReaderTestWarningInternal::add(LVScope *Parent, LVElement *Child) {}

// Helper function to set the initial values for a given logical element.
void ReaderTestWarningInternal::set(LVElement *Element, StringRef Name,
                                    LVOffset Offset, uint32_t LineNumber,
                                    LVElement *Type) {}

// Helper function to set the initial values for a given logical location.
void ReaderTestWarningInternal::set(MyLocation *Location, LVLine *LowerLine,
                                    LVLine *UpperLine, LVAddress LowerAddress,
                                    LVAddress UpperAddress) {}

// Helper function to add a logical location to a logical symbol.
void ReaderTestWarningInternal::add(LVSymbol *Symbol, LVLine *LowerLine,
                                    LVLine *UpperLine) {}

// Create the logical elements.
void ReaderTestWarningInternal::createElements() {}

// Create the logical view adding the created logical elements.
void ReaderTestWarningInternal::addElements() {}

void ReaderTestWarningInternal::resolveElements() {}

// Set initial values to logical elements.
void ReaderTestWarningInternal::initElements() {}

// Check logical elements warnigs.
void ReaderTestWarningInternal::checkWarnings() {}

TEST(LogicalViewTest, WarningInternal) {}

} // namespace