[PATCH] D91693: [Support] Add reserve() method to the raw_ostream.

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 22 13:19:52 PST 2021


dblaikie accepted this revision.
dblaikie added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/unittests/Support/raw_ostream_test.cpp:462
+  raw_string_ostream OS(Str);
+  uint64_t CurrentPos = OS.tell();
+  OS.reserveExtraSpace(1000);
----------------
maybe make this a bit more interesting by having a non-zero value for tell() here, otherwise there's no difference between reserve using an absolute size, and reserve using a tell-relative value.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91693



More information about the llvm-commits mailing list