aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/FileSystem.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-26 06:06:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-26 06:06:54 +0000
commit903701dfb7b03b9390c763bb1e2c0b64eec60a30 (patch)
treee36a5d5a7bd7dfce2d77d55f4e3fbcdec265dd89 /include/llvm/Support/FileSystem.h
parentb6df0bc95a7c8bee3fd43dea771e53a59cc1d597 (diff)
downloadexternal_llvm-903701dfb7b03b9390c763bb1e2c0b64eec60a30.zip
external_llvm-903701dfb7b03b9390c763bb1e2c0b64eec60a30.tar.gz
external_llvm-903701dfb7b03b9390c763bb1e2c0b64eec60a30.tar.bz2
Add a simpler version of remove_all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184919 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r--include/llvm/Support/FileSystem.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h
index 699bf4b..c5fe2a5 100644
--- a/include/llvm/Support/FileSystem.h
+++ b/include/llvm/Support/FileSystem.h
@@ -327,6 +327,13 @@ inline error_code remove(const Twine &Path) {
/// successfully set, otherwise a platform specific error_code.
error_code remove_all(const Twine &path, uint32_t &num_removed);
+/// @brief Convenience function for clients that don't need to know how many
+/// files were removed.
+inline error_code remove_all(const Twine &Path) {
+ uint32_t Removed;
+ return remove_all(Path, Removed);
+}
+
/// @brief Rename \a from to \a to. Files are renamed as if by POSIX rename().
///
/// @param from The path to rename from.