Return Error::success() or use TempPath and OutputPath to create a TempFileOutputError, depending on EC.

Synopsis

Declared in <llvm/Support/VirtualOutputError.h>

Error
convertToTempFileOutputError(
    Twine const& TempPath,
    Twine const& OutputPath,
    std::error_code EC);

Return Value

Error::success() if EC indicates success; otherwise a TempFileOutputError.

Parameters

Name

Description

TempPath

Path of the temporary file associated with the error.

OutputPath

Path of the final output associated with the error.

EC

Error code; on success, returns Error::success().

Created with MrDocs