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:
parent
edcc61ba22
commit
7a13bd426f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user