]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Interpreter/OptionGroupValueObjectDisplay.h
Update LLDB snapshot to upstream r225923 (git 2b588ecd)
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Interpreter / OptionGroupValueObjectDisplay.h
1 //===-- OptionGroupValueObjectDisplay.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_OptionGroupValueObjectDisplay_h_
11 #define liblldb_OptionGroupValueObjectDisplay_h_
12
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "lldb/Core/ValueObject.h"
18 #include "lldb/Interpreter/Options.h"
19
20 namespace lldb_private {
21
22 //-------------------------------------------------------------------------
23 // OptionGroupValueObjectDisplay
24 //-------------------------------------------------------------------------
25
26 class OptionGroupValueObjectDisplay : public OptionGroup
27 {
28 public:
29     
30     OptionGroupValueObjectDisplay ();
31     
32     virtual
33     ~OptionGroupValueObjectDisplay ();
34
35     
36     virtual uint32_t
37     GetNumDefinitions ();
38     
39     virtual const OptionDefinition*
40     GetDefinitions ();
41     
42     virtual Error
43     SetOptionValue (CommandInterpreter &interpreter,
44                     uint32_t option_idx,
45                     const char *option_value);
46     
47     virtual void
48     OptionParsingStarting (CommandInterpreter &interpreter);
49     
50     bool
51     AnyOptionWasSet () const
52     {
53         return show_types == true ||
54                no_summary_depth  != 0 ||
55                show_location == true ||
56                flat_output == true ||
57                use_objc == true ||
58                max_depth != UINT32_MAX ||
59                ptr_depth != 0 ||
60                use_synth == false ||
61                be_raw == true ||
62                ignore_cap == true ||
63                run_validator == true;
64     }
65     
66     DumpValueObjectOptions
67     GetAsDumpOptions (LanguageRuntimeDescriptionDisplayVerbosity lang_descr_verbosity = eLanguageRuntimeDescriptionDisplayVerbosityFull,
68                       lldb::Format format = lldb::eFormatDefault,
69                       lldb::TypeSummaryImplSP summary_sp = lldb::TypeSummaryImplSP());
70
71     bool show_types : 1,
72          show_location : 1,
73          flat_output : 1,
74          use_objc : 1,
75          use_synth : 1,
76          be_raw : 1,
77          ignore_cap : 1,
78          run_validator : 1;
79     
80     uint32_t no_summary_depth;
81     uint32_t max_depth;
82     uint32_t ptr_depth;
83     lldb::DynamicValueType use_dynamic;
84 };
85
86 } // namespace lldb_private
87
88 #endif  // liblldb_OptionGroupValueObjectDisplay_h_