A virtualized output file that writes to a specific backend.

Synopsis

Declared in <llvm/Support/VirtualOutputFile.h>

class OutputFile;

Description

One of keep(), discard(), or discardOnDestroy() must be called before destruction.

Member Functions

Name

Description

OutputFile [constructor]

Constructors

~OutputFile [destructor]

Destroy the file, discarding if still open per discardOnDestroy().

operator=

Move‐assign from O.

createProxy

Create a proxy stream for clients that need an owned stream.

discard

Discard an output, cleaning up any temporary state. Errors if clean‐up fails.

discardOnDestroy

Discard the output when destroying it if it's still open, sending the result to Handler.

getOS

Return the underlying write stream.

getPath

Return the path of this output file.

hasOpenProxy

Return true if a proxy from createProxy() is still open.

isNull

Check whether this is a null output file.

isOpen

Check if keep() or discard() has already been called.

keep

Keep an output. Errors if this fails.

takeImpl

Take the implementation.

operator bool

Return true if the file is still open.

operator raw_pwrite_stream&

Convert to a reference to the underlying write stream.

operator<<

Write V to the underlying stream.

Non-Member Functions

Name

Description

consumeDiscardOnDestroy

Update File to silently discard itself if it's still open when it's destroyed.

consumeDiscardOnDestroy

Update File to silently discard itself if it's still open when it's destroyed.

Created with MrDocs