LLDB mainline
Namespaces | Functions
Status.cpp File Reference
#include "lldb/Utility/Status.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/Log.h"
#include "lldb/Utility/VASPrintf.h"
#include "lldb/lldb-defines.h"
#include "lldb/lldb-enumerations.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Errno.h"
#include "llvm/Support/FormatProviders.h"
#include <cerrno>
#include <cstdarg>
#include <string>
#include <system_error>
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  llvm
 

Functions

static llvm::Error ErrorFromEnums (Status::ValueType err, ErrorType type, std::string msg)
 
static llvm::Error CloneError (const llvm::Error &error)
 Creates a deep copy of all known errors and converts all other errors to a new llvm::StringError.
 
static ErrorType ErrorCodeToErrorType (std::error_code ec)
 

Function Documentation

◆ CloneError()

static llvm::Error CloneError ( const llvm::Error error)
static

Creates a deep copy of all known errors and converts all other errors to a new llvm::StringError.

Definition at line 121 of file Status.cpp.

References lldb_private::CloneableError::Clone(), lldb_private::clone(), and error().

Referenced by lldb_private::Status::ToError().

◆ ErrorCodeToErrorType()

static ErrorType ErrorCodeToErrorType ( std::error_code  ec)
static

◆ ErrorFromEnums()

static llvm::Error ErrorFromEnums ( Status::ValueType  err,
ErrorType  type,
std::string  msg 
)
static