git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184955
91177308-0d34-0410-b5e6-
96231b3b80d8
/// otherwise a platform specific error_code.
error_code create_directories(const Twine &path, bool &existed);
/// otherwise a platform specific error_code.
error_code create_directories(const Twine &path, bool &existed);
+/// @brief Convenience function for clients that don't need to know if the
+/// directory existed or not.
+inline error_code create_directories(const Twine &Path) {
+ bool Existed;
+ return create_directories(Path, Existed);
+}
+
/// @brief Create the directory in path.
///
/// @param path Directory to create.
/// @brief Create the directory in path.
///
/// @param path Directory to create.
/// otherwise a platform specific error_code.
error_code create_directory(const Twine &path, bool &existed);
/// otherwise a platform specific error_code.
error_code create_directory(const Twine &path, bool &existed);
+/// @brief Convenience function for clients that don't need to know if the
+/// directory existed or not.
+inline error_code create_directory(const Twine &Path) {
+ bool Existed;
+ return create_directory(Path, Existed);
+}
+
/// @brief Create a hard link from \a from to \a to.
///
/// @param to The path to hard link to.
/// @brief Create a hard link from \a from to \a to.
///
/// @param to The path to hard link to.