Home
last modified time | relevance | path

Searched refs:BufData (Results 1 – 2 of 2) sorted by relevance

/external/llvm/unittests/Support/
DMemoryBufferTest.cpp84 const char *BufData = MB.get()->getBufferStart(); in TEST_F() local
85 EXPECT_EQ('f', BufData[4095]); in TEST_F()
86 EXPECT_EQ('\0', BufData[4096]); in TEST_F()
158 StringRef BufData = Buf.get()->getBuffer(); in testGetOpenFileSlice() local
159 EXPECT_EQ(BufData.size(), 40000U); in testGetOpenFileSlice()
160 EXPECT_EQ(BufData[0], '0'); in testGetOpenFileSlice()
161 EXPECT_EQ(BufData[9], '9'); in testGetOpenFileSlice()
204 StringRef BufData = MB.get()->getBuffer(); in TEST_F() local
205 EXPECT_TRUE(BufData.substr(0x0000,8).equals("12345678")); in TEST_F()
206 EXPECT_TRUE(BufData.substr(0x0FF8,8).equals("12345678")); in TEST_F()
[all …]
/external/clang/lib/Frontend/
DTextDiagnostic.cpp1093 StringRef BufData = SM.getBufferData(FID, &Invalid); in emitSnippetAndCaret() local
1097 const char *BufStart = BufData.data(); in emitSnippetAndCaret()
1098 const char *BufEnd = BufStart + BufData.size(); in emitSnippetAndCaret()