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 | 8ef6c8cb6c5627240e2339fd7062c9873f821d7e (patch) | |
tree | ea2de2fee0c52aa6578becac75dc168d286d7229 /include/clang/Frontend/PreprocessorOptions.h | |
parent | f677ea3cc9598d9952ad7ffab5fb322ba4c5be31 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124971 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Frontend/PreprocessorOptions.h')
-rw-r--r-- | include/clang/Frontend/PreprocessorOptions.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/clang/Frontend/PreprocessorOptions.h b/include/clang/Frontend/PreprocessorOptions.h index 2a540b61df..0d52e53ea1 100644 --- a/include/clang/Frontend/PreprocessorOptions.h +++ b/include/clang/Frontend/PreprocessorOptions.h @@ -48,6 +48,10 @@ public: /// precompiled headers. bool DisablePCHValidation; + /// \brief When true, disables the use of the stat cache within a + /// precompiled header or AST file. + bool DisableStatCache; + /// \brief Dump declarations that are deserialized from PCH, for testing. bool DumpDeserializedPCHDecls; @@ -125,7 +129,7 @@ public: public: PreprocessorOptions() : UsePredefines(true), DetailedRecord(false), - DisablePCHValidation(false), + DisablePCHValidation(false), DisableStatCache(false), DumpDeserializedPCHDecls(false), PrecompiledPreambleBytes(0, true), RetainRemappedFileBuffers(false) { } |