LLVM API Documentation

llvm::FileRemover Class Reference

#include <FileUtilities.h>

Collaboration diagram for llvm::FileRemover:
[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 39 of file FileUtilities.h.


Constructor & Destructor Documentation

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

Definition at line 43 of file FileUtilities.h.

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

Definition at line 46 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 55 of file FileUtilities.h.


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