[PATCH] D60233: [clang-scan-deps] initial outline of the tool that runs preprocessor to find dependencies over a JSON compilation database
Duncan P. N. Exon Smith via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 15 10:49:30 PDT 2019
dexonsmith added a comment.
In D60233#1467092 <https://reviews.llvm.org/D60233#1467092>, @trixirt wrote:
> A comment by whisperity in the origin WIP did not seem to be addressed.
> Have you looked at IWYU https://github.com/include-what-you-use/include-what-you-use ?
> The end goals of clang-scan-deps and iwyu seem similar so their implementation problems would also be similar.
> The iwyu problems doc is https://github.com/include-what-you-use/include-what-you-use/blob/master/docs/WhyIWYUIsDifficult.md
IWYU doesn't seem related to me. My understanding is:
- IWYU checks that semantic dependencies between source files is reflected by the file dependencies (e.g., semantic dependencies should have matching `#include`s).
- `clang-scan-deps` discovers the transitive file dependencies of a TU.
IIUC, IWYU's implementation challenges are related to mapping/discovering semantic dependencies between source files, which is something that `clang-scan-deps` doesn't care about at all. Can you clarify what link you see?
CHANGES SINCE LAST ACTION
More information about the cfe-commits