add a new API seek to set the Cursor to a new position.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/Support/DataExtractor.h | ||
---|---|---|
73 | Perhaps add another sentence saying "This does not impact the error state." | |
llvm/unittests/Support/DataExtractorTest.cpp | ||
181 | I think you can simplify this testing: Cursor doesn't depend on DataExtractor, so you can just instantiate a Cursor and then call seek on it a couple of times to show what happens, like the following: Cursor C(5); C.seek(3); EXPECT_EQ(3u, C.tell()); C.seek(8); EXPECT_EQ(8u, C.tell()); This is different to tell, where reading data impacts the tell location. |
Perhaps add another sentence saying "This does not impact the error state."