]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/lldb/Interpreter/OptionGroupVariable.h
Vendor import of lldb trunk r290819:
[FreeBSD/FreeBSD.git] / include / lldb / Interpreter / OptionGroupVariable.h
1 //===-- OptionGroupVariable.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_OptionGroupVariable_h_
11 #define liblldb_OptionGroupVariable_h_
12
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "lldb/Interpreter/OptionValueString.h"
18 #include "lldb/Interpreter/Options.h"
19
20 namespace lldb_private {
21
22 //-------------------------------------------------------------------------
23 // OptionGroupVariable
24 //-------------------------------------------------------------------------
25
26 class OptionGroupVariable : public OptionGroup {
27 public:
28   OptionGroupVariable(bool show_frame_options);
29
30   ~OptionGroupVariable() override;
31
32   llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
33
34   Error SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
35                        ExecutionContext *execution_context) override;
36   Error SetOptionValue(uint32_t, const char *, ExecutionContext *) = delete;
37
38   void OptionParsingStarting(ExecutionContext *execution_context) override;
39
40   bool include_frame_options : 1,
41       show_args : 1,    // Frame option only (include_frame_options == true)
42       show_locals : 1,  // Frame option only (include_frame_options == true)
43       show_globals : 1, // Frame option only (include_frame_options == true)
44       use_regex : 1, show_scope : 1, show_decl : 1;
45   OptionValueString summary;        // the name of a named summary
46   OptionValueString summary_string; // a summary string
47
48 private:
49   DISALLOW_COPY_AND_ASSIGN(OptionGroupVariable);
50 };
51
52 } // namespace lldb_private
53
54 #endif // liblldb_OptionGroupVariable_h_