by ndesaulniers · 3y ago · 0 comments
What we actually need is tooling to help recommend how to refactor or split headers in a way to reduce having to parse a ton of dead code.
Or even better, tooling that would generate one off headers per TU. I think it could be done.
Anyone have experience with PCHs? Good or bad?
Looks like https://include-what-you-use.org/ might do that.
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.