llvm/llvm/unittests/Support/SourceMgrTest.cpp

//===- unittests/Support/SourceMgrTest.cpp - SourceMgr tests --------------===//
//
// 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/Support/SourceMgr.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/raw_ostream.h"
#include "gtest/gtest.h"

usingnamespacellvm;

namespace {

class SourceMgrTest : public testing::Test {};

} // unnamed namespace

TEST_F(SourceMgrTest, BasicError) {}

TEST_F(SourceMgrTest, BasicWarning) {}

TEST_F(SourceMgrTest, BasicRemark) {}

TEST_F(SourceMgrTest, BasicNote) {}

TEST_F(SourceMgrTest, LocationAtEndOfLine) {}

TEST_F(SourceMgrTest, LocationAtNewline) {}

TEST_F(SourceMgrTest, LocationAtEmptyBuffer) {}

TEST_F(SourceMgrTest, LocationJustOnSoleNewline) {}

TEST_F(SourceMgrTest, LocationJustAfterSoleNewline) {}

TEST_F(SourceMgrTest, LocationJustAfterNonNewline) {}

TEST_F(SourceMgrTest, LocationOnFirstLineOfMultiline) {}

TEST_F(SourceMgrTest, LocationOnEOLOfFirstLineOfMultiline) {}

TEST_F(SourceMgrTest, LocationOnSecondLineOfMultiline) {}

TEST_F(SourceMgrTest, LocationOnSecondLineOfMultilineNoSecondEOL) {}

TEST_F(SourceMgrTest, LocationOnEOLOfSecondSecondLineOfMultiline) {}

#define STRING_LITERAL_253_BYTES

//===----------------------------------------------------------------------===//
// 255-byte buffer tests
//===----------------------------------------------------------------------===//

TEST_F(SourceMgrTest, LocationBeforeEndOf255ByteBuffer) {}

TEST_F(SourceMgrTest, LocationAtEndOf255ByteBuffer) {}

TEST_F(SourceMgrTest, LocationPastEndOf255ByteBuffer) {}

TEST_F(SourceMgrTest, LocationBeforeEndOf255ByteBufferEndingInNewline) {}

TEST_F(SourceMgrTest, LocationAtEndOf255ByteBufferEndingInNewline) {}

TEST_F(SourceMgrTest, LocationPastEndOf255ByteBufferEndingInNewline) {}

//===----------------------------------------------------------------------===//
// 256-byte buffer tests
//===----------------------------------------------------------------------===//

TEST_F(SourceMgrTest, LocationBeforeEndOf256ByteBuffer) {}

TEST_F(SourceMgrTest, LocationAtEndOf256ByteBuffer) {}

TEST_F(SourceMgrTest, LocationPastEndOf256ByteBuffer) {}

TEST_F(SourceMgrTest, LocationBeforeEndOf256ByteBufferEndingInNewline) {}

TEST_F(SourceMgrTest, LocationAtEndOf256ByteBufferEndingInNewline) {}

TEST_F(SourceMgrTest, LocationPastEndOf256ByteBufferEndingInNewline) {}

//===----------------------------------------------------------------------===//
// 257-byte buffer tests
//===----------------------------------------------------------------------===//

TEST_F(SourceMgrTest, LocationBeforeEndOf257ByteBuffer) {}

TEST_F(SourceMgrTest, LocationAtEndOf257ByteBuffer) {}

TEST_F(SourceMgrTest, LocationPastEndOf257ByteBuffer) {}

TEST_F(SourceMgrTest, LocationBeforeEndOf257ByteBufferEndingInNewline) {}

TEST_F(SourceMgrTest, LocationAtEndOf257ByteBufferEndingInNewline) {}

TEST_F(SourceMgrTest, LocationPastEndOf257ByteBufferEndingInNewline) {}

TEST_F(SourceMgrTest, BasicRange) {}

TEST_F(SourceMgrTest, RangeWithTab) {}

TEST_F(SourceMgrTest, MultiLineRange) {}

TEST_F(SourceMgrTest, MultipleRanges) {}

TEST_F(SourceMgrTest, OverlappingRanges) {}

TEST_F(SourceMgrTest, BasicFixit) {}

TEST_F(SourceMgrTest, FixitForTab) {}

TEST_F(SourceMgrTest, PrintWithoutLoc) {}