Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 1 | //===-- CommandObjectQuit.h -------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #ifndef liblldb_CommandObjectQuit_h_ |
| 11 | #define liblldb_CommandObjectQuit_h_ |
| 12 | |
| 13 | // C Includes |
| 14 | // C++ Includes |
| 15 | // Other libraries and framework includes |
| 16 | // Project includes |
| 17 | #include "lldb/Interpreter/CommandObject.h" |
| 18 | |
| 19 | namespace lldb_private { |
| 20 | |
| 21 | //------------------------------------------------------------------------- |
| 22 | // CommandObjectQuit |
| 23 | //------------------------------------------------------------------------- |
| 24 | |
Jim Ingham | 5a98841 | 2012-06-08 21:56:10 +0000 | [diff] [blame] | 25 | class CommandObjectQuit : public CommandObjectParsed |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 26 | { |
| 27 | public: |
| 28 | |
Greg Clayton | a701509 | 2010-09-18 01:14:36 +0000 | [diff] [blame] | 29 | CommandObjectQuit (CommandInterpreter &interpreter); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 30 | |
Pavel Labath | 1fb7e20 | 2015-09-02 09:33:09 +0000 | [diff] [blame] | 31 | ~CommandObjectQuit() override; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 32 | |
Jim Ingham | 5a98841 | 2012-06-08 21:56:10 +0000 | [diff] [blame] | 33 | protected: |
Pavel Labath | 1fb7e20 | 2015-09-02 09:33:09 +0000 | [diff] [blame] | 34 | bool |
| 35 | DoExecute(Args& args, |
| 36 | CommandReturnObject &result) override; |
Enrico Granata | bcba2b2 | 2013-01-17 21:36:19 +0000 | [diff] [blame] | 37 | |
| 38 | bool |
| 39 | ShouldAskForConfirmation (bool& is_a_detach); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | } // namespace lldb_private |
| 43 | |
Pavel Labath | 1fb7e20 | 2015-09-02 09:33:09 +0000 | [diff] [blame] | 44 | #endif // liblldb_CommandObjectQuit_h_ |