llvm.org GIT mirror llvm / 880545e
PathV2: Add simplified version of exists that returns false on error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141450 91177308-0d34-0410-b5e6-96231b3b80d8 Michael J. Spencer 8 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
220220 /// platform specific error_code.
221221 error_code exists(const Twine &path, bool &result);
222222
223 /// @brief Simpler version of exists for clients that don't need to
224 /// differentiate between an error and false.
225 inline bool exists(const Twine &path) {
226 bool result;
227 return !exists(path, result) && result;
228 }
229
223230 /// @brief Do file_status's represent the same thing?
224231 ///
225232 /// @param A Input file_status.