1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

PathV2: Add simplified version of exists that returns false on error.

llvm-svn: 141450
This commit is contained in:
Michael J. Spencer 2011-10-08 00:18:12 +00:00
parent edcc61ba22
commit 7a13bd426f

View File

@ -221,6 +221,13 @@ bool exists(file_status status);
/// platform specific error_code.
error_code exists(const Twine &path, bool &result);
/// @brief Simpler version of exists for clients that don't need to
/// differentiate between an error and false.
inline bool exists(const Twine &path) {
bool result;
return !exists(path, result) && result;
}
/// @brief Do file_status's represent the same thing?
///
/// @param A Input file_status.