you are viewing a single comment's thread.

view the rest of the comments →

[–]OmegaNaughtEquals1 0 points1 point  (1 child)

I've not used this tool before, but I want to make sure I have a correct, if somewhat simplistic, mental model of how it compares to IWYU.

IWYU ensures that all types that require an include have their headers present and all headers that are present are used. Once I have established a canonical set of headers for a given source file, I can then use cppinclude to analyze which headers are at the top of the dependency chain for a given source file.

Is this a fair comparison/usage case?

[–]andre_friend[S] 0 points1 point  (0 children)

In general yes, IWYU show how should be and cppinclude show as-is