diff options
author | Raphael Isemann <teemperor@gmail.com> | 2018-08-30 21:26:32 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2018-08-30 21:26:32 +0000 |
commit | c11a780ed65a4e11c6bee68f7fd349c611f2fe18 (patch) | |
tree | 6e053fd41a07bd0e354c79728c5df0b5521d5db1 /lldb/source/Commands/CommandObjectExpression.cpp | |
parent | bdffea12d0be98efbf6d6ec4dcba3267b8aa7dec (diff) | |
download | bcm5719-llvm-c11a780ed65a4e11c6bee68f7fd349c611f2fe18.tar.gz bcm5719-llvm-c11a780ed65a4e11c6bee68f7fd349c611f2fe18.zip |
Use a CompletionRequest in the expression command completion [NFC]
The patch was originally written before we had a CompletionRequest,
so it still used a StringList to pass back the completions to
the request.
llvm-svn: 341124
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectExpression.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp index fdeaac24d0a..b880cbfd49e 100644 --- a/lldb/source/Commands/CommandObjectExpression.cpp +++ b/lldb/source/Commands/CommandObjectExpression.cpp @@ -369,9 +369,7 @@ int CommandObjectExpression::HandleCompletion(CompletionRequest &request) { if (error.Fail()) return 0; - StringList matches; - expr->Complete(exe_ctx, matches, cursor_pos); - request.AddCompletions(matches); + expr->Complete(exe_ctx, request, cursor_pos); return request.GetNumberOfMatches(); } |