diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-18 20:56:38 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-18 20:56:38 +0000 |
commit | 68ba1825fcaf94bdf7e057ef19585226ec48ce5d (patch) | |
tree | fcbb31282038cfbfdf949b899cd866d8934774a5 /include | |
parent | 41502e1af77443c31138cee309bd89898f23e33a (diff) | |
download | llvm-68ba1825fcaf94bdf7e057ef19585226ec48ce5d.tar.gz llvm-68ba1825fcaf94bdf7e057ef19585226ec48ce5d.tar.bz2 llvm-68ba1825fcaf94bdf7e057ef19585226ec48ce5d.tar.xz |
Add a can_write function to PathV2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184233 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 6de8759dda..21159dd264 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -356,6 +356,12 @@ inline bool exists(const Twine &path) { /// @returns True if we can execute it, false otherwise. bool can_execute(const Twine &Path); +/// @brief Can we write this file? +/// +/// @param Path Input path. +/// @returns True if we can write to it, false otherwise. +bool can_write(const Twine &Path); + /// @brief Do file_status's represent the same thing? /// /// @param A Input file_status. |