aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/FileManager.h
diff options
context:
space:
mode:
authorAxel Naumann <Axel.Naumann@cern.ch>2012-06-27 09:17:42 +0000
committerAxel Naumann <Axel.Naumann@cern.ch>2012-06-27 09:17:42 +0000
commit3ce42c37b0ef6b10538f5040a33d19a6e6988d05 (patch)
tree9c303510386b6e718df53e454c86225f782b1a1d /include/clang/Basic/FileManager.h
parent1e15e3b78c396c829789e616b313e656814f5947 (diff)
From Vassil Vassilev:
add interface for removing a FileEntry from the cache. Forces a re-read the contents from disk, e.g. because a tool (like cling) wants to pick up a modified file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/FileManager.h')
-rw-r--r--include/clang/Basic/FileManager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/FileManager.h b/include/clang/Basic/FileManager.h
index 909213d748..b14ad83df2 100644
--- a/include/clang/Basic/FileManager.h
+++ b/include/clang/Basic/FileManager.h
@@ -222,6 +222,9 @@ public:
/// FileManager's FileSystemOptions.
bool getNoncachedStatValue(StringRef Path, struct stat &StatBuf);
+ /// \brief Remove the real file Entry from the cache.
+ void InvalidateCache(const FileEntry* Entry);
+
/// \brief If path is not absolute and FileSystemOptions set the working
/// directory, the path is modified to be relative to the given
/// working directory.