[PATCH] D78795: [Support] Add raw_ostream_iterator: ostream_iterator for raw_ostream.

Nicolas Guillemot via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 28 10:44:31 PDT 2020


nlguillemot updated this revision to Diff 260690.
nlguillemot marked an inline comment as done.
nlguillemot added a comment.

- Added some basic tests that use `raw_ostream_iterator` manually instead of through `std::copy`.
- Replaced manual calls to `flush()` in the test with an artificial scope (takes advantage of the fact that `~raw_string_ostream()` calls `flush()`)
- Added a test for `std::copy` with an empty range.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78795/new/

https://reviews.llvm.org/D78795

Files:
  llvm/include/llvm/Support/raw_ostream.h
  llvm/unittests/Support/raw_ostream_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78795.260690.patch
Type: text/x-patch
Size: 5414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200428/758f5a99/attachment.bin>


More information about the llvm-commits mailing list