I have made a similar tool that is a lot more hacky, but does not require compilation or preprocessing of the source (and is this not reliant on any single compiler):
<a href="https:&#x2F;&#x2F;github.com&#x2F;orlp&#x2F;iwyu" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;orlp&#x2F;iwyu</a>.<p>It also does nothing smart, it is user trained. Every symbol prefixed with a namespace you are interested in will be presented to you, and you must tell it where to find the symbol. Any other symbols will be ignored.