Skip to content

Commit 3ef88cd

Browse files
committed
Fix formatting
1 parent 34045b9 commit 3ef88cd

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

lldb/source/Commands/CommandObjectThread.cpp

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,15 +1216,18 @@ class CommandObjectThreadSelect : public CommandObjectParsed {
12161216
if (process == nullptr) {
12171217
result.AppendError("no process");
12181218
return;
1219-
} else if (m_options.m_thread_id == LLDB_INVALID_THREAD_ID && command.GetArgumentCount() != 1) {
1219+
} else if (m_options.m_thread_id == LLDB_INVALID_THREAD_ID &&
1220+
command.GetArgumentCount() != 1) {
12201221
result.AppendErrorWithFormat(
1221-
"'%s' takes exactly one thread index argument, or a thread ID option:\nUsage: %s\n",
1222+
"'%s' takes exactly one thread index argument, or a thread ID "
1223+
"option:\nUsage: %s\n",
12221224
m_cmd_name.c_str(), m_cmd_syntax.c_str());
12231225
return;
1224-
} else if (m_options.m_thread_id != LLDB_INVALID_THREAD_ID && command.GetArgumentCount() != 0) {
1225-
result.AppendErrorWithFormat(
1226-
"'%s' cannot take both a thread ID option and a thread index argument:\nUsage: %s\n",
1227-
m_cmd_name.c_str(), m_cmd_syntax.c_str());
1226+
} else if (m_options.m_thread_id != LLDB_INVALID_THREAD_ID &&
1227+
command.GetArgumentCount() != 0) {
1228+
result.AppendErrorWithFormat("'%s' cannot take both a thread ID option "
1229+
"and a thread index argument:\nUsage: %s\n",
1230+
m_cmd_name.c_str(), m_cmd_syntax.c_str());
12281231
return;
12291232
}
12301233

@@ -1239,11 +1242,12 @@ class CommandObjectThreadSelect : public CommandObjectParsed {
12391242
new_thread = process->GetThreadList().FindThreadByIndexID(index_id).get();
12401243
if (new_thread == nullptr) {
12411244
result.AppendErrorWithFormat("Invalid thread #%s.\n",
1242-
command.GetArgumentAtIndex(0));
1245+
command.GetArgumentAtIndex(0));
12431246
return;
12441247
}
12451248
} else {
1246-
new_thread = process->GetThreadList().FindThreadByID(m_options.m_thread_id).get();
1249+
new_thread =
1250+
process->GetThreadList().FindThreadByID(m_options.m_thread_id).get();
12471251
if (new_thread == nullptr) {
12481252
result.AppendErrorWithFormat("Invalid thread ID %lu.\n",
12491253
m_options.m_thread_id);

0 commit comments

Comments
 (0)