diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-02-05 19:42:43 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-02-05 19:42:43 +0000 |
commit | 606c4ac32536be0534e077ee730e6f9085eff3ab (patch) | |
tree | eb1ea38b964d12a13dbf894daf32c3f1c0f73b58 /clang/lib/Frontend/FrontendAction.cpp | |
parent | 0890502f44a1f65f1216c7b0658656dcbf8d3054 (diff) | |
download | bcm5719-llvm-606c4ac32536be0534e077ee730e6f9085eff3ab.tar.gz bcm5719-llvm-606c4ac32536be0534e077ee730e6f9085eff3ab.zip |
Improve our uniquing of file entries when files are re-saved or are
overridden via remapping. Thus, when we create a "virtual" file in the
file manager, we still stat() the real file that lives behind it so
that we can provide proper uniquing based on inodes. This helps keep
the file manager much more consistent.
To take advantage of this when reparsing files in libclang, we disable
the use of the stat() cache when reparsing or performing code
completion, since the stat() cache is very likely to be out of date in
this use case.
llvm-svn: 124971
Diffstat (limited to 'clang/lib/Frontend/FrontendAction.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendAction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/FrontendAction.cpp b/clang/lib/Frontend/FrontendAction.cpp index 5f78fb17723..af23923002d 100644 --- a/clang/lib/Frontend/FrontendAction.cpp +++ b/clang/lib/Frontend/FrontendAction.cpp @@ -224,6 +224,7 @@ bool FrontendAction::BeginSourceFile(CompilerInstance &CI, CI.createPCHExternalASTSource( CI.getPreprocessorOpts().ImplicitPCHInclude, CI.getPreprocessorOpts().DisablePCHValidation, + CI.getPreprocessorOpts().DisableStatCache, DeserialListener); if (!CI.getASTContext().getExternalSource()) goto failure; |