This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

extending gccmakedep to output file inclusions


Hello,

[previously sent mail with same content possibly rejected because of text-only email requirement not met]

I would like to suggest/recommend a feature whereby the gccmakedep component of the gcc suite can be made to emit "file inclusion" notices similar to the ones resulting from makedepend's "-v" option [1][2].

The output would be similar to

fileA: fileB
fileA: fileC
...

if fileA includes (#include "...") fileB and fileC.

Currently closest is the behaviour of "gcc -M" (resp. "gcc -MM"), i.e. the gccmakedep result; however, make file dependencies are not semantically equal to file inclusion.

The feature is helpful for documentation.

Thomas

[1] http://xorg.freedesktop.org/archive/individual/util/makedepend-1.0.5.tar.bz2
[2] http://www.xfree86.org/4.0/makedepend.1.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]