diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 13 | ||||
-rw-r--r-- | include/llvm/Support/PathV2.h | 13 |
2 files changed, 13 insertions, 13 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 5b8e2eab8e..121e77066e 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -104,6 +104,19 @@ public: /// @name Physical Operators /// @{ +/// @brief Make \a path an absolute path. +/// +/// Makes \a path absolute using the current directory if it is not already. An +/// empty \a path will result in the current directory. +/// +/// /absolute/path => /absolute/path +/// relative/../path => <current-directory>/relative/../path +/// +/// @param path A path that is modified to be an absolute path. +/// @returns errc::success if \a path has been made absolute, otherwise a +/// platform specific error_code. +error_code make_absolute(SmallVectorImpl<char> &path); + /// @brief Copy the file at \a from to the path \a to. /// /// @param from The path to copy the file from. diff --git a/include/llvm/Support/PathV2.h b/include/llvm/Support/PathV2.h index 79760d1db5..e2006fe266 100644 --- a/include/llvm/Support/PathV2.h +++ b/include/llvm/Support/PathV2.h @@ -117,19 +117,6 @@ inline reverse_iterator rend(const StringRef &path) { /// @name Lexical Modifiers /// @{ -/// @brief Make \a path an absolute path. -/// -/// Makes \a path absolute using the current directory if it is not already. An -/// empty \a path will result in the current directory. -/// -/// /absolute/path => /absolute/path -/// relative/../path => <current-directory>/relative/../path -/// -/// @param path A path that is modified to be an absolute path. -/// @returns errc::success if \a path has been made absolute, otherwise a -/// platform specific error_code. -error_code make_absolute(SmallVectorImpl<char> &path); - /// @brief Remove the last component from \a path unless it is the root dir. /// /// directory/filename.cpp => directory/ |