HDFGroup / HDFGroup/hdf5

Add support for include-what-you-use in CMake

Open
#6,001 1 comment 0 reactions 1 assignee Assigned to @lrknox View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.