Used for determine what include should be removed (not used) and what include can be used as precompiled headers.
- Clone or download this repository
- Add to paths
include-what-you-use/linux/iwyu_0.14_clang10/bin
include-what-you-use/linux/iwyustat
- Turn ON cmake option
CMAKE_EXPORT_COMPILE_COMMANDS
- Make rebuild project
- Exec script
MuseScore/tools/checkheaders/iwyu.sh path/to/build_dir iwyu_includes.txt
- Look at
iwyu_includes.txt
and remove what is recommended to be removed. - Be sure to check the compilation
- Exec
iwyustat path/to/iwyu_includes.txt
- Copy output about use
std
andQt
toMuseScore/build/pch/pch.h