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
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
index c43e9d7..048cef0 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
@@ -643,7 +643,8 @@
}
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 @@
// 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;
}