enum CreationDisposition

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

Enumerators

NameValueComment
CD_CreateAlways0CD_CreateAlways - When opening a file: * If it already exists, truncate it. * If it does not already exist, create a new file.
CD_CreateNew1CD_CreateNew - When opening a file: * If it already exists, fail. * If it does not already exist, create a new file.
CD_OpenExisting2CD_OpenExisting - When opening a file: * If it already exists, open the file with the offset set to 0. * If it does not already exist, fail.
CD_OpenAlways3CD_OpenAlways - When opening a file: * If it already exists, open the file with the offset set to 0. * If it does not already exist, create a new file.