LLDB  mainline
Classes | Public Member Functions | List of all members
lldb_private::CompletionResult Class Reference

#include <CompletionRequest.h>

Public Member Functions

void AddResult (llvm::StringRef completion, llvm::StringRef description)
 
void GetMatches (StringList &matches) const
 Adds all collected completion matches to the given list. More...
 
void GetDescriptions (StringList &descriptions) const
 Adds all collected completion descriptions to the given list. More...
 
std::size_t GetNumberOfResults () const
 

Detailed Description

Definition at line 19 of file CompletionRequest.h.

Member Function Documentation

◆ AddResult()

void CompletionResult::AddResult ( llvm::StringRef  completion,
llvm::StringRef  description 
)

Definition at line 73 of file CompletionRequest.cpp.

◆ GetDescriptions()

void CompletionResult::GetDescriptions ( StringList descriptions) const

Adds all collected completion descriptions to the given list.

The list will be cleared before the results are added. The number of results here is guaranteed to be equal to GetNumberOfResults().

Definition at line 88 of file CompletionRequest.cpp.

References lldb_private::StringList::AppendString(), and lldb_private::StringList::Clear().

Referenced by lldb_private::CommandInterpreter::HandleCompletion(), and lldb_private::IOHandlerDelegate::IOHandlerComplete().

◆ GetMatches()

void CompletionResult::GetMatches ( StringList matches) const

Adds all collected completion matches to the given list.

The list will be cleared before the results are added. The number of results here is guaranteed to be equal to GetNumberOfResults().

Definition at line 82 of file CompletionRequest.cpp.

References lldb_private::StringList::AppendString(), and lldb_private::StringList::Clear().

Referenced by lldb_private::CommandInterpreter::HandleCompletion(), and lldb_private::IOHandlerDelegate::IOHandlerComplete().

◆ GetNumberOfResults()

std::size_t lldb_private::CompletionResult::GetNumberOfResults ( ) const
inline

Definition at line 49 of file CompletionRequest.h.


The documentation for this class was generated from the following files: