This is an archive of the discontinued LLVM Phabricator instance.

[libcxx][NFC] tidy up strstreambuf::seekoff and strstreambuf::seekpos
ClosedPublic

Authored by DanielMcIntosh-IBM on Nov 1 2021, 1:34 PM.

Details

Summary

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

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

Diff Detail

Event Timeline

DanielMcIntosh-IBM requested review of this revision.Nov 1 2021, 1:34 PM
DanielMcIntosh-IBM created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptNov 1 2021, 1:34 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript

Change indentation to match the rest of the file

ldionne accepted this revision.Sep 8 2023, 5:47 AM
This revision is now accepted and ready to land.Sep 8 2023, 5:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 8 2023, 5:47 AM
This revision was landed with ongoing or failed builds.Sep 8 2023, 5:50 AM
This revision was automatically updated to reflect the committed changes.