File tree 2 files changed +3
-10
lines changed
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 {
130
130
lldb::ValueObjectSP &valobj_sp,
131
131
ExpressionVariable *var = nullptr ) = 0;
132
132
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;
135
135
136
136
OptionGroupFormat m_format_options = OptionGroupFormat(lldb::eFormatDefault);
137
137
OptionGroupValueObjectDisplay m_varobj_options;
Original file line number Diff line number Diff line change @@ -501,14 +501,7 @@ void REPL::IOHandlerComplete(IOHandler &io_handler,
501
501
current_code.append (" \n " );
502
502
current_code += request.GetRawLineUntilCursor ();
503
503
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);
512
505
}
513
506
514
507
bool QuitCommandOverrideCallback (void *baton, const char **argv) {
You can’t perform that action at this time.
0 commit comments