Add module dependencies with -MD, -MMD

Ben Langmuir blangmuir at apple.com
Wed Jan 22 16:40:00 PST 2014


This patch adds module dependencies to the dependency files created by -MD/-MMD/etc.  It does so by attaching an ASTReaderListener that will call into the dependency file generator when a module input file is seen in the serialized AST.  In order to add/not add system headers appropriately, the IsSystem flag from the clang::Module is passed through the ASTReader and ModuleFile.  There was also an addition to allow chaining ASTReaderListeners (let me know if you’d prefer that to be a separate patch).

Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: module-deps.patch
Type: application/octet-stream
Size: 28912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140122/b05185fc/attachment.obj>


More information about the cfe-commits mailing list