aboutsummaryrefslogtreecommitdiffstats
path: root/source/Plugins/ScriptInterpreter/None
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
commit14f1b3e8826ce43b978db93a62d1166055db5394 (patch)
tree0a00ad8d3498783fe0193f3b656bca17c4c8697d /source/Plugins/ScriptInterpreter/None
parent4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff)
downloadsrc-14f1b3e8826ce43b978db93a62d1166055db5394.tar.gz
src-14f1b3e8826ce43b978db93a62d1166055db5394.zip
Vendor import of lldb trunk r290819:vendor/lldb/lldb-trunk-r290819
Notes
Notes: svn path=/vendor/lldb/dist/; revision=311128 svn path=/vendor/lldb/lldb-trunk-r290819/; revision=311129; tag=vendor/lldb/lldb-trunk-r290819
Diffstat (limited to 'source/Plugins/ScriptInterpreter/None')
-rw-r--r--source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp80
-rw-r--r--source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.h55
2 files changed, 52 insertions, 83 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; }
diff --git a/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.h b/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.h
index 49fd4fabfbc5..d66b2f07310c 100644
--- a/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.h
+++ b/source/Plugins/ScriptInterpreter/None/ScriptInterpreterNone.h
@@ -16,49 +16,40 @@
// Project includes
#include "lldb/Interpreter/ScriptInterpreter.h"
-namespace lldb_private
-{
+namespace lldb_private {
-class ScriptInterpreterNone : public ScriptInterpreter
-{
- public:
- ScriptInterpreterNone(CommandInterpreter &interpreter);
+class ScriptInterpreterNone : public ScriptInterpreter {
+public:
+ ScriptInterpreterNone(CommandInterpreter &interpreter);
- ~ScriptInterpreterNone() override;
+ ~ScriptInterpreterNone() override;
- bool
- ExecuteOneLine(const char *command, CommandReturnObject *result,
- const ExecuteScriptOptions &options = ExecuteScriptOptions()) override;
+ bool ExecuteOneLine(
+ const char *command, CommandReturnObject *result,
+ const ExecuteScriptOptions &options = ExecuteScriptOptions()) override;
- void
- ExecuteInterpreterLoop() override;
+ void ExecuteInterpreterLoop() override;
- //------------------------------------------------------------------
- // Static Functions
- //------------------------------------------------------------------
- static void
- Initialize();
+ //------------------------------------------------------------------
+ // Static Functions
+ //------------------------------------------------------------------
+ static void Initialize();
- static void
- Terminate();
+ static void Terminate();
- static lldb::ScriptInterpreterSP
- CreateInstance(CommandInterpreter &interpreter);
+ static lldb::ScriptInterpreterSP
+ CreateInstance(CommandInterpreter &interpreter);
- static lldb_private::ConstString
- GetPluginNameStatic();
+ static lldb_private::ConstString GetPluginNameStatic();
- static const char *
- GetPluginDescriptionStatic();
+ static const char *GetPluginDescriptionStatic();
- //------------------------------------------------------------------
- // PluginInterface protocol
- //------------------------------------------------------------------
- lldb_private::ConstString
- GetPluginName() override;
+ //------------------------------------------------------------------
+ // PluginInterface protocol
+ //------------------------------------------------------------------
+ lldb_private::ConstString GetPluginName() override;
- uint32_t
- GetPluginVersion() override;
+ uint32_t GetPluginVersion() override;
};
} // namespace lldb_private