1 //===-- OptionGroupValueObjectDisplay.h -------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_OptionGroupValueObjectDisplay_h_
11 #define liblldb_OptionGroupValueObjectDisplay_h_
15 // Other libraries and framework includes
17 #include "lldb/Core/ValueObject.h"
18 #include "lldb/Interpreter/Options.h"
20 namespace lldb_private {
22 //-------------------------------------------------------------------------
23 // OptionGroupValueObjectDisplay
24 //-------------------------------------------------------------------------
26 class OptionGroupValueObjectDisplay : public OptionGroup {
28 OptionGroupValueObjectDisplay();
30 ~OptionGroupValueObjectDisplay() override;
32 llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
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;
38 void OptionParsingStarting(ExecutionContext *execution_context) override;
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 ||
47 DumpValueObjectOptions GetAsDumpOptions(
48 LanguageRuntimeDescriptionDisplayVerbosity lang_descr_verbosity =
49 eLanguageRuntimeDescriptionDisplayVerbosityFull,
50 lldb::Format format = lldb::eFormatDefault,
51 lldb::TypeSummaryImplSP summary_sp = lldb::TypeSummaryImplSP());
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;
56 uint32_t no_summary_depth;
60 lldb::DynamicValueType use_dynamic;
63 } // namespace lldb_private
65 #endif // liblldb_OptionGroupValueObjectDisplay_h_