@@ -122,22 +122,21 @@ static int GetOperation(HistoryOperation op) {
122
122
// - The H_FIRST returns the most recent entry in the history.
123
123
//
124
124
// The naming of the enum entries match the semantic meaning.
125
- switch (op) {
126
- case HistoryOperation::Oldest:
127
- return H_LAST;
128
- case HistoryOperation::Older:
129
- return H_NEXT;
130
- case HistoryOperation::Current:
131
- return H_CURR;
132
- case HistoryOperation::Newer:
133
- return H_PREV;
134
- case HistoryOperation::Newest:
135
- return H_FIRST;
125
+ switch (op) {
126
+ case HistoryOperation::Oldest:
127
+ return H_LAST;
128
+ case HistoryOperation::Older:
129
+ return H_NEXT;
130
+ case HistoryOperation::Current:
131
+ return H_CURR;
132
+ case HistoryOperation::Newer:
133
+ return H_PREV;
134
+ case HistoryOperation::Newest:
135
+ return H_FIRST;
136
136
}
137
137
llvm_unreachable (" Fully covered switch!" );
138
138
}
139
139
140
-
141
140
EditLineStringType CombineLines (const std::vector<EditLineStringType> &lines) {
142
141
EditLineStringStreamType combined_stream;
143
142
for (EditLineStringType line : lines) {
@@ -313,8 +312,8 @@ class EditlineHistory {
313
312
// / Path to the history file.
314
313
std::string m_path;
315
314
};
316
- }
317
- }
315
+ } // namespace line_editor
316
+ } // namespace lldb_private
318
317
319
318
// Editline private methods
320
319
@@ -1151,7 +1150,8 @@ unsigned char Editline::TabCommand(int ch) {
1151
1150
to_add.push_back (' ' );
1152
1151
el_deletestr (m_editline, request.GetCursorArgumentPrefix ().size ());
1153
1152
el_insertstr (m_editline, to_add.c_str ());
1154
- // Clear all the autosuggestion parts if the only single space can be completed.
1153
+ // Clear all the autosuggestion parts if the only single space can be
1154
+ // completed.
1155
1155
if (to_add == " " )
1156
1156
return CC_REDISPLAY;
1157
1157
return CC_REFRESH;
0 commit comments