FIXME: Annotate sys::fs::AccessMode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217685
91177308-0d34-0410-b5e6-
96231b3b80d8
/// not.
bool exists(file_status status);
/// not.
bool exists(file_status status);
+enum class AccessMode { Exist, Write, Execute };
+
/// @brief Can the file be accessed?
///
/// @param Path Input path.
/// @returns errc::success if the path can be accessed, otherwise a
/// platform-specific error_code.
/// @brief Can the file be accessed?
///
/// @param Path Input path.
/// @returns errc::success if the path can be accessed, otherwise a
/// platform-specific error_code.
-enum class AccessMode { Exist, Write, Execute };
std::error_code access(const Twine &Path, AccessMode Mode);
/// @brief Does file exist?
std::error_code access(const Twine &Path, AccessMode Mode);
/// @brief Does file exist?