- Created a new common completion for the registers of the current context;
- Apply this new common completion to the commands register read/write;
- Unit test.
Details
Details
- Reviewers
teemperor JDevlieghere - Commits
- rGa14f4a7531f0: tab completion for register read/write
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I only have some minor comments (see the inline comments), but otherwise this is ready to go I think. Thanks, great work!
Small side note: If you do git diff -U9999 to generate your diff then Phabricator also shows the context of your changes on the site instead of the "Context not available" warning. It's one of the weird quirks of Phabricator using diffs instead of git.
lldb/include/lldb/Interpreter/CommandCompletions.h | ||
---|---|---|
37 | I think this should be '9' and the last enum case bumped to 10? | |
lldb/source/Commands/CommandCompletions.cpp | ||
542 | If I understand this correctly this whole if can be simplified to: if (request.GetCursorArgumentPrefix().startswith("$")) reg_prefix = "$". Then you also don't need command_args. | |
lldb/test/API/functionalities/completion/TestCompletion.py | ||
431 | I think it's fine if you shorten this to: lldbutil.run_to_source_breakpoint(self, '// Break here', lldb.SBFileSpec("main.cpp")) |
Comment Actions
- shortened lines in TestCompletion.py and CommandCompletions.cpp
- set eRegisterCompletion to (1u << 9) while eCustomCompletion to (1u << 10)
I think this should be '9' and the last enum case bumped to 10?