diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-07-28 06:24:07 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-07-28 06:24:07 +0000 |
commit | bd68a052f292b5df7c5717bd880d796ac7507fc0 (patch) | |
tree | cca9c6eb174d5c2b71c5adaab65674bc3b370416 /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | afd4a37b2a35d730a85a26d21428034915bd5b3f (diff) | |
download | bcm5719-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/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index 943f508e7ad..740442490df 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -31,10 +31,8 @@ using namespace lldb_private; // CommandObjectCommandsSource -static constexpr OptionDefinition g_history_options[] = { #define LLDB_OPTIONS_history #include "CommandOptions.inc" -}; class CommandObjectCommandsHistory : public CommandObjectParsed { public: @@ -184,10 +182,8 @@ protected: // CommandObjectCommandsSource -static constexpr OptionDefinition g_source_options[] = { #define LLDB_OPTIONS_source #include "CommandOptions.inc" -}; class CommandObjectCommandsSource : public CommandObjectParsed { public: @@ -336,10 +332,8 @@ protected: #pragma mark CommandObjectCommandsAlias // CommandObjectCommandsAlias -static constexpr OptionDefinition g_alias_options[] = { #define LLDB_OPTIONS_alias #include "CommandOptions.inc" -}; static const char *g_python_command_instructions = "Enter your Python command(s). Type 'DONE' to end.\n" @@ -902,10 +896,8 @@ protected: // CommandObjectCommandsAddRegex -static constexpr OptionDefinition g_regex_options[] = { #define LLDB_OPTIONS_regex #include "CommandOptions.inc" -}; #pragma mark CommandObjectCommandsAddRegex @@ -1374,11 +1366,8 @@ private: }; // CommandObjectCommandsScriptImport - -static constexpr OptionDefinition g_script_import_options[] = { #define LLDB_OPTIONS_script_import #include "CommandOptions.inc" -}; class CommandObjectCommandsScriptImport : public CommandObjectParsed { public: @@ -1508,10 +1497,8 @@ static constexpr OptionEnumValues ScriptSynchroType() { return OptionEnumValues(g_script_synchro_type); } -static constexpr OptionDefinition g_script_add_options[] = { #define LLDB_OPTIONS_script_add #include "CommandOptions.inc" -}; class CommandObjectCommandsScriptAdd : public CommandObjectParsed, public IOHandlerDelegateMultiline { |