aboutsummaryrefslogtreecommitdiff
path: root/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp')
-rw-r--r--source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp80
1 files changed, 29 insertions, 51 deletions
diff --git a/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp b/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp
index 1a352fa1987f..2f04ec97a9ff 100644
--- a/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp
+++ b/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp
@@ -21,73 +21,51 @@ using namespace lldb;
using namespace lldb_private;
ScriptInterpreterNone::ScriptInterpreterNone(CommandInterpreter &interpreter)
- : ScriptInterpreter(interpreter, eScriptLanguageNone)
-{
-}
+ : ScriptInterpreter(interpreter, eScriptLanguageNone) {}
-ScriptInterpreterNone::~ScriptInterpreterNone()
-{
-}
+ScriptInterpreterNone::~ScriptInterpreterNone() {}
-bool
-ScriptInterpreterNone::ExecuteOneLine(const char *command, CommandReturnObject *, const ExecuteScriptOptions &)
-{
- m_interpreter.GetDebugger().GetErrorFile()->PutCString(
- "error: there is no embedded script interpreter in this mode.\n");
- return false;
+bool ScriptInterpreterNone::ExecuteOneLine(const char *command,
+ CommandReturnObject *,
+ const ExecuteScriptOptions &) {
+ m_interpreter.GetDebugger().GetErrorFile()->PutCString(
+ "error: there is no embedded script interpreter in this mode.\n");
+ return false;
}
-void
-ScriptInterpreterNone::ExecuteInterpreterLoop()
-{
- m_interpreter.GetDebugger().GetErrorFile()->PutCString(
- "error: there is no embedded script interpreter in this mode.\n");
+void ScriptInterpreterNone::ExecuteInterpreterLoop() {
+ m_interpreter.GetDebugger().GetErrorFile()->PutCString(
+ "error: there is no embedded script interpreter in this mode.\n");
}
-void
-ScriptInterpreterNone::Initialize()
-{
- static std::once_flag g_once_flag;
+void ScriptInterpreterNone::Initialize() {
+ static std::once_flag g_once_flag;
- std::call_once(g_once_flag, []()
- {
- PluginManager::RegisterPlugin(GetPluginNameStatic(), GetPluginDescriptionStatic(),
- lldb::eScriptLanguageNone, CreateInstance);
- });
+ std::call_once(g_once_flag, []() {
+ PluginManager::RegisterPlugin(GetPluginNameStatic(),
+ GetPluginDescriptionStatic(),
+ lldb::eScriptLanguageNone, CreateInstance);
+ });
}
-void
-ScriptInterpreterNone::Terminate()
-{
-}
+void ScriptInterpreterNone::Terminate() {}
lldb::ScriptInterpreterSP
-ScriptInterpreterNone::CreateInstance(CommandInterpreter &interpreter)
-{
- return std::make_shared<ScriptInterpreterNone>(interpreter);
+ScriptInterpreterNone::CreateInstance(CommandInterpreter &interpreter) {
+ return std::make_shared<ScriptInterpreterNone>(interpreter);
}
-lldb_private::ConstString
-ScriptInterpreterNone::GetPluginNameStatic()
-{
- static ConstString g_name("script-none");
- return g_name;
+lldb_private::ConstString ScriptInterpreterNone::GetPluginNameStatic() {
+ static ConstString g_name("script-none");
+ return g_name;
}
-const char *
-ScriptInterpreterNone::GetPluginDescriptionStatic()
-{
- return "Null script interpreter";
+const char *ScriptInterpreterNone::GetPluginDescriptionStatic() {
+ return "Null script interpreter";
}
-lldb_private::ConstString
-ScriptInterpreterNone::GetPluginName()
-{
- return GetPluginNameStatic();
+lldb_private::ConstString ScriptInterpreterNone::GetPluginName() {
+ return GetPluginNameStatic();
}
-uint32_t
-ScriptInterpreterNone::GetPluginVersion()
-{
- return 1;
-}
+uint32_t ScriptInterpreterNone::GetPluginVersion() { return 1; }