aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/FileManager.h
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2012-07-31 13:56:54 +0000
committerManuel Klimek <klimek@google.com>2012-07-31 13:56:54 +0000
commit98be86038b1e891a05583061c55dfa974150eb2c (patch)
treed041d4555a73126098095ee3d756390ffcd203b3 /include/clang/Basic/FileManager.h
parent94be8ea90795d00fe2a97fea9a9a727911a70997 (diff)
Fixes a segfault in Tooling when using pch's:
Clear the FileManager's stat cache in between running translation units, as the stat cache loaded from a pch is only valid for one compiler invocation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161047 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 930523f4a7..b00f2b7827 100644
--- a/include/clang/Basic/FileManager.h
+++ b/include/clang/Basic/FileManager.h
@@ -186,6 +186,9 @@ public:
/// \brief Removes the specified FileSystemStatCache object from the manager.
void removeStatCache(FileSystemStatCache *statCache);
+ /// \brief Removes all FileSystemStatCache objects from the manager.
+ void clearStatCaches();
+
/// \brief Lookup, cache, and verify the specified directory (real or
/// virtual).
///