]> granicus.if.org Git - clang/commit
Consider module depedencies when checking a preamble in libclang
authorBen Langmuir <blangmuir@apple.com>
Mon, 30 Jun 2014 20:04:14 +0000 (20:04 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 30 Jun 2014 20:04:14 +0000 (20:04 +0000)
commitf4f9e50a67171086e09ae051737e602e4f0171a9
tree6c95fbbf0632efbe679ee05b2b7dcd95a937a258
parent273bb34c380be738b1d003885d426c40e878ad5d
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
include/clang/Frontend/CompilerInstance.h
include/clang/Frontend/Utils.h
lib/Frontend/ASTUnit.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/DependencyFile.cpp
unittests/libclang/LibclangTest.cpp