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
module-deps.patch
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
