aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/PathV2.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/PathV2.h')
-rw-r--r--include/llvm/Support/PathV2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/PathV2.h b/include/llvm/Support/PathV2.h
index 3866e410e6..251563398f 100644
--- a/include/llvm/Support/PathV2.h
+++ b/include/llvm/Support/PathV2.h
@@ -258,6 +258,12 @@ const StringRef stem(StringRef path);
/// @result The extension of \a path.
const StringRef extension(StringRef path);
+/// @brief Check whether the given char is a path separator on the host OS.
+///
+/// @param value a character
+/// @result true if \a value is a path separator character on the host OS
+bool is_separator(char value);
+
/// @brief Has root name?
///
/// root_name != ""