[Lldb-commits] [PATCH] D110496: [llvm] [ADT] Add a range/iterator-based split()
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sun Sep 26 06:07:08 PDT 2021
mgorny created this revision.
mgorny added reviewers: labath, teemperor, krytarowski, JDevlieghere, emaste, lattner, rriddle.
Herald added subscribers: dexonsmith, hiraditya.
mgorny requested review of this revision.
Herald added a project: LLVM.
Add a llvm::split() implementation that can be used via range-for loop,
e.g.:
for (StringRef x : llvm::split("foo,bar,baz", ','))
...
The implementation uses an additional SplittingIterator class that
uses StringRef::split() internally.
https://reviews.llvm.org/D110496
Files:
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
llvm/include/llvm/ADT/StringExtras.h
llvm/lib/IR/DataLayout.cpp
llvm/unittests/ADT/StringExtrasTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110496.375093.patch
Type: text/x-patch
Size: 9115 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210926/c4c89ec2/attachment.bin>
More information about the lldb-commits
mailing list