Create an empty temporary file without returning an open descriptor.
Synopsis
Declared in <llvm/Support/FileSystem.h>
std::error_code
createTemporaryFile(
Twine const& Prefix,
StringRef Suffix,
SmallVectorImpl<char>& ResultPath,
OpenFlags Flags = OF_None);
Return Value
errc::success if the file was created, otherwise a platform‐specific error_code.
Parameters
Name |
Description |
Prefix |
Prefix for the temporary file name. |
Suffix |
Suffix (extension) for the temporary file name. |
ResultPath |
Set to the created file path on success. |
Flags |
Additional open flags used when creating the file. |
Created with MrDocs