Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to track #include dependencies [closed]

Tags:

c++

c

header

Any good suggestions? Input will be the name of a header file and output should be a list (preferably a tree) of all files including it directly or indirectly.

like image 387
Agnel Kurian Avatar asked Sep 03 '08 18:09

Agnel Kurian


People also ask

What is a tracking tool?

A website tracking tool will track, measure, and report on website activity and visitor behavior including traffic, user clicks, and performance (e.g. conversion rate). Tracking tools show you what's happening on your website so you can learn what is (and isn't) working and optimize for improved UX and business goals.

What is the use of tracking?

A tracking system, also known as a locating system, is used for the observing of persons or objects on the move and supplying a timely ordered sequence of location data for further processing.


1 Answers

If you have access to GCC/G++, then the -M option will output the dependency list. It doesn't do any of the extra stuff that the other tools do, but since it is coming from the compiler, there is no chance that it will pick up files from the "wrong" place.

like image 53
KeithB Avatar answered Nov 16 '22 02:11

KeithB