mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
[Support] Add a version of sys::fs::equivalent() that treats errors as false.
llvm-svn: 156864
This commit is contained in:
parent
9eca628bf1
commit
35f13a8fee
@ -309,6 +309,13 @@ bool equivalent(file_status A, file_status B);
|
||||
/// platform specific error_code.
|
||||
error_code equivalent(const Twine &A, const Twine &B, bool &result);
|
||||
|
||||
/// @brief Simpler version of equivalent for clients that don't need to
|
||||
/// differentiate between an error and false.
|
||||
inline bool equivalent(const Twine &A, const Twine &B) {
|
||||
bool result;
|
||||
return !equivalent(A, B, result) && result;
|
||||
}
|
||||
|
||||
/// @brief Get file size.
|
||||
///
|
||||
/// @param path Input path.
|
||||
|
Loading…
x
Reference in New Issue
Block a user