ΒΆstd::error_code getPotentiallyUniqueFileName(
    const llvm::Twine& Model,
    SmallVectorImpl<char>& ResultPath)

Description

Get a unique name, not currently exisiting in the filesystem. Subject to race conditions, prefer to use createUniqueFile instead. Similar to createUniqueFile, 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 createUniqueFile instead.

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

Parameters

const llvm::Twine& Model
SmallVectorImpl<char>& ResultPath