mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-04 03:17:51 +00:00
Add a simpler version of remove_all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184919 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b6df0bc95a
commit
903701dfb7
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user