diff options
author | Alex Langford <alangford@apple.com> | 2023-05-24 19:42:15 -0700 |
---|---|---|
committer | Alex Langford <alangford@apple.com> | 2023-05-30 15:13:17 -0700 |
commit | 57154a63a07f732552968141136279350bcdf99d (patch) | |
tree | d1b5a58e5fb343612c551be6e8dda8ee499f5f7d /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 454163354b0b2755746f9b3c32059adff4d34bd3 (diff) | |
download | llvm-57154a63a07f732552968141136279350bcdf99d.zip llvm-57154a63a07f732552968141136279350bcdf99d.tar.gz llvm-57154a63a07f732552968141136279350bcdf99d.tar.bz2 |
[lldb] Introduce FileSpec::GetComponents
This patch introduces FileSpec::GetComponents, a method that splits a
FileSpec's path into its individual components. For example, given
/foo/bar/baz, you'll get back a vector of strings {"foo", "bar", baz"}.
The motivation here is to reduce the use of
`FileSpec::RemoveLastPathComponent`. Mutating a FileSpec is expensive,
so providing a way of doing this without mutation is useful.
Differential Revision: https://reviews.llvm.org/D151399
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
0 files changed, 0 insertions, 0 deletions