Home | History | Annotate | Download | only in LineEditor

Lines Matching defs:LineEditor

1 //===-- LineEditor.cpp - line editor --------------------------------------===//
10 #include "llvm/LineEditor/LineEditor.h"
24 std::string LineEditor::getDefaultHistoryPath(StringRef ProgName) {
33 LineEditor::CompleterConcept::~CompleterConcept() {}
34 LineEditor::ListCompleterConcept::~ListCompleterConcept() {}
36 std::string LineEditor::ListCompleterConcept::getCommonPrefix(
55 LineEditor::CompletionAction
56 LineEditor::ListCompleterConcept::complete(StringRef Buffer, size_t Pos) const {
84 LineEditor::CompletionAction LineEditor::getCompletionAction(StringRef Buffer,
99 struct LineEditor::InternalData {
100 LineEditor *LE;
114 LineEditor::InternalData *Data;
125 LineEditor::InternalData *Data;
146 LineEditor::CompletionAction Action = Data->LE->getCompletionAction(
150 case LineEditor::CompletionAction::AK_Insert:
154 case LineEditor::CompletionAction::AK_ShowCompletions:
199 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In,
235 LineEditor::~LineEditor() {
243 void LineEditor::saveHistory() {
250 void LineEditor::loadHistory() {
257 Optional<std::string> LineEditor::readLine() const {
282 struct LineEditor::InternalData {
287 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In,
294 LineEditor::~LineEditor() {
298 void LineEditor::saveHistory() {}
299 void LineEditor::loadHistory() {}
301 Optional<std::string> LineEditor::readLine() const {