Home
last modified time | relevance | path

Searched refs:BufData (Results 1 – 3 of 3) 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/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DMemoryBufferTest.cpp87 const char *BufData = MB.get()->getBufferStart(); in TEST_F() local
88 EXPECT_EQ('f', BufData[4095]); in TEST_F()
89 EXPECT_EQ('\0', BufData[4096]); in TEST_F()
162 StringRef BufData = Buf.get()->getBuffer(); in testGetOpenFileSlice() local
163 EXPECT_EQ(BufData.size(), 40000U); in testGetOpenFileSlice()
164 EXPECT_EQ(BufData[0], '0'); in testGetOpenFileSlice()
165 EXPECT_EQ(BufData[9], '9'); in testGetOpenFileSlice()
209 StringRef BufData = MB.get()->getBuffer(); in TEST_F() local
210 EXPECT_TRUE(BufData.substr(0x0000,8).equals("12345678")); in TEST_F()
211 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()