LLDB mainline
lldb_private::line_editor Namespace Reference

Classes

class  EditlineHistory

Typedefs

using EditLineStringType = std::string
using EditLineStringStreamType = std::stringstream
using EditLineCharType = char
using EditLineGetCharType = char
using EditlineGetCharCallbackType
using EditlineCommandCallbackType
using EditlinePromptCallbackType = const char *(*)(::EditLine *editline)
using EditlineHistorySP = std::shared_ptr<EditlineHistory>
using IsInputCompleteCallbackType
using FixIndentationCallbackType
using SuggestionCallbackType
using CompleteCallbackType = llvm::unique_function<void(CompletionRequest &)>
using RedrawCallbackType = llvm::unique_function<void()>
typedef std::weak_ptr< EditlineHistoryEditlineHistoryWP

Enumerations

enum class  EditorStatus { Editing , Complete , EndOfInput , Interrupted }
 Status used to decide when and how to start editing another line in multi-line sessions. More...
enum class  CursorLocation { BlockStart , EditingPrompt , EditingCursor , BlockEnd }
 Established locations that can be easily moved among with MoveCursor. More...
enum class  HistoryOperation {
  Oldest , Older , Current , Newer ,
  Newest
}
 Operation for the history. More...

Typedef Documentation

◆ CompleteCallbackType

Definition at line 103 of file Editline.h.

◆ EditLineCharType

Definition at line 69 of file Editline.h.

◆ EditlineCommandCallbackType

Initial value:
unsigned char (*)(::EditLine *editline,
int ch)

Definition at line 86 of file Editline.h.

◆ EditlineGetCharCallbackType

Initial value:
int (*)(::EditLine *editline,

Definition at line 84 of file Editline.h.

◆ EditLineGetCharType

Definition at line 81 of file Editline.h.

◆ EditlineHistorySP

Definition at line 92 of file Editline.h.

◆ EditlineHistoryWP

Definition at line 195 of file Editline.cpp.

◆ EditlinePromptCallbackType

using lldb_private::line_editor::EditlinePromptCallbackType = const char *(*)(::EditLine *editline)

Definition at line 88 of file Editline.h.

◆ EditLineStringStreamType

Definition at line 68 of file Editline.h.

◆ EditLineStringType

Definition at line 67 of file Editline.h.

◆ FixIndentationCallbackType

Initial value:
llvm::unique_function<int(Editline *, StringList &, int)>
Instances of Editline provide an abstraction over libedit's EditLine facility.
Definition Editline.h:155

Definition at line 97 of file Editline.h.

◆ IsInputCompleteCallbackType

Initial value:
llvm::unique_function<bool(Editline *, StringList &)>

Definition at line 94 of file Editline.h.

◆ RedrawCallbackType

using lldb_private::line_editor::RedrawCallbackType = llvm::unique_function<void()>

Definition at line 105 of file Editline.h.

◆ SuggestionCallbackType

Initial value:
llvm::unique_function<std::optional<std::string>(llvm::StringRef)>

Definition at line 100 of file Editline.h.

Enumeration Type Documentation

◆ CursorLocation

Established locations that can be easily moved among with MoveCursor.

Enumerator
BlockStart 

The start of the first line in a multi-line edit session.

EditingPrompt 

The start of the current line in a multi-line edit session.

EditingCursor 

The location of the cursor on the current line in a multi-line edit session.

BlockEnd 

The location immediately after the last character in a multi-line edit session.

Definition at line 125 of file Editline.h.

◆ EditorStatus

Status used to decide when and how to start editing another line in multi-line sessions.

Enumerator
Editing 

The default state proceeds to edit the current line.

Complete 

Editing complete, returns the complete set of edited lines.

EndOfInput 

End of input reported.

Interrupted 

Editing interrupted.

Definition at line 109 of file Editline.h.

◆ HistoryOperation

Operation for the history.

Enumerator
Oldest 
Older 
Current 
Newer 
Newest 

Definition at line 142 of file Editline.h.