llvm::sys::path

Types

NameDescription
const_iterator Path iterator.
reverse_iterator Reverse path iterator.

Enums

Name
Style

Functions

NameDescription
append Append to path.
begin Get begin iterator over path.
cache_directory Get the directory where installed packages should put their machine-local cache, e.g. $XDG_CACHE_HOME.
convert_to_slash Replaces backslashes with slashes if Windows.
end Get end iterator over path.
extension Get extension.
filename Get filename.
get_separator Return the preferred separator for this platform.
has_extension Has extension?
has_filename Has filename?
has_parent_path Has parent path?
has_relative_path Has relative path?
has_root_directory Has root directory?
has_root_name Has root name?
has_root_path Has root path?
has_stem Has stem?
home_directory Get the user's home directory.
is_absolute Is path absolute?
is_absolute_gnu Is path absolute using GNU rules?
is_relative Is path relative?
is_separator Check whether the given char is a path separator on the host OS.
is_style_posix Check if S uses POSIX path rules.
is_style_windows Check if S uses Windows path rules.
make_absolute Make path an absolute path.
make_preferred For Windows path styles, convert path to use the preferred path separators. For other styles, do nothing.
native native overloads
parent_path Get parent path.
rbegin Get reverse begin iterator over path.
relative_path Get relative path.
remove_dots Remove './' and optionally '../' components, and canonicalize separators.
remove_filename Remove the last component from path unless it is the root dir.
remove_leading_dotslash Remove redundant leading "./" pieces and consecutive separators.
rend Get reverse end iterator over path.
replace_extension Replace the file extension of path with extension.
replace_path_prefix Replace matching path prefix with another path.
root_directory Get root directory.
root_name Get root name.
root_path Get root path.
stem Get stem.
system_temp_directory Get the typical temporary directory for the system, e.g., "/var/tmp" or "C:/TEMP"
user_config_directory Get the directory where packages should read user-specific configurations. e.g. $XDG_CONFIG_HOME.