This is an archive of the discontinued LLVM Phabricator instance.

[lldb] tab completion for `watchpoint set variable`
ClosedPublic

Authored by MrHate on Jul 20 2020, 8:27 AM.

Details

Summary
  1. Applied the common completion eVariablePathCompletion to command watchpoint set variable;
  2. Added a related test case.

Diff Detail

Event Timeline

MrHate created this revision.Jul 20 2020, 8:27 AM
teemperor accepted this revision.Jul 27 2020, 5:00 AM

LGTM module minus style nit.

lldb/source/Commands/CommandObjectWatchpoint.cpp
829

I think the != 0 is actually clearer here. Usually if (X) is more for types like Optional or pointers types that can be "nullptrs", but here it's actually checking for the index 0.

This revision is now accepted and ready to land.Jul 27 2020, 5:00 AM
JDevlieghere accepted this revision.Jul 27 2020, 8:31 AM

+1 on @teemperor's inline comment but otherwise LGTM

This revision was automatically updated to reflect the committed changes.