From c11a780ed65a4e11c6bee68f7fd349c611f2fe18 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 30 Aug 2018 21:26:32 +0000 Subject: 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 --- lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp') 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; } -- cgit v1.2.3