Searched refs:HistoryPath (Results 1 – 2 of 2) sorted by relevance
| /llvm-project-15.0.7/llvm/lib/LineEditor/ |
| H A D | LineEditor.cpp | 197 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In, in LineEditor() argument 199 : Prompt((ProgName + "> ").str()), HistoryPath(std::string(HistoryPath)), in LineEditor() 201 if (HistoryPath.empty()) in LineEditor() 202 this->HistoryPath = getDefaultHistoryPath(ProgName); in LineEditor() 242 if (!HistoryPath.empty()) { in saveHistory() 244 ::history(Data->Hist, &HE, H_SAVE, HistoryPath.c_str()); in saveHistory() 249 if (!HistoryPath.empty()) { in loadHistory() 251 ::history(Data->Hist, &HE, H_LOAD, HistoryPath.c_str()); in loadHistory() 285 LineEditor::LineEditor(StringRef ProgName, StringRef HistoryPath, FILE *In, in LineEditor() argument
|
| /llvm-project-15.0.7/llvm/include/llvm/LineEditor/ |
| H A D | LineEditor.h | 33 LineEditor(StringRef ProgName, StringRef HistoryPath = "", FILE *In = stdin, 113 std::string HistoryPath; variable
|