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 25 class CommandObjectQuit : public CommandObjectParsed { 26 public: 27 CommandObjectQuit(CommandInterpreter &interpreter); 28 29 ~CommandObjectQuit() override; 30 31 protected: 32 bool DoExecute(Args &args, CommandReturnObject &result) override; 33 34 bool ShouldAskForConfirmation(bool &is_a_detach); 35 }; 36 37 } // namespace lldb_private 38 39 #endif // liblldb_CommandObjectQuit_h_ 40