Author Topic: How to determine if a header file is included indirectly?  (Read 3112 times)

shaunp

  • Community Member
  • Posts: 16
  • Hero Points: 0
How to determine if a header file is included indirectly?
« on: December 16, 2008, 03:53:45 am »
Hello all,

Does SlickEdit have a way to show all header files referenced by a file?  As an example, if a.c includes a.h and a.h includes b.h, how can I see that b.h is also included with SlickEdit?  I can get a list of header files directly included by a file by opening a file and viewing the Defs tab, but the Defs tab does not show me which header files are included by those header files.

Thanks,
Shaun

shaunp

  • Community Member
  • Posts: 16
  • Hero Points: 0
Re: How to determine if a header file is included indirectly?
« Reply #1 on: December 17, 2008, 01:03:29 am »
bump

Ryan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 986
  • Hero Points: 77
Re: How to determine if a header file is included indirectly?
« Reply #2 on: December 17, 2008, 01:40:36 am »
An include browser where you can see the include hierarchy for a c++ file?  We don't have that, but there is a feature request for it.  I'll add your comments to the tracker, and maybe we can get it bumped up in priority.  Sorry I don't have better news  :-[.

- Ryan

shaunp

  • Community Member
  • Posts: 16
  • Hero Points: 0
Re: How to determine if a header file is included indirectly?
« Reply #3 on: December 17, 2008, 01:57:22 am »
Hi Ryan,

Thanks for the info.  Yes, that'd be great.  It's not often that I need an include browser, but when you need one, it can save a lot of time compared to manually looking at all included files, and their includes, and their includes, etc.  In the meantime, I may be able to use the make dependency files produced by our compiler to get the same information quickly.  Thanks again.

Regards,
Shaun

Wanderer

  • Senior Community Member
  • Posts: 557
  • Hero Points: 23
Re: How to determine if a header file is included indirectly?
« Reply #4 on: December 17, 2008, 02:21:10 am »
Have a  look at Source Navigator:  http://sourcenav.sourceforge.net/


shaunp

  • Community Member
  • Posts: 16
  • Hero Points: 0
Re: How to determine if a header file is included indirectly?
« Reply #5 on: December 17, 2008, 07:23:25 pm »
Hi Wanderer,

Source Navigator works great.  Thanks.

Regards,
Shaun