This is an archive of the discontinued LLVM Phabricator instance.

[StringView] remove consumeFront
ClosedPublic

Authored by nickdesaulniers on Apr 14 2023, 1:40 PM.

Details

Summary

Towards converting our use of llvm::StringView to std::string_view,
remove a method that std::string_view doesn't have.

This could be moved to the nascent llvm/ADT/StringViewExtras.h, but the
use is highly localized to one TU. Move this to be a static function
there.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2023, 1:40 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
nickdesaulniers requested review of this revision.Apr 14 2023, 1:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2023, 1:40 PM
MaskRay accepted this revision.Apr 14 2023, 3:24 PM
This revision is now accepted and ready to land.Apr 14 2023, 3:24 PM
This revision was landed with ongoing or failed builds.Apr 14 2023, 3:34 PM
This revision was automatically updated to reflect the committed changes.