Consider module depedencies when checking a preamble in libclang
Add module dependencies (header files, module map files) to the list of files to check when deciding whether to rebuild a preamble. That fixes using preambles with module imports so long as they are in non-overridden files. My intent is to use to unify the existing dependency collectors to the new “DependencyCollectory” interface from this commit, starting with the DependencyFileGenerator. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@212060 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Frontend/CompilerInstance.h 6 additions, 0 deletionsinclude/clang/Frontend/CompilerInstance.h
- include/clang/Frontend/Utils.h 33 additions, 0 deletionsinclude/clang/Frontend/Utils.h
- lib/Frontend/ASTUnit.cpp 9 additions, 15 deletionslib/Frontend/ASTUnit.cpp
- lib/Frontend/CompilerInstance.cpp 6 additions, 0 deletionslib/Frontend/CompilerInstance.cpp
- lib/Frontend/DependencyFile.cpp 99 additions, 0 deletionslib/Frontend/DependencyFile.cpp
- unittests/libclang/LibclangTest.cpp 34 additions, 1 deletionunittests/libclang/LibclangTest.cpp
Loading
Please register or sign in to comment