xref: /openbsd-src/gnu/llvm/lldb/source/Commands/CommandObjectQuit.h (revision dda2819751e49c83612958492e38917049128b41)
1061da546Spatrick //===-- CommandObjectQuit.h -------------------------------------*- C++ -*-===//
2061da546Spatrick //
3061da546Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4061da546Spatrick // See https://llvm.org/LICENSE.txt for license information.
5061da546Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6061da546Spatrick //
7061da546Spatrick //===----------------------------------------------------------------------===//
8061da546Spatrick 
9*dda28197Spatrick #ifndef LLDB_SOURCE_COMMANDS_COMMANDOBJECTQUIT_H
10*dda28197Spatrick #define LLDB_SOURCE_COMMANDS_COMMANDOBJECTQUIT_H
11061da546Spatrick 
12061da546Spatrick #include "lldb/Interpreter/CommandObject.h"
13061da546Spatrick 
14061da546Spatrick namespace lldb_private {
15061da546Spatrick 
16061da546Spatrick // CommandObjectQuit
17061da546Spatrick 
18061da546Spatrick class CommandObjectQuit : public CommandObjectParsed {
19061da546Spatrick public:
20061da546Spatrick   CommandObjectQuit(CommandInterpreter &interpreter);
21061da546Spatrick 
22061da546Spatrick   ~CommandObjectQuit() override;
23061da546Spatrick 
24061da546Spatrick protected:
25061da546Spatrick   bool DoExecute(Args &args, CommandReturnObject &result) override;
26061da546Spatrick 
27061da546Spatrick   bool ShouldAskForConfirmation(bool &is_a_detach);
28061da546Spatrick };
29061da546Spatrick 
30061da546Spatrick } // namespace lldb_private
31061da546Spatrick 
32*dda28197Spatrick #endif // LLDB_SOURCE_COMMANDS_COMMANDOBJECTQUIT_H
33