aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System/Path.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/System/Path.h')
-rw-r--r--include/llvm/System/Path.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index 3b73a12..19684d3 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -380,6 +380,11 @@ namespace sys {
/// in the file system.
bool canWrite() const;
+ /// This function checks that what we're trying to work only on a regular file or Dir.
+ /// Check for things like /dev/null, any block special file,
+ /// or other things that aren't "regular" files.
+ bool isSpecialFile() const;
+
/// This function determines if the path name references an executable
/// file in the file system. This function checks for the existence and
/// executability (by the current program) of the file.