llvm::LineEditor

Synopsis

Declared in <llvm/LineEditor/LineEditor.h>

class LineEditor;

Types

NameDescription
Completion A possible completion at a given cursor position.
CompletionAction The action to perform upon a completion request.
InternalData

Member Functions

NameDescription
LineEditor [constructor]Create a LineEditor object.
~LineEditor [destructor]Destructor
getCompletionAction Use the current completer to produce a CompletionAction for the given completion request. If the current completer is a list completer, this will return an AK_Insert CompletionAction if each completion has a common prefix, or an AK_ShowCompletions CompletionAction otherwise.
getPrompt
loadHistory
readLine Reads a line.
saveHistory
setCompleter Set the completer for this LineEditor. A completer is a function object which takes arguments of type StringRef (the string to complete) and size_t (the zero-based cursor position in the StringRef) and returns a CompletionAction.
setHistorySize
setListCompleter Set the completer for this LineEditor to the given list completer. A list completer is a function object which takes arguments of type StringRef (the string to complete) and size_t (the zero-based cursor position in the StringRef) and returns a std::vector<Completion>.
setPrompt

Static Member Functions

Name
getDefaultHistoryPath