diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2014-01-31 23:46:06 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2014-01-31 23:46:06 +0000 |
commit | bef2236283c333f17613b2ea4904878228fedb6e (patch) | |
tree | 0cd1ac4a44a055999bc0cdf6fb08717d341b44e9 /include | |
parent | f10743d765c456db7c9cd2a9fe4c528d75bb5b8f (diff) | |
download | llvm-bef2236283c333f17613b2ea4904878228fedb6e.tar.gz llvm-bef2236283c333f17613b2ea4904878228fedb6e.tar.bz2 llvm-bef2236283c333f17613b2ea4904878228fedb6e.tar.xz |
Introduce llvm::sys::path::home_directory.
This will be used by the line editor library to derive a default path to
the history file.
Differential Revision: http://llvm-reviews.chandlerc.com/D2199
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/Path.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/Path.h b/include/llvm/Support/Path.h index b2afe1b8e8..ba18529b48 100644 --- a/include/llvm/Support/Path.h +++ b/include/llvm/Support/Path.h @@ -306,6 +306,12 @@ bool is_separator(char value); /// @param result Holds the resulting path name. void system_temp_directory(bool erasedOnReboot, SmallVectorImpl<char> &result); +/// @brief Get the user's home directory. +/// +/// @param result Holds the resulting path name. +/// @result True if a home directory is set, false otherwise. +bool home_directory(SmallVectorImpl<char> &result); + /// @brief Has root name? /// /// root_name != "" |