enum CreationDisposition
Declared at: llvm/include/llvm/Support/FileSystem.h:734
Enumerators
Name | Value | Comment |
---|---|---|
CD_CreateAlways | 0 | CD_CreateAlways - When opening a file: * If it already exists, truncate it. * If it does not already exist, create a new file. |
CD_CreateNew | 1 | CD_CreateNew - When opening a file: * If it already exists, fail. * If it does not already exist, create a new file. |
CD_OpenExisting | 2 | CD_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_OpenAlways | 3 | CD_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. |