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/Plugins/ExpressionParser/Clang/ClangUserExpression.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/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp')
| -rw-r--r-- | lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp index c43e9d7511f..048cef0b660 100644 --- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp +++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp @@ -643,7 +643,8 @@ static void AbsPosToLineColumnPos(unsigned abs_pos, llvm::StringRef code, } bool ClangUserExpression::Complete(ExecutionContext &exe_ctx, - StringList &matches, unsigned complete_pos) { + CompletionRequest &request, + unsigned complete_pos) { Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_EXPRESSIONS)); // We don't want any visible feedback when completing an expression. Mostly @@ -709,7 +710,7 @@ bool ClangUserExpression::Complete(ExecutionContext &exe_ctx, // The actual column where we have to complete is the start column of the // user expression + the offset inside the user code that we were given. const unsigned completion_column = user_expr_column + complete_pos; - parser.Complete(matches, user_expr_line, completion_column, complete_pos); + parser.Complete(request, user_expr_line, completion_column, complete_pos); return true; } |

