#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 { … };
}
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 …
TEST_F(SourceMgrTest, LocationBeforeEndOf255ByteBuffer) { … }
TEST_F(SourceMgrTest, LocationAtEndOf255ByteBuffer) { … }
TEST_F(SourceMgrTest, LocationPastEndOf255ByteBuffer) { … }
TEST_F(SourceMgrTest, LocationBeforeEndOf255ByteBufferEndingInNewline) { … }
TEST_F(SourceMgrTest, LocationAtEndOf255ByteBufferEndingInNewline) { … }
TEST_F(SourceMgrTest, LocationPastEndOf255ByteBufferEndingInNewline) { … }
TEST_F(SourceMgrTest, LocationBeforeEndOf256ByteBuffer) { … }
TEST_F(SourceMgrTest, LocationAtEndOf256ByteBuffer) { … }
TEST_F(SourceMgrTest, LocationPastEndOf256ByteBuffer) { … }
TEST_F(SourceMgrTest, LocationBeforeEndOf256ByteBufferEndingInNewline) { … }
TEST_F(SourceMgrTest, LocationAtEndOf256ByteBufferEndingInNewline) { … }
TEST_F(SourceMgrTest, LocationPastEndOf256ByteBufferEndingInNewline) { … }
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) { … }