summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support/LineIteratorTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* LineIterator: Provide a variant that keeps blank linesJustin Bogner2014-09-171-9/+87
| | | | | | | | It isn't always useful to skip blank lines, as evidenced by the somewhat awkward use of line_iterator in llvm-cov. This adds a knob to control whether or not to skip blanks. llvm-svn: 217960
* Convert a few more cases of direct intialization of unique_ptrs from ↵David Blaikie2014-08-271-9/+9
| | | | | | | | MemoryBuffer::getMemBuffer to move initialization now that it returns by unique_ptr instead of raw pointer. Cleanup/improvements following r216583. llvm-svn: 216605
* Return a std::unique_ptr when creating a new MemoryBuffer.Rafael Espindola2014-08-271-7/+7
| | | | llvm-svn: 216583
* Replace OwningPtr<T> with std::unique_ptr<T>.Ahmed Charles2014-03-061-15/+15
| | | | | | | | | | This compiles with no changes to clang/lld/lldb with MSVC and includes overloads to various functions which are used by those projects and llvm which have OwningPtr's as parameters. This should allow out of tree projects some time to move. There are also no changes to libs/Target, which should help out of tree targets have time to move, if necessary. llvm-svn: 203083
* Introduce a simple line-by-line iterator type into the Support library.Chandler Carruth2013-12-271-0/+115
This is an iterator which you can build around a MemoryBuffer. It will iterate through the non-empty, non-comment lines of the buffer as a forward iterator. It should be small and reasonably fast (although it could be made much faster if anyone cares, I don't really...). This will be used to more simply support the text-based sample profile file format, and is largely based on the original patch by Diego. I've re-worked the style of it and separated it from the work of producing a MemoryBuffer from a file which both simplifies the interface and makes it easier to test. The style of the API follows the C++ standard naming conventions to fit in better with iterators in general, much like the Path and FileSystem interfaces follow standard-based naming conventions. llvm-svn: 198068
OpenPOWER on IntegriCloud