Add support for include-what-you-use in CMake
Open
Component - Build
- Dominant language
- C
- Stars
- 988
- Forks
- 355
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 12
Description
Header usage in the HDF5 library is a mess. It's easy to trip over circular includes due to all the implicit including that takes place.
Adding CMake support for running the `include-what-you-use` tool while compiling would help developers clean up the mess. CMake has decent support for the tool, so we'd just need an option and a few lines of code.
More IWYU info here:
https://include-what-you-use.org/
Contributor guide
Assessment
This issue has not been assessed yet.