File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -130,8 +130,8 @@ class REPL : public IOHandlerDelegate {
130130 lldb::ValueObjectSP &valobj_sp,
131131 ExpressionVariable *var = nullptr ) = 0;
132132
133- virtual int CompleteCode (const std::string ¤t_code,
134- StringList &matches ) = 0;
133+ virtual void CompleteCode (const std::string ¤t_code,
134+ CompletionRequest &request ) = 0;
135135
136136 OptionGroupFormat m_format_options = OptionGroupFormat(lldb::eFormatDefault);
137137 OptionGroupValueObjectDisplay m_varobj_options;
Original file line number Diff line number Diff line change @@ -501,14 +501,7 @@ void REPL::IOHandlerComplete(IOHandler &io_handler,
501501 current_code.append (" \n " );
502502 current_code += request.GetRawLineUntilCursor ();
503503
504- StringList matches;
505- int result = CompleteCode (current_code, matches);
506- if (result == -2 ) {
507- assert (matches.GetSize () == 1 );
508- request.AddCompletion (matches.GetStringAtIndex (0 ), " " ,
509- CompletionMode::RewriteLine);
510- } else
511- request.AddCompletions (matches);
504+ CompleteCode (current_code, request);
512505}
513506
514507bool QuitCommandOverrideCallback (void *baton, const char **argv) {
You can’t perform that action at this time.
0 commit comments