Could someone suggest me a tool to find circular dependencies? I tried with a graph of the project but it has hundreds of header files so is very complicated to find them.
I edit the post with the meaning of circular dependency:
- File A.h has a #include “B.h” guard.
- File B.h has a #include “A.h” guard.
Thanks.
I have found one way to get circular dependencies:
Generate a DOT file which describes a #include dependency directed graph using cinclude2dot.pl Perl script.
Decompose directed graph into strongly connected components (circular dependencies):