diff options
author | Anders Carlsson <andersca@mac.com> | 2011-03-18 19:23:19 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-03-18 19:23:19 +0000 |
commit | 7dbafb3ade491a41100c97597209455ee10c537d (patch) | |
tree | 15d3ab693f93793db68f5e21a8c38d35f069235d /include/clang/Basic/FileManager.h | |
parent | 0d8d7e6067f9093e7d5abc45c9639ab977aab692 (diff) |
Add FileManager::getNoncachedStatValue, which will resolve relative paths against the working directory specified in the file system options.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@127893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/FileManager.h')
-rw-r--r-- | include/clang/Basic/FileManager.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/clang/Basic/FileManager.h b/include/clang/Basic/FileManager.h index 40f6d86563..465f856f94 100644 --- a/include/clang/Basic/FileManager.h +++ b/include/clang/Basic/FileManager.h @@ -195,6 +195,11 @@ public: llvm::MemoryBuffer *getBufferForFile(llvm::StringRef Filename, std::string *ErrorStr = 0); + // getNoncachedStatValue - Will get the 'stat' information for the given path. + // If the path is relative, it will be resolved against the WorkingDir of the + // FileManager's FileSystemOptions. + bool getNoncachedStatValue(llvm::StringRef Path, struct stat &StatBuf); + /// \brief If path is not absolute and FileSystemOptions set the working /// directory, the path is modified to be relative to the given /// working directory. |