xref: /freebsd/contrib/llvm-project/lldb/source/Commands/CommandObjectQuit.h (revision 5f757f3ff9144b609b3c433dfd370cc6bdc191ad)
10b57cec5SDimitry Andric //===-- CommandObjectQuit.h -------------------------------------*- C++ -*-===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric 
95ffd83dbSDimitry Andric #ifndef LLDB_SOURCE_COMMANDS_COMMANDOBJECTQUIT_H
105ffd83dbSDimitry Andric #define LLDB_SOURCE_COMMANDS_COMMANDOBJECTQUIT_H
110b57cec5SDimitry Andric 
120b57cec5SDimitry Andric #include "lldb/Interpreter/CommandObject.h"
130b57cec5SDimitry Andric 
140b57cec5SDimitry Andric namespace lldb_private {
150b57cec5SDimitry Andric 
160b57cec5SDimitry Andric // CommandObjectQuit
170b57cec5SDimitry Andric 
180b57cec5SDimitry Andric class CommandObjectQuit : public CommandObjectParsed {
190b57cec5SDimitry Andric public:
200b57cec5SDimitry Andric   CommandObjectQuit(CommandInterpreter &interpreter);
210b57cec5SDimitry Andric 
220b57cec5SDimitry Andric   ~CommandObjectQuit() override;
230b57cec5SDimitry Andric 
240b57cec5SDimitry Andric protected:
25*5f757f3fSDimitry Andric   void DoExecute(Args &args, CommandReturnObject &result) override;
260b57cec5SDimitry Andric 
270b57cec5SDimitry Andric   bool ShouldAskForConfirmation(bool &is_a_detach);
280b57cec5SDimitry Andric };
290b57cec5SDimitry Andric 
300b57cec5SDimitry Andric } // namespace lldb_private
310b57cec5SDimitry Andric 
325ffd83dbSDimitry Andric #endif // LLDB_SOURCE_COMMANDS_COMMANDOBJECTQUIT_H
33