68 uint64_t start_val =
m_start->GetValueAsUnsigned(0);
69 uint64_t finish_val =
m_finish->GetValueAsUnsigned(0);
71 if (start_val == 0 || finish_val == 0)
74 if (start_val >= finish_val)
77 size_t num_children = (finish_val - start_val);
90 offset = offset +
m_start->GetValueAsUnsigned(0);
92 name.
Printf(
"[%" PRIu64
"]", (uint64_t)idx);
107 if (std::optional<uint64_t> size =
117 if (!start || !finish)
126llvm::Expected<size_t>
130 return llvm::createStringError(
"Type has no child named '%s'",
134 return llvm::createStringError(
"Type has no child named '%s'",
137 return *optional_idx;
Generic representation of a type in a programming language.
CompilerType GetTypeTemplateArgument(size_t idx, bool expand_pack=false) const
size_t GetNumTemplateArguments(bool expand_pack=false) const
Return the number of template arguments the type has.
A uniqued constant string class.
const char * AsCString(const char *value_if_empty=nullptr) const
Get the string value as a C string.
const char * GetCString() const
Get the string value as a C string.
llvm::StringRef GetString() const
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
SyntheticChildrenFrontEnd(ValueObject &backend)
lldb::ValueObjectSP CreateValueObjectFromAddress(llvm::StringRef name, uint64_t address, const ExecutionContext &exe_ctx, CompilerType type, bool do_deref=true)
A class that represents a running process on the host machine.
ChildCacheState
Specifies if children need to be re-computed after a call to SyntheticChildrenFrontEnd::Update.
@ eRefetch
Children need to be recomputed dynamically.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP