37 : m_opaque_up(new
Status(std::move(status))) {
71 bool ret_value =
false;
82 bool ret_value =
true;
143int SBError::SetErrorStringWithFormat(
const char *format, ...) {
147 va_start(args, format);
148 if (format !=
nullptr && format[0]) {
149 llvm::SmallString<1024> buf;
151 string = std::string(buf.str());
155 return string.size();
160 return this->
operator bool();
162SBError::operator bool()
const {
165 return m_opaque_up !=
nullptr;
192 description.Printf(
"success");
195 description.Printf(
"error: %s",
196 (err_string !=
nullptr ? err_string :
""));
199 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()
static Status FromErrno()
Set the current error to errno.
static Status FromErrorString(const char *str)
A class that represents a running process on the host machine.
bool VASprintf(llvm::SmallVectorImpl< char > &buf, const char *fmt, va_list args)