You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[biggest] Running IWYU isn't idempotent: Every time I reran it, it changed things again, often adding and removing the same include in subsequent runs. This makes it unsuitable as a CI check.
[big] IWYU sometimes doesn't understand which is the public header that users should include. This is solved with "mapping files." The problem is that they may depend on the system: the mappings that worked on my machine were not enough to make things work in CI. If every user needs to first set up their own mappings, chances are high that this will create a lot of churn and frustration.
[solvable] The integration with CMake does not provide or apply fixes and running iwyu_tool.py requires several non-trivial parameters to work as intended. We could probably set up a CMake target for that but I haven't done that yet.
Activity
ingomueller-net commentedon Apr 10, 2026
I looked quite a bit into this:
iwyu_tool.pyrequires several non-trivial parameters to work as intended. We could probably set up a CMake target for that but I haven't done that yet.clang-tidysmisc-include-cleaner. This works with the infra that we already have and is a lot more reliable and stable. Only caveat:I think I'll leave it at that for now. What we could do is to add IWYU to CMake but not enforce it and decide manually which suggestions to apply.
style(iwyu): set up include cleaner of clang-tidy (#153)