aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/System/Path.h
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-24 15:19:10 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-24 15:19:10 +0000
commitd41e944501a57aadf05b160ac30f383ed0432060 (patch)
treef6ca9493e28d8c99f3b156e31f1df222f9ca4260 /include/llvm/System/Path.h
parentde8d3b73c85aa1a68959d296088fe022c839003f (diff)
downloadexternal_llvm-d41e944501a57aadf05b160ac30f383ed0432060.zip
external_llvm-d41e944501a57aadf05b160ac30f383ed0432060.tar.gz
external_llvm-d41e944501a57aadf05b160ac30f383ed0432060.tar.bz2
Provide Path::isSpecialFile interface for PR5568.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89765 91177308-0d34-0410-b5e6-96231b3b80d8
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.