13#include "llvm/Support/ErrorExtras.h"
69 uint64_t start_val =
m_start->GetValueAsUnsigned(0);
70 uint64_t finish_val =
m_finish->GetValueAsUnsigned(0);
72 if (start_val == 0 || finish_val == 0)
75 if (start_val >= finish_val)
78 size_t num_children = (finish_val - start_val);
91 offset = offset +
m_start->GetValueAsUnsigned(0);
93 name.
Printf(
"[%" PRIu64
"]", (uint64_t)idx);
108 if (std::optional<uint64_t> size =
118 if (!start || !finish)
127llvm::Expected<size_t>
131 return llvm::createStringErrorV(
"type has no child named '{0}'", name);
134 return llvm::createStringErrorV(
"type has no child named '{0}'", name);
136 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 * 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