aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSettings.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2019-10-30 15:26:19 -0700
committerAdrian Prantl <aprantl@apple.com>2019-10-30 16:03:00 -0700
commita925974bf166a83cfd45b0ca89c5c65d17f275cc (patch)
treee08143032d4c9afac1ed92aca0c34d6792ef24da /lldb/source/Commands/CommandObjectSettings.cpp
parent17b64e36e90ad05a32a99b9f5784b55310cc10e8 (diff)
downloadllvm-a925974bf166a83cfd45b0ca89c5c65d17f275cc.zip
llvm-a925974bf166a83cfd45b0ca89c5c65d17f275cc.tar.gz
llvm-a925974bf166a83cfd45b0ca89c5c65d17f275cc.tar.bz2
Run clang-format on lldb/source/Commands (NFC)
These files had a lot of whitespace errors in them which was a constant source of merge conflicts downstream.
Diffstat (limited to 'lldb/source/Commands/CommandObjectSettings.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectSettings.cpp31
1 files changed, 15 insertions, 16 deletions
diff --git a/lldb/source/Commands/CommandObjectSettings.cpp b/lldb/source/Commands/CommandObjectSettings.cpp
index 248a046..95f79f4 100644
--- a/lldb/source/Commands/CommandObjectSettings.cpp
+++ b/lldb/source/Commands/CommandObjectSettings.cpp
@@ -143,25 +143,24 @@ insert-before or insert-after.");
request, nullptr);
return;
}
- arg =
- request.GetParsedLine().GetArgumentAtIndex(request.GetCursorIndex());
+ arg = request.GetParsedLine().GetArgumentAtIndex(request.GetCursorIndex());
- if (!arg)
- return;
+ if (!arg)
+ return;
- // Complete option name
- if (arg[0] != '-')
- return;
+ // Complete option name
+ if (arg[0] != '-')
+ return;
- // Complete setting value
- const char *setting_var_name =
- request.GetParsedLine().GetArgumentAtIndex(setting_var_idx);
- Status error;
- lldb::OptionValueSP value_sp(GetDebugger().GetPropertyValue(
- &m_exe_ctx, setting_var_name, false, error));
- if (!value_sp)
- return;
- value_sp->AutoComplete(m_interpreter, request);
+ // Complete setting value
+ const char *setting_var_name =
+ request.GetParsedLine().GetArgumentAtIndex(setting_var_idx);
+ Status error;
+ lldb::OptionValueSP value_sp(GetDebugger().GetPropertyValue(
+ &m_exe_ctx, setting_var_name, false, error));
+ if (!value_sp)
+ return;
+ value_sp->AutoComplete(m_interpreter, request);
}
protected: