Hacker News new | ask | show | jobs
by ra1231963 1044 days ago
He mentions some tools at the bottom (ClangBuildAnalyzer, Build Insights in Visual Studio, include-what-you-use).

Looks like https://include-what-you-use.org/ might do that.

1 comments

I'm having an intern start in the fall to work on integrating IWYU into the kernel's build system, kbuild.

One major deficiency in IWYU that we will have to solve is that IWYU only understands post-preprocessed sources.

If you have preprocessor guards for some code (as is done extensively in the Linux kernel) IWYU can recommend changes that break the build for other configurations than the one used when running IWYU.