ΒΆstd::error_code getPotentiallyUniqueTempFileName(
    const llvm::Twine& Prefix,
    llvm::StringRef Suffix,
    SmallVectorImpl<char>& ResultPath)

Description

Get a unique temporary file name, not currently exisiting in the filesystem. Subject to race conditions, prefer to use createTemporaryFile instead. Similar to createTemporaryFile, but instead of creating a file only checks if it exists. This function is subject to race conditions, if you want to use the returned name to actually create a file, use createTemporaryFile instead.

Declared at: llvm/include/llvm/Support/FileSystem.h:928

Parameters

const llvm::Twine& Prefix
llvm::StringRef Suffix
SmallVectorImpl<char>& ResultPath