]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - include/lldb/Interpreter/OptionGroupValueObjectDisplay.h
Vendor import of lldb trunk r290819:
[FreeBSD/FreeBSD.git] / 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 public:
28   OptionGroupValueObjectDisplay();
29
30   ~OptionGroupValueObjectDisplay() 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 AnyOptionWasSet() const {
41     return show_types || no_summary_depth != 0 || show_location ||
42            flat_output || use_objc || max_depth != UINT32_MAX ||
43            ptr_depth != 0 || !use_synth || be_raw || ignore_cap ||
44            run_validator;
45   }
46
47   DumpValueObjectOptions GetAsDumpOptions(
48       LanguageRuntimeDescriptionDisplayVerbosity lang_descr_verbosity =
49           eLanguageRuntimeDescriptionDisplayVerbosityFull,
50       lldb::Format format = lldb::eFormatDefault,
51       lldb::TypeSummaryImplSP summary_sp = lldb::TypeSummaryImplSP());
52
53   bool show_types : 1, show_location : 1, flat_output : 1, use_objc : 1,
54       use_synth : 1, be_raw : 1, ignore_cap : 1, run_validator : 1;
55
56   uint32_t no_summary_depth;
57   uint32_t max_depth;
58   uint32_t ptr_depth;
59   uint32_t elem_count;
60   lldb::DynamicValueType use_dynamic;
61 };
62
63 } // namespace lldb_private
64
65 #endif // liblldb_OptionGroupValueObjectDisplay_h_