aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic/SourceManager.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-06-06 22:42:39 +0000
committerTed Kremenek <kremenek@apple.com>2008-06-06 22:42:39 +0000
commitc0c03bc3c4669897ce8a995d7c20d9c71bc7cc8f (patch)
tree9ce39c5f3c0cb22cc0dc4d0b199af5764dc6afef /include/clang/Basic/SourceManager.h
parent2505d73303a1edf00209612fa5a13dad4bf12ed2 (diff)
Use a common SourceManager when processing multiple files. This allows us to cache the contents of source files already loaded from disk.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/SourceManager.h')
-rw-r--r--include/clang/Basic/SourceManager.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/clang/Basic/SourceManager.h b/include/clang/Basic/SourceManager.h
index 700dcd31ac..e5ebbf9dff 100644
--- a/include/clang/Basic/SourceManager.h
+++ b/include/clang/Basic/SourceManager.h
@@ -231,6 +231,7 @@ public:
~SourceManager() {}
void clearIDTables() {
+ MainFileID = 0;
FileIDs.clear();
MacroIDs.clear();
LastLineNoFileIDQuery = ~0U;