35 : m_opaque_up(new
Status(status)) {
67 bool ret_value =
false;
78 bool ret_value =
true;
139int SBError::SetErrorStringWithFormat(
const char *format, ...) {
142 va_start(args, format);
143 int num_chars =
m_opaque_up->SetErrorStringWithVarArg(format, args);
150 return this->
operator bool();
152SBError::operator bool()
const {
155 return m_opaque_up !=
nullptr;
182 description.Printf(
"success");
185 description.Printf(
"error: %s",
186 (err_string !=
nullptr ? err_string :
""));
189 description.Printf(
"error: <NULL>");
#define LLDB_INSTRUMENT_VA(...)
uint32_t GetError() const
bool GetDescription(lldb::SBStream &description)
std::unique_ptr< lldb_private::Status > m_opaque_up
void SetErrorString(const char *err_str)
void SetError(uint32_t err, lldb::ErrorType type)
const SBError & operator=(const lldb::SBError &rhs)
lldb_private::Status & ref()
lldb::ErrorType GetType() const
const lldb_private::Status & operator*() const
void SetErrorToGenericError()
const char * GetCString() const
Get the error string as a NULL terminated UTF8 c-string.
lldb_private::Status * operator->()
lldb_private::Status * get()
A class that represents a running process on the host machine.
std::unique_ptr< T > clone(const std::unique_ptr< T > &src)