LLVM: llvm::sys::fs::TempFile Class Reference (original) (raw)

Represents a temporary file. More...

#include "[llvm/Support/FileSystem.h](FileSystem%5F8h%5Fsource.html)"

Public Member Functions
LLVM_ABI TempFile (TempFile &&Other)
LLVM_ABI TempFile & operator= (TempFile &&Other)
LLVM_ABI Error keep (const Twine &Name)
LLVM_ABI Error keep ()
LLVM_ABI Error discard ()
LLVM_ABI ~TempFile ()
Public Attributes
std::string TmpName
int FD = -1

Detailed Description

Represents a temporary file.

The temporary file must be eventually discarded or given a final name and kept.

The destructor doesn't implicitly discard because there is no way to properly handle errors in a destructor.

Definition at line 845 of file FileSystem.h.

Constructor & Destructor Documentation

llvm::sys::fs::TempFile::TempFile ( TempFile && Other )

~TempFile()

llvm::sys::fs::TempFile::~TempFile ( )

Member Function Documentation

create()

discard()

Error llvm::sys::fs::TempFile::discard ( )

keep() [1/2]

Error llvm::sys::fs::TempFile::keep ( )

keep() [2/2]

operator=()

Member Data Documentation

FD

int llvm::sys::fs::TempFile::FD = -1

TmpName

std::string llvm::sys::fs::TempFile::TmpName


The documentation for this class was generated from the following files: