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
Reliance on transitive includes can make the codebase more fragile for refactoring efforts both within the library codebase and for dependent projects. I ran into this issue when experimenting with zim-tools, where libzim's version.h has a dependency on <iostream>, but if <iostream> isn't included before #include <zim/version.h> there is a build error.
Reliance on transitive includes can make the codebase more fragile for refactoring efforts both within the library codebase and for dependent projects. I ran into this issue when experimenting with zim-tools, where libzim's version.h has a dependency on
<iostream>
, but if<iostream>
isn't included before#include <zim/version.h>
there is a build error.libzim/include/zim/version.h
Line 31 in c465e15
https://github.com/openzim/zim-tools/blob/768cbe534156a44abe7678493c12e52b2a3194a3/src/version.h#L23
There is a clang tool called Include What You Use (IWYU) which can do most of the work for this (with some spot checking).
If this is approved I can put in a PR.
The text was updated successfully, but these errors were encountered: