LLVM API Documentation

llvm::FileRemover Class Reference

#include <FileUtilities.h>

Collaboration diagram for llvm::FileRemover:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 FileRemover (const sys::Path &filename, bool deleteIt=true)
 ~FileRemover ()
void releaseFile ()

Detailed Description

FileRemover - This class is a simple object meant to be stack allocated. If an exception is thrown from a region, the object removes the filename specified (if deleteIt is true).

Definition at line 38 of file FileUtilities.h.


Constructor & Destructor Documentation

llvm::FileRemover::FileRemover ( const sys::Path filename,
bool  deleteIt = true 
) [inline]

Definition at line 42 of file FileUtilities.h.

llvm::FileRemover::~FileRemover (  )  [inline]

Definition at line 45 of file FileUtilities.h.

References llvm::sys::Path::eraseFromDisk().


Member Function Documentation

void llvm::FileRemover::releaseFile (  )  [inline]

releaseFile - Take ownership of the file away from the FileRemover so it will not be removed when the object is destroyed.

Definition at line 54 of file FileUtilities.h.


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