]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Commands/CommandObjectQuit.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Commands / CommandObjectQuit.h
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 #include "lldb/Interpreter/CommandObject.h"
14
15 namespace lldb_private {
16
17 //-------------------------------------------------------------------------
18 // CommandObjectQuit
19 //-------------------------------------------------------------------------
20
21 class CommandObjectQuit : public CommandObjectParsed {
22 public:
23   CommandObjectQuit(CommandInterpreter &interpreter);
24
25   ~CommandObjectQuit() override;
26
27 protected:
28   bool DoExecute(Args &args, CommandReturnObject &result) override;
29
30   bool ShouldAskForConfirmation(bool &is_a_detach);
31 };
32
33 } // namespace lldb_private
34
35 #endif // liblldb_CommandObjectQuit_h_