Lines Matching defs:Buffer
20 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("line 1\n"
24 line_iterator I = line_iterator(*Buffer), E;
44 std::unique_ptr<MemoryBuffer> Buffer(
53 line_iterator I = line_iterator(*Buffer, true, '#'), E;
73 std::unique_ptr<MemoryBuffer> Buffer(
83 line_iterator I = line_iterator(*Buffer, false, '#'), E;
110 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n\n"
116 line_iterator I = line_iterator(*Buffer), E;
133 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("\n\n"
138 line_iterator I = line_iterator(*Buffer, false), E;
170 std::unique_ptr<MemoryBuffer> Buffer = MemoryBuffer::getMemBuffer("");
171 EXPECT_TRUE(line_iterator(*Buffer).is_at_eof());
172 EXPECT_EQ(line_iterator(), line_iterator(*Buffer));
173 EXPECT_TRUE(line_iterator(*Buffer, false).is_at_eof());
174 EXPECT_EQ(line_iterator(), line_iterator(*Buffer, false));
176 Buffer = MemoryBuffer::getMemBuffer("\n\n\n");
177 EXPECT_TRUE(line_iterator(*Buffer).is_at_eof());
178 EXPECT_EQ(line_iterator(), line_iterator(*Buffer));
180 Buffer = MemoryBuffer::getMemBuffer("# foo\n"
183 EXPECT_TRUE(line_iterator(*Buffer, true, '#').is_at_eof());
184 EXPECT_EQ(line_iterator(), line_iterator(*Buffer, true, '#'));
186 Buffer = MemoryBuffer::getMemBuffer("\n"
189 EXPECT_TRUE(line_iterator(*Buffer, true, '#').is_at_eof());
190 EXPECT_EQ(line_iterator(), line_iterator(*Buffer, true, '#'));