Proposal: Dependency pre-scanner for generated includes

FYI, I found a similar issue.

My proposal will help him, but seems too late.