Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Include browser of Eclipse

📅 2015-May-21 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

[caption id="attachment_6939" align="aligncenter" width="535"][Include graph of term.c in the Vim source code]( Include graph of term.c in the Vim source code[/caption]

The include graph of a large C++ project can be really gnarly. Sometimes, you end up with compile errors due to circular inclusion of types or headers and cannot figure out the origin of the error. Other times, you might want to know the path of header files through which a certain type is available in a source file. To view these details, I generate a header include graph using Doxygen.

However, if you are using Eclipse CDT you have something that is easier and more convenient: its Include Browser! 😊

Reference: Eclipse help on Include Browser

Tried with: Eclipse 4.4.2 and Ubuntu 14.04