summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-25 06:32:19 +0000
committerEdward O'Callaghan <eocallaghan@auroraux.org>2009-11-25 06:32:19 +0000
commite49a8e4db92bf8b92f5fa6a13b7c17837c1762de (patch)
tree6908b7b16e4bc528c16fd78ece9e154d2e3f07dd /include
parentb3587cfb3bd2de1675836eca8802661d32d6eb4d (diff)
downloadllvm-e49a8e4db92bf8b92f5fa6a13b7c17837c1762de.tar.gz
llvm-e49a8e4db92bf8b92f5fa6a13b7c17837c1762de.tar.bz2
llvm-e49a8e4db92bf8b92f5fa6a13b7c17837c1762de.tar.xz
API change Path::isSpecialFile to Path::isRegularFile, improve semantics in regards to comments from 89765 post review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/System/Path.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index 04dba1db3e..7edd5c0820 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -380,10 +380,12 @@ 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 directory.
- /// Check for things like /dev/null, any block special file,
+ /// This function checks that what we're trying to work only on a regular file
+ /// or directory. Check for things like /dev/null, any block special file,
/// or other things that aren't "regular" regular files or directories.
- bool isSpecialFile() const;
+ /// @returns true if the file is S_ISREG.
+ /// @brief Determines if the file is a regular file
+ bool isRegularFile() const;
/// This function determines if the path name references an executable
/// file in the file system. This function checks for the existence and