diff options
author | Ed Maste <emaste@FreeBSD.org> | 2015-02-06 21:38:51 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2015-02-06 21:38:51 +0000 |
commit | 205afe679855a4ce8149cdaa94d3f0868ce796dc (patch) | |
tree | 09bc83f73246ee3c7a779605cd0122093d2a8a19 /include/lldb/Interpreter/CommandObjectRegexCommand.h | |
parent | 0cac4ca3916ac24ab6139d03cbfd18db9e715bfe (diff) |
Diffstat (limited to 'include/lldb/Interpreter/CommandObjectRegexCommand.h')
-rw-r--r-- | include/lldb/Interpreter/CommandObjectRegexCommand.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/include/lldb/Interpreter/CommandObjectRegexCommand.h b/include/lldb/Interpreter/CommandObjectRegexCommand.h index 8855680d5f8bb..d865446387765 100644 --- a/include/lldb/Interpreter/CommandObjectRegexCommand.h +++ b/include/lldb/Interpreter/CommandObjectRegexCommand.h @@ -34,12 +34,16 @@ public: const char *help, const char *syntax, uint32_t max_matches, - uint32_t completion_type_mask = 0); + uint32_t completion_type_mask, + bool is_removable); virtual ~CommandObjectRegexCommand (); bool + IsRemovable () const override { return m_is_removable; } + + bool AddRegexCommand (const char *re_cstr, const char *command_cstr); bool @@ -48,18 +52,18 @@ public: return !m_entries.empty(); } - virtual int + int HandleCompletion (Args &input, int &cursor_index, int &cursor_char_position, int match_start_point, int max_return_elements, bool &word_complete, - StringList &matches); + StringList &matches) override; protected: - virtual bool - DoExecute (const char *command, CommandReturnObject &result); + bool + DoExecute (const char *command, CommandReturnObject &result) override; struct Entry { @@ -71,6 +75,7 @@ protected: const uint32_t m_max_matches; const uint32_t m_completion_type_mask; EntryCollection m_entries; + bool m_is_removable; private: DISALLOW_COPY_AND_ASSIGN (CommandObjectRegexCommand); |