LLDB mainline
Classes | Typedefs | Enumerations
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 = int(*)(::EditLine *editline, EditLineGetCharType *c)
 
using EditlineCommandCallbackType = unsigned char(*)(::EditLine *editline, int ch)
 
using EditlinePromptCallbackType = const char *(*)(::EditLine *editline)
 
using EditlineHistorySP = std::shared_ptr< EditlineHistory >
 
using IsInputCompleteCallbackType = llvm::unique_function< bool(Editline *, StringList &)>
 
using FixIndentationCallbackType = llvm::unique_function< int(Editline *, StringList &, int)>
 
using SuggestionCallbackType = llvm::unique_function< std::optional< std::string >(llvm::StringRef)>
 
using CompleteCallbackType = llvm::unique_function< void(CompletionRequest &)>
 
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

using lldb_private::line_editor::CompleteCallbackType = typedef llvm::unique_function<void(CompletionRequest &)>

Definition at line 105 of file Editline.h.

◆ EditLineCharType

Definition at line 71 of file Editline.h.

◆ EditlineCommandCallbackType

using lldb_private::line_editor::EditlineCommandCallbackType = typedef unsigned char (*)(::EditLine *editline, int ch)

Definition at line 88 of file Editline.h.

◆ EditlineGetCharCallbackType

using lldb_private::line_editor::EditlineGetCharCallbackType = typedef int (*)(::EditLine *editline, EditLineGetCharType *c)

Definition at line 86 of file Editline.h.

◆ EditLineGetCharType

Definition at line 83 of file Editline.h.

◆ EditlineHistorySP

Definition at line 94 of file Editline.h.

◆ EditlineHistoryWP

Definition at line 186 of file Editline.cpp.

◆ EditlinePromptCallbackType

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

Definition at line 90 of file Editline.h.

◆ EditLineStringStreamType

using lldb_private::line_editor::EditLineStringStreamType = typedef std::stringstream

Definition at line 70 of file Editline.h.

◆ EditLineStringType

using lldb_private::line_editor::EditLineStringType = typedef std::string

Definition at line 69 of file Editline.h.

◆ FixIndentationCallbackType

using lldb_private::line_editor::FixIndentationCallbackType = typedef llvm::unique_function<int(Editline *, StringList &, int)>

Definition at line 99 of file Editline.h.

◆ IsInputCompleteCallbackType

using lldb_private::line_editor::IsInputCompleteCallbackType = typedef llvm::unique_function<bool(Editline *, StringList &)>

Definition at line 96 of file Editline.h.

◆ SuggestionCallbackType

using lldb_private::line_editor::SuggestionCallbackType = typedef llvm::unique_function<std::optional<std::string>(llvm::StringRef)>

Definition at line 102 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.