Feature #22

Show includes support

Added by Steven Craft about 7 years ago.

Status:NewStart date:07/20/2010
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Building
Target version:-

Description

I often find it useful to be able to see all the includes for a given file/module/library/project, as sometimes some code that gets pulled in (potentially unexpectedly) ends up causing something not to compile correctly, but without being able to see which files have actually been pulled in this can be hard to track down.

The C.C++Flags required are:

Visual Studio (2005 at least, but I suspect 2003/2005/2008/2010):

/showIncludes

Sony PS3 Compiler

-H

Wii Compiler (and probably most standard GCC compilers)

-M for user head files, or -MM for user and system header files.

With the Wii/GCC option, it will display the include list to stdout (in the same way as Visual Studio/PS3) providing there is no object file/directory specified. So ideally the -o file/directory would be stripped off where necessary so the behavior is consistent across the compilers. I don't know what command line switches would be needed on other platforms.

Steve

Also available in: Atom PDF