This is an archive of the discontinued LLVM Phabricator instance.

[lldb] tab completion for `target modules search-paths insert​`
ClosedPublic

Authored by MrHate on Jul 7 2020, 7:52 AM.

Details

Summary

Dedicated completion for the command target modules search-paths insert​ with a test case.

Diff Detail

Event Timeline

MrHate created this revision.Jul 7 2020, 7:52 AM
JDevlieghere accepted this revision.Jul 7 2020, 10:00 AM

Thank you! LGTM with one small nit.

lldb/source/Commands/CommandObjectTarget.cpp
1171

If this returns false we've moved past the end of the list so we might as well break out of the loop.

1171

I was going to suggest extending PathMappingList with iterators for the underlying data so we could use a range-based for loop, but I see you need the index so this is fine.

This revision is now accepted and ready to land.Jul 7 2020, 10:00 AM