diff options
-rw-r--r-- | lldb/include/lldb/Interpreter/Args.h | 16 | ||||
-rw-r--r-- | lldb/include/lldb/Interpreter/CommandObject.h | 1 | ||||
-rw-r--r-- | lldb/include/lldb/Interpreter/Options.h | 16 |
3 files changed, 17 insertions, 16 deletions
diff --git a/lldb/include/lldb/Interpreter/Args.h b/lldb/include/lldb/Interpreter/Args.h index 63eb7ff1321..53d97337610 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<std::tuple<std::string, int, std::string>> OptionArgVector; -typedef std::shared_ptr<OptionArgVector> 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<OptionArgElement> 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 ff4c829e5c7..c818843fea9 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 6ccfb418582..564270cf1b2 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<std::tuple<std::string, int, std::string>> OptionArgVector; +typedef std::shared_ptr<OptionArgVector> 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<OptionArgElement> OptionElementVector; + static inline bool isprint8(int ch) { if (ch & 0xffffff00u) return false; |