diff --git a/lldb/include/lldb/Interpreter/Args.h b/lldb/include/lldb/Interpreter/Args.h index 63eb7ff13219..53d973376103 100644 --- a/lldb/include/lldb/Interpreter/Args.h +++ b/lldb/include/lldb/Interpreter/Args.h @@ -26,22 +26,6 @@ namespace lldb_private { -typedef std::vector> OptionArgVector; -typedef std::shared_ptr OptionArgVectorSP; - -struct OptionArgElement { - enum { eUnrecognizedArg = -1, eBareDash = -2, eBareDoubleDash = -3 }; - - OptionArgElement(int defs_index, int pos, int arg_pos) - : opt_defs_index(defs_index), opt_pos(pos), opt_arg_pos(arg_pos) {} - - int opt_defs_index; - int opt_pos; - int opt_arg_pos; -}; - -typedef std::vector OptionElementVector; - //---------------------------------------------------------------------- /// @class Args Args.h "lldb/Interpreter/Args.h" /// @brief A command line argument class. diff --git a/lldb/include/lldb/Interpreter/CommandObject.h b/lldb/include/lldb/Interpreter/CommandObject.h index ff4c829e5c70..c818843fea92 100644 --- a/lldb/include/lldb/Interpreter/CommandObject.h +++ b/lldb/include/lldb/Interpreter/CommandObject.h @@ -22,6 +22,7 @@ #include "lldb/Interpreter/Args.h" #include "lldb/Interpreter/CommandCompletions.h" +#include "lldb/Interpreter/Options.h" #include "lldb/Target/ExecutionContext.h" #include "lldb/Utility/StringList.h" #include "lldb/lldb-private.h" diff --git a/lldb/include/lldb/Interpreter/Options.h b/lldb/include/lldb/Interpreter/Options.h index 6ccfb4185825..564270cf1b20 100644 --- a/lldb/include/lldb/Interpreter/Options.h +++ b/lldb/include/lldb/Interpreter/Options.h @@ -28,6 +28,22 @@ namespace lldb_private { struct Option; +typedef std::vector> OptionArgVector; +typedef std::shared_ptr OptionArgVectorSP; + +struct OptionArgElement { + enum { eUnrecognizedArg = -1, eBareDash = -2, eBareDoubleDash = -3 }; + + OptionArgElement(int defs_index, int pos, int arg_pos) + : opt_defs_index(defs_index), opt_pos(pos), opt_arg_pos(arg_pos) {} + + int opt_defs_index; + int opt_pos; + int opt_arg_pos; +}; + +typedef std::vector OptionElementVector; + static inline bool isprint8(int ch) { if (ch & 0xffffff00u) return false;