Skip to content

Commit 7eec132

Browse files
committed
[lldb] Fix source/Host/common/Editline.cpp formatting (NFC)
1 parent 775a69b commit 7eec132

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

lldb/source/Host/common/Editline.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -122,22 +122,21 @@ static int GetOperation(HistoryOperation op) {
122122
// - The H_FIRST returns the most recent entry in the history.
123123
//
124124
// 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;
136136
}
137137
llvm_unreachable("Fully covered switch!");
138138
}
139139

140-
141140
EditLineStringType CombineLines(const std::vector<EditLineStringType> &lines) {
142141
EditLineStringStreamType combined_stream;
143142
for (EditLineStringType line : lines) {
@@ -313,8 +312,8 @@ class EditlineHistory {
313312
/// Path to the history file.
314313
std::string m_path;
315314
};
316-
}
317-
}
315+
} // namespace line_editor
316+
} // namespace lldb_private
318317

319318
// Editline private methods
320319

@@ -1151,7 +1150,8 @@ unsigned char Editline::TabCommand(int ch) {
11511150
to_add.push_back(' ');
11521151
el_deletestr(m_editline, request.GetCursorArgumentPrefix().size());
11531152
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.
11551155
if (to_add == " ")
11561156
return CC_REDISPLAY;
11571157
return CC_REFRESH;

0 commit comments

Comments
 (0)