[llvm] r184919 - Add a simpler version of remove_all.
Rafael Espindola
rafael.espindola at gmail.com
Tue Jun 25 23:06:54 PDT 2013
Author: rafael
Date: Wed Jun 26 01:06:54 2013
New Revision: 184919
URL: http://llvm.org/viewvc/llvm-project?rev=184919&view=rev
Log:
Add a simpler version of remove_all.
Modified:
llvm/trunk/include/llvm/Support/FileSystem.h
Modified: llvm/trunk/include/llvm/Support/FileSystem.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/FileSystem.h?rev=184919&r1=184918&r2=184919&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/FileSystem.h (original)
+++ llvm/trunk/include/llvm/Support/FileSystem.h Wed Jun 26 01:06:54 2013
@@ -327,6 +327,13 @@ inline error_code remove(const Twine &Pa
/// 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.
More information about the llvm-commits
mailing list