aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/FileManager.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-23 21:17:56 +0000
committerChris Lattner <sabre@nondot.org>2010-11-23 21:17:56 +0000
commit898a061f69e1145bf89a987c08203132b9922a3c (patch)
treebde19ba5ef8b70e02451772ced8e6d09920ee4e0 /include/clang/Basic/FileManager.h
parentf9f7766846a205bc900b578f944567e679b221aa (diff)
change the 'is directory' indicator to be a null-or-not
pointer that is passed down through the APIs, and make FileSystemStatCache::get be the one that filters out directory lookups that hit files. This also paves the way to have stat queries be able to return opened files. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/FileManager.h')
-rw-r--r--include/clang/Basic/FileManager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/clang/Basic/FileManager.h b/include/clang/Basic/FileManager.h
index 8e97062b44..a32f65a598 100644
--- a/include/clang/Basic/FileManager.h
+++ b/include/clang/Basic/FileManager.h
@@ -131,7 +131,8 @@ class FileManager {
// Caching.
llvm::OwningPtr<FileSystemStatCache> StatCache;
- bool getStatValue(const char *Path, struct stat &StatBuf, bool isForDir);
+ bool getStatValue(const char *Path, struct stat &StatBuf,
+ int *FileDescriptor);
public:
FileManager(const FileSystemOptions &FileSystemOpts);
~FileManager();