[libcxx-commits] [PATCH] D112956: [libcxx][NFC] tidy up strstreambuf::seekoff and strstreambuf::seekpos

Daniel McIntosh via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Nov 1 13:34:53 PDT 2021


DanielMcIntosh-IBM created this revision.
DanielMcIntosh-IBM added reviewers: mclow.lists, ldionne.
DanielMcIntosh-IBM requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

Should be the same logic, but hopefully easier to read this way.

Gets rid of some superfluous state variables, and uses early returns.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112956

Files:
  libcxx/src/strstream.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112956.383873.patch
Type: text/x-patch
Size: 5183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211101/47438277/attachment.bin>


More information about the libcxx-commits mailing list