Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:50

0001 //===-- OptionGroupValueObjectDisplay.h -------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_INTERPRETER_OPTIONGROUPVALUEOBJECTDISPLAY_H
0010 #define LLDB_INTERPRETER_OPTIONGROUPVALUEOBJECTDISPLAY_H
0011 
0012 #include "lldb/Interpreter/Options.h"
0013 #include "lldb/ValueObject/ValueObject.h"
0014 
0015 namespace lldb_private {
0016 
0017 // OptionGroupValueObjectDisplay
0018 
0019 class OptionGroupValueObjectDisplay : public OptionGroup {
0020 public:
0021   OptionGroupValueObjectDisplay() = default;
0022 
0023   ~OptionGroupValueObjectDisplay() override = default;
0024 
0025   llvm::ArrayRef<OptionDefinition> GetDefinitions() override;
0026 
0027   Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
0028                         ExecutionContext *execution_context) override;
0029 
0030   void OptionParsingStarting(ExecutionContext *execution_context) override;
0031 
0032   bool AnyOptionWasSet() const {
0033     return show_types || no_summary_depth != 0 || show_location ||
0034            flat_output || use_objc || max_depth != UINT32_MAX ||
0035            ptr_depth != 0 || !use_synth || be_raw || ignore_cap ||
0036            run_validator;
0037   }
0038 
0039   DumpValueObjectOptions GetAsDumpOptions(
0040       LanguageRuntimeDescriptionDisplayVerbosity lang_descr_verbosity =
0041           eLanguageRuntimeDescriptionDisplayVerbosityFull,
0042       lldb::Format format = lldb::eFormatDefault,
0043       lldb::TypeSummaryImplSP summary_sp = lldb::TypeSummaryImplSP());
0044 
0045   bool show_types : 1, show_location : 1, flat_output : 1, use_objc : 1,
0046       use_synth : 1, be_raw : 1, ignore_cap : 1, run_validator : 1,
0047       max_depth_is_default : 1;
0048 
0049   uint32_t no_summary_depth;
0050   uint32_t max_depth;
0051   uint32_t ptr_depth;
0052   uint32_t elem_count;
0053   lldb::DynamicValueType use_dynamic;
0054 };
0055 
0056 } // namespace lldb_private
0057 
0058 #endif // LLDB_INTERPRETER_OPTIONGROUPVALUEOBJECTDISPLAY_H