LLDB  mainline
OptionGroupValueObjectDisplay.h
Go to the documentation of this file.
1 //===-- OptionGroupValueObjectDisplay.h -------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_INTERPRETER_OPTIONGROUPVALUEOBJECTDISPLAY_H
10 #define LLDB_INTERPRETER_OPTIONGROUPVALUEOBJECTDISPLAY_H
11 
12 #include "lldb/Core/ValueObject.h"
14 
15 namespace lldb_private {
16 
17 // OptionGroupValueObjectDisplay
18 
20 public:
22 
23  ~OptionGroupValueObjectDisplay() override = default;
24 
25  llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
26 
27  Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
28  ExecutionContext *execution_context) override;
29 
30  void OptionParsingStarting(ExecutionContext *execution_context) override;
31 
32  bool AnyOptionWasSet() const {
33  return show_types || no_summary_depth != 0 || show_location ||
35  ptr_depth != 0 || !use_synth || be_raw || ignore_cap ||
37  }
38 
40  LanguageRuntimeDescriptionDisplayVerbosity lang_descr_verbosity =
43  lldb::TypeSummaryImplSP summary_sp = lldb::TypeSummaryImplSP());
44 
45  bool show_types : 1, show_location : 1, flat_output : 1, use_objc : 1,
47 
53 };
54 
55 } // namespace lldb_private
56 
57 #endif // LLDB_INTERPRETER_OPTIONGROUPVALUEOBJECTDISPLAY_H
lldb_private::ExecutionContext
Definition: ExecutionContext.h:291
lldb_private::LanguageRuntimeDescriptionDisplayVerbosity
LanguageRuntimeDescriptionDisplayVerbosity
Definition: lldb-private-enumerations.h:160
lldb::Format
Format
Display format definitions.
Definition: lldb-enumerations.h:155
lldb_private::OptionGroup
Definition: Options.h:233
lldb_private::OptionGroupValueObjectDisplay::use_synth
bool use_synth
Definition: OptionGroupValueObjectDisplay.h:46
lldb_private::OptionGroupValueObjectDisplay::run_validator
bool run_validator
Definition: OptionGroupValueObjectDisplay.h:46
Options.h
lldb_private::OptionGroupValueObjectDisplay::flat_output
bool flat_output
Definition: OptionGroupValueObjectDisplay.h:45
lldb_private::OptionGroupValueObjectDisplay::use_dynamic
lldb::DynamicValueType use_dynamic
Definition: OptionGroupValueObjectDisplay.h:52
lldb_private::OptionGroupValueObjectDisplay::show_location
bool show_location
Definition: OptionGroupValueObjectDisplay.h:45
lldb_private::OptionGroupValueObjectDisplay::max_depth
uint32_t max_depth
Definition: OptionGroupValueObjectDisplay.h:49
lldb::DynamicValueType
DynamicValueType
Definition: lldb-enumerations.h:490
lldb_private::OptionGroupValueObjectDisplay::~OptionGroupValueObjectDisplay
~OptionGroupValueObjectDisplay() override=default
lldb_private::OptionGroupValueObjectDisplay
Definition: OptionGroupValueObjectDisplay.h:19
lldb_private::OptionGroupValueObjectDisplay::show_types
bool show_types
Definition: OptionGroupValueObjectDisplay.h:45
ValueObject.h
lldb_private::OptionGroupValueObjectDisplay::GetDefinitions
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
Definition: OptionGroupValueObjectDisplay.cpp:64
lldb_private::OptionGroupValueObjectDisplay::use_objc
bool use_objc
Definition: OptionGroupValueObjectDisplay.h:45
lldb_private::OptionGroupValueObjectDisplay::GetAsDumpOptions
DumpValueObjectOptions GetAsDumpOptions(LanguageRuntimeDescriptionDisplayVerbosity lang_descr_verbosity=eLanguageRuntimeDescriptionDisplayVerbosityFull, lldb::Format format=lldb::eFormatDefault, lldb::TypeSummaryImplSP summary_sp=lldb::TypeSummaryImplSP())
Definition: OptionGroupValueObjectDisplay.cpp:183
lldb_private::Status
Definition: Status.h:44
uint32_t
lldb_private::eLanguageRuntimeDescriptionDisplayVerbosityFull
@ eLanguageRuntimeDescriptionDisplayVerbosityFull
Definition: lldb-private-enumerations.h:164
lldb_private::OptionGroupValueObjectDisplay::AnyOptionWasSet
bool AnyOptionWasSet() const
Definition: OptionGroupValueObjectDisplay.h:32
UINT32_MAX
#define UINT32_MAX
Definition: lldb-defines.h:31
lldb_private::DumpValueObjectOptions
Definition: DumpValueObjectOptions.h:22
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::OptionGroupValueObjectDisplay::no_summary_depth
uint32_t no_summary_depth
Definition: OptionGroupValueObjectDisplay.h:48
lldb_private::OptionGroupValueObjectDisplay::OptionParsingStarting
void OptionParsingStarting(ExecutionContext *execution_context) override
Definition: OptionGroupValueObjectDisplay.cpp:157
lldb_private::OptionGroupValueObjectDisplay::elem_count
uint32_t elem_count
Definition: OptionGroupValueObjectDisplay.h:51
lldb_private::OptionGroupValueObjectDisplay::OptionGroupValueObjectDisplay
OptionGroupValueObjectDisplay()=default
lldb_private::OptionGroupValueObjectDisplay::SetOptionValue
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
Definition: OptionGroupValueObjectDisplay.cpp:68
lldb_private::OptionGroupValueObjectDisplay::be_raw
bool be_raw
Definition: OptionGroupValueObjectDisplay.h:46
lldb::eFormatDefault
@ eFormatDefault
Definition: lldb-enumerations.h:156
lldb_private::OptionGroupValueObjectDisplay::ignore_cap
bool ignore_cap
Definition: OptionGroupValueObjectDisplay.h:46
lldb_private::OptionGroupValueObjectDisplay::ptr_depth
uint32_t ptr_depth
Definition: OptionGroupValueObjectDisplay.h:50