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
Showing
- include/clang/Frontend/CompilerInstance.h 2 additions, 0 deletionsinclude/clang/Frontend/CompilerInstance.h
- include/clang/Frontend/PreprocessorOptions.h 5 additions, 1 deletioninclude/clang/Frontend/PreprocessorOptions.h
- include/clang/Serialization/ASTReader.h 17 additions, 2 deletionsinclude/clang/Serialization/ASTReader.h
- lib/Basic/FileManager.cpp 36 additions, 21 deletionslib/Basic/FileManager.cpp
- lib/Frontend/ASTUnit.cpp 2 additions, 0 deletionslib/Frontend/ASTUnit.cpp
- lib/Frontend/CompilerInstance.cpp 5 additions, 2 deletionslib/Frontend/CompilerInstance.cpp
- lib/Frontend/FrontendAction.cpp 1 addition, 0 deletionslib/Frontend/FrontendAction.cpp
- lib/Sema/SemaType.cpp 0 additions, 2 deletionslib/Sema/SemaType.cpp
- lib/Serialization/ASTReader.cpp 23 additions, 17 deletionslib/Serialization/ASTReader.cpp
Loading
Please register or sign in to comment