summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-07-28 06:24:07 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-07-28 06:24:07 +0000
commitbd68a052f292b5df7c5717bd880d796ac7507fc0 (patch)
treecca9c6eb174d5c2b71c5adaab65674bc3b370416 /lldb/source/Commands/CommandObjectProcess.cpp
parentafd4a37b2a35d730a85a26d21428034915bd5b3f (diff)
downloadbcm5719-llvm-bd68a052f292b5df7c5717bd880d796ac7507fc0.tar.gz
bcm5719-llvm-bd68a052f292b5df7c5717bd880d796ac7507fc0.zip
[lldb] Also include the array definition in CommandOptions.inc
Summary: Right now our CommandOptions.inc only generates the initializer for the options list but not the array declaration boilerplate around it. As the array definition is identical for all arrays, we might as well also let the CommandOptions.inc generate it alongside the initializers. This patch will also allow us to generate additional declarations related to that option list in the future (e.g. a enum class representing the specific options which would make our handling code less prone). This patch also fixes a few option tables that didn't follow our naming style. Reviewers: JDevlieghere Reviewed By: JDevlieghere Subscribers: abidh, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D65331 llvm-svn: 367186
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 72286028a04..3d7a59951b5 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -255,10 +255,8 @@ protected:
ProcessLaunchCommandOptions m_options;
};
-static constexpr OptionDefinition g_process_attach_options[] = {
#define LLDB_OPTIONS_process_attach
#include "CommandOptions.inc"
-};
#pragma mark CommandObjectProcessAttach
class CommandObjectProcessAttach : public CommandObjectProcessLaunchOrAttach {
@@ -499,10 +497,8 @@ protected:
// CommandObjectProcessContinue
-static constexpr OptionDefinition g_process_continue_options[] = {
#define LLDB_OPTIONS_process_continue
#include "CommandOptions.inc"
-};
#pragma mark CommandObjectProcessContinue
@@ -659,10 +655,8 @@ protected:
};
// CommandObjectProcessDetach
-static constexpr OptionDefinition g_process_detach_options[] = {
#define LLDB_OPTIONS_process_detach
#include "CommandOptions.inc"
-};
#pragma mark CommandObjectProcessDetach
@@ -754,11 +748,8 @@ protected:
};
// CommandObjectProcessConnect
-
-static constexpr OptionDefinition g_process_connect_options[] = {
#define LLDB_OPTIONS_process_connect
#include "CommandOptions.inc"
-};
#pragma mark CommandObjectProcessConnect
@@ -878,11 +869,8 @@ public:
};
// CommandObjectProcessLoad
-
-static constexpr OptionDefinition g_process_load_options[] = {
#define LLDB_OPTIONS_process_load
#include "CommandOptions.inc"
-};
#pragma mark CommandObjectProcessLoad
@@ -1261,11 +1249,8 @@ public:
};
// CommandObjectProcessHandle
-
-static constexpr OptionDefinition g_process_handle_options[] = {
#define LLDB_OPTIONS_process_handle
#include "CommandOptions.inc"
-};
#pragma mark CommandObjectProcessHandle
OpenPOWER on IntegriCloud